Bug 243786 - devel/py-greenlet : Fails to build on FreeBSD 12.1-RELEASE-p1 powerpc 32 bit: greenlet.c:347:2: error: #error "greenlet needs to be ported to this platform, or teached how to detect your compiler properly."
Summary: devel/py-greenlet : Fails to build on FreeBSD 12.1-RELEASE-p1 powerpc 32 bit:...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: powerpc Any
: --- Affects Only Me
Assignee: Sunpoet Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-01 20:43 UTC by canardo
Modified: 2020-04-05 19:56 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments
patch (1.23 KB, patch)
2020-04-05 04:00 UTC, Piotr Kubaj
pkubaj: maintainer-approval? (sunpoet)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description canardo 2020-02-01 20:43:36 UTC
Problem found when building devel/py-greenlet on FreeBSD 12.1-RELEASE-p1 powerpc 32 bit, running on Apple Powerbook 17".

Error message might be related to unsupported platform (PowerPC 32 bit), but then it would be "cleaner" to display a warning message when fetching the sources for example, instead of a 'error: command 'cc' failed with exit status 1'.



/usr/ports/devel/py-greenlet # make -DBATCH install clean
===>  Building for py37-greenlet-0.4.15
running build
running build_ext
building 'greenlet' extension
cc -Wsign-compare -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -I/usr/local/include/python3.7m -c greenlet.c -o build/temp.freebsd-12.1-RELEASE-p1-powerpc-3.7/greenlet.o
greenlet.c:347:2: error: #error "greenlet needs to be ported to this platform, or teached how to detect your compiler properly."
error: command 'cc' failed with exit status 1
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/py-greenlet
Comment 1 Piotr Kubaj freebsd_committer 2020-04-05 04:00:45 UTC
Created attachment 213084 [details]
patch

Upstream PR: https://github.com/python-greenlet/greenlet/pull/162
Comment 2 Sunpoet Po-Chuan Hsieh freebsd_committer 2020-04-05 19:56:33 UTC
Committed. Thanks!
Comment 3 commit-hook freebsd_committer 2020-04-05 19:56:49 UTC
A commit references this bug:

Author: sunpoet
Date: Sun Apr  5 19:55:42 UTC 2020
New revision: 530830
URL: https://svnweb.freebsd.org/changeset/ports/530830

Log:
  Fix build on powerpc

  PR:		243786
  Reported by:	canardo <canardo909@gmx.com>
  Submitted by:	pkubaj

Changes:
  head/devel/py-greenlet/files/patch-slp_platformselect.h