Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 491408 - =net-wireless/lorcon-0.0_p20130212 build failed with PyPy 2.0 (Python 2.7) in distutils_building()
Summary: =net-wireless/lorcon-0.0_p20130212 build failed with PyPy 2.0 (Python 2.7) in...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Rick Farina (Zero_Chaos)
URL:
Whiteboard:
Keywords: PATCH
: 471376 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-11-16 13:47 UTC by Tom Li
Modified: 2018-07-06 14:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Add 2.7-pypy-* to RESTRICT_PYTHON_ABIS, should fix the issue. (skip-pypy.patch,872 bytes, patch)
2013-11-16 13:58 UTC, Tom Li
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Li 2013-11-16 13:47:15 UTC
[ebuild  N     ] net-wireless/lorcon-0.0_p20130212  USE="python -ruby" RUBY_TARGETS="-ruby18 -ruby19" 934 kB

 * Building of net-wireless/lorcon-0.0_p20130212 with CPython 2.7...
[/var/tmp/portage/net-wireless/lorcon-0.0_p20130212/work/lorcon-0.0_p20130212/pylorcon2]
python2.7 setup.py build -b build-2.7
running build
running build_ext
building 'PyLorcon2' extension
creating build-2.7
creating build-2.7/temp.linux-x86_64-2.7
x86_64-pc-linux-gnu-gcc -pthread -march=native -O2 -pipe -fomit-frame-pointer -march=native -O2 -pipe -fomit-frame-pointer -fPIC -I/usr/include/python2.7 -c PyLorcon2.c -o build-2.7/temp.linux-x86_64-2.7/PyLorcon2.o
creating build-2.7/lib.linux-x86_64-2.7
x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,--as-needed -L. -Wl,-O1 -Wl,--as-needed -L/var/tmp/portage/net-wireless/lorcon-0.0_p20130212/work/lorcon-0.0_p20130212/.libs/ -march=native -O2 -pipe -fomit-frame-pointer -march=native -O2 -pipe -fomit-frame-pointer build-2.7/temp.linux-x86_64-2.7/PyLorcon2.o -L/usr/lib64 -lorcon2 -lpython2.7 -o build-2.7/lib.linux-x86_64-2.7/PyLorcon2.so
 * Building of net-wireless/lorcon-0.0_p20130212 with PyPy 2.0 (Python 2.7)...
[/var/tmp/portage/net-wireless/lorcon-0.0_p20130212/work/lorcon-0.0_p20130212/pylorcon2]
pypy-c2.0 setup.py build -b build-2.7-pypy-2.0
running build
running build_ext
building 'PyLorcon2' extension
creating build-2.7-pypy-2.0
creating build-2.7-pypy-2.0/temp.linux-x86_64-2.7
cc -march=native -O2 -pipe -fomit-frame-pointer -march=native -O2 -pipe -fomit-frame-pointer -fPIC -I/usr/lib64/pypy2.0/include -c PyLorcon2.c -o build-2.7-pypy-2.0/temp.linux-x86_64-2.7/PyLorcon2.o
PyLorcon2.c: In function ‘initPyLorcon2’:
PyLorcon2.c:656:37: error: ‘_PyObject_Del’ undeclared (first use in this function)
     PyLorcon2_ContextType.tp_free = _PyObject_Del;
                                     ^
PyLorcon2.c:656:37: note: each undeclared identifier is reported only once for each function it appears in
error: command 'cc' failed with exit status 1
 * ERROR: net-wireless/lorcon-0.0_p20130212::gentoo failed (compile phase):
 *   Building failed with PyPy 2.0 (Python 2.7) in distutils_building() function
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 7306:  Called distutils_src_compile
 *   environment, line 1409:  Called python_execute_function 'distutils_building'
 *   environment, line 5370:  Called die
 * The specific snippet of code:
 *                       die "${failure_message}";
 * 
 * If you need support, post the output of `emerge --info '=net-wireless/lorcon-0.0_p20130212::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-wireless/lorcon-0.0_p20130212::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =lorcon-0.0_p20130212
 * The complete build log is located at '/var/tmp/portage/net-wireless/lorcon-0.0_p20130212/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-wireless/lorcon-0.0_p20130212/temp/environment'.
 * Working directory: '/var/tmp/portage/net-wireless/lorcon-0.0_p20130212/work/lorcon-0.0_p20130212/pylorcon2'
 * S: '/var/tmp/portage/net-wireless/lorcon-0.0_p20130212/work/lorcon-0.0_p20130212'

Reproducible: Always

Steps to Reproduce:
1. echo 'PYTHON_TARGETS="python2_7 python3_3 pypy2_0"' > /etc/portage/make.conf
2. USE="python" emerge net-wireless/lorcon
Actual Results:  
Failed to build against to PyPy.

PyLorcon2.c:656:37: note: each undeclared identifier is reported only once for each function it appears in
error: command 'cc' failed with exit status 1

Expected Results:  
Should build successfully, or skip the PyPy target.
Comment 1 Tom Li 2013-11-16 13:58:07 UTC
Created attachment 363366 [details, diff]
Add 2.7-pypy-* to RESTRICT_PYTHON_ABIS, should fix the issue.
Comment 2 Rick Farina (Zero_Chaos) gentoo-dev 2013-11-18 23:45:25 UTC
I don't mind adding this patch, but is that really useful?  The solution for building with pypy is don't build with pypy?
Comment 3 Rick Farina (Zero_Chaos) gentoo-dev 2018-07-06 14:35:42 UTC
*** Bug 471376 has been marked as a duplicate of this bug. ***