pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/52766: lang/python27 fails to build on arch linux



>Number:         52766
>Category:       pkg
>Synopsis:       lang/python27 fails to build on arch linux>
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 27 11:25:00 +0000 2017
>Originator:     Hauke Fath
>Release:        Arch Linux x86_64
>Organization:
Technische Universitaet Darmstadt
>Environment:
	
	
System: Linux 4.13.12-1-ARCH #1 SMP PREEMPT Wed Nov 8 11:54:06 CET 2017 x86_64 GNU/Linux
Architecture: x86_64
Machine: x86_64
>Description:

	On Arch Linux, building lang/python27 fails in the packaging
	phase with

[...]
=> Generating post-install file lists
pkg_create: can't stat `/var/obj/pkgsrc/lang/python27/work/.destdir/opt/local/lib/python2.7/lib-dynload/Python-2.7.14-py2.7.egg-info'
pkg_create: can't stat `/var/obj/pkgsrc/lang/python27/work/.destdir/opt/local/lib/python2.7/lib-dynload/_ctypes.so'
pkg_create: can't stat `/var/obj/pkgsrc/lang/python27/work/.destdir/opt/local/lib/python2.7/lib-dynload/_multiprocessing.so'
pkg_create: can't stat `/var/obj/pkgsrc/lang/python27/work/.destdir/opt/local/lib/python2.7/lib-dynload/array.so'
pkg_create: can't stat `/var/obj/pkgsrc/lang/python27/work/.destdir/opt/local/lib/python2.7/lib-dynload/mmap.so'
pkg_create: can't stat `/var/obj/pkgsrc/lang/python27/work/.destdir/opt/local/lib/python2.7/lib2to3/Grammar2.7.14.final.0.pickle'
pkg_create: can't stat `/var/obj/pkgsrc/lang/python27/work/.destdir/opt/local/lib/python2.7/lib2to3/PatternGrammar2.7.14.final.0.pickle'
=> Checking file-check results for python27-2.7.14
ERROR: ************************************************************
ERROR: The following files are in the PLIST but not in /var/obj/pkgsrc/lang/python27/work/.destdir/opt/local:
ERROR:         /var/obj/pkgsrc/lang/python27/work/.destdir/opt/local/lib/python2.7/lib-dynload/Python-2.7.14-py2.7.egg-info
ERROR:         /var/obj/pkgsrc/lang/python27/work/.destdir/opt/local/lib/python2.7/lib-dynload/_ctypes.so
ERROR:         /var/obj/pkgsrc/lang/python27/work/.destdir/opt/local/lib/python2.7/lib-dynload/_multiprocessing.so
ERROR:         /var/obj/pkgsrc/lang/python27/work/.destdir/opt/local/lib/python2.7/lib-dynload/array.so
ERROR:         /var/obj/pkgsrc/lang/python27/work/.destdir/opt/local/lib/python2.7/lib-dynload/mmap.so
ERROR:         /var/obj/pkgsrc/lang/python27/work/.destdir/opt/local/lib/python2.7/lib2to3/Grammar2.7.14.final.0.pickle
ERROR:         /var/obj/pkgsrc/lang/python27/work/.destdir/opt/local/lib/python2.7/lib2to3/PatternGrammar2.7.14.final.0.pickle
ERROR: ************************************************************
ERROR: The following files are in /var/obj/pkgsrc/lang/python27/work/.destdir/opt/local but not in the PLIST:
ERROR:         /var/obj/pkgsrc/lang/python27/work/.destdir/opt/local/lib/python2.7/lib-dynload/Python-2.7.13-py2.7.egg-info
ERROR:         /var/obj/pkgsrc/lang/python27/work/.destdir/opt/local/lib/python2.7/lib-dynload/_ctypes_failed.so
ERROR:         /var/obj/pkgsrc/lang/python27/work/.destdir/opt/local/lib/python2.7/lib-dynload/_multiprocessing_failed.so
ERROR:         /var/obj/pkgsrc/lang/python27/work/.destdir/opt/local/lib/python2.7/lib-dynload/array_failed.so
ERROR:         /var/obj/pkgsrc/lang/python27/work/.destdir/opt/local/lib/python2.7/lib-dynload/mmap_failed.so
*** Error code 1

Stop.
nbmake[1]: stopped in /misc/pkgsrc/lang/python27
*** Error code 1
[...]

	Looking closer, it turns out that parts of the build fail, but
	the errors are not propagated and do not cause the build to
	fail:

[...]
creating build/temp.linux-x86_64-2.7/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_multiprocessing
cc -fPIC -fno-strict-aliasing -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -DNDEBUG -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -IModules/_multiprocessing -I. -IInclude -I./Include -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -I/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Include -I/var/obj/pkgsrc/lang/python27/work/Python-2.7.14 -c /var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_multiprocessing/multiprocessing.c -o build/temp.linux-x86_64-2.7/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_multiprocessing/multiprocessing.o
cc -fPIC -fno-strict-aliasing -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -DNDEBUG -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -IModules/_multiprocessing -I. -IInclude -I./Include -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -I/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Include -I/var/obj/pkgsrc/lang/python27/work/Python-2.7.14 -c /var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_multiprocessing/socket_connection.c -o build/temp.linux-x86_64-2.7/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_multiprocessing/socket_connection.o
cc -fPIC -fno-strict-aliasing -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -DNDEBUG -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -IModules/_multiprocessing -I. -IInclude -I./Include -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -I/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Include -I/var/obj/pkgsrc/lang/python27/work/Python-2.7.14 -c /var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_multiprocessing/semaphore.c -o build/temp.linux-x86_64-2.7/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_multiprocessing/semaphore.o
cc -shared -L/var/obj/pkgsrc/lang/python27/work/Python-2.7.14 -pthread -L/usr/lib64 -Wl,-R/usr/lib64 -L/opt/local/lib -Wl,-R/opt/local/lib -L/var/obj/pkgsrc/lang/python27/work/Python-2.7.14 -pthread -L/usr/lib64 -Wl,-R/usr/lib64 -L/opt/local/lib -Wl,-R/opt/local/lib -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -I/usr/include -I/opt/local/include -I/opt/local/include/db4 build/temp.linux-x86_64-2.7/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_multiprocessing/multiprocessing.o build/temp.linux-x86_64-2.7/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_multiprocessing/socket_connection.o build/temp.linux-x86_64-2.7/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_multiprocessing/semaphore.o -L/var/obj/pkgsrc/lang/python27/work/Python-2.7.14 -L/usr/lib64 -L/opt/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_multiprocessing.so -L/var/obj/pkgsrc/lang/python27/work/Python-2.7.14 -pthread -L/usr/!
 lib64 -Wl,-R/usr/lib64 -L/opt/local/lib -Wl,-R/opt/local/lib
*** WARNING: renaming "_multiprocessing" since importing it failed: cannot import name _remove_dead_weakref
building '_ctypes' extension
cc -fPIC -fno-strict-aliasing -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -DNDEBUG -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -I/opt/local/include -I. -IInclude -I./Include -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -I/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Include -I/var/obj/pkgsrc/lang/python27/work/Python-2.7.14 -c /var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_ctypes/_ctypes.c -o build/temp.linux-x86_64-2.7/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_ctypes/_ctypes.o
cc -fPIC -fno-strict-aliasing -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -DNDEBUG -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -I/opt/local/include -I. -IInclude -I./Include -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -I/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Include -I/var/obj/pkgsrc/lang/python27/work/Python-2.7.14 -c /var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_ctypes/callbacks.c -o build/temp.linux-x86_64-2.7/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_ctypes/callbacks.o
cc -fPIC -fno-strict-aliasing -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -DNDEBUG -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -I/opt/local/include -I. -IInclude -I./Include -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -I/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Include -I/var/obj/pkgsrc/lang/python27/work/Python-2.7.14 -c /var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_ctypes/callproc.c -o build/temp.linux-x86_64-2.7/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_ctypes/callproc.o
cc -fPIC -fno-strict-aliasing -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -DNDEBUG -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -I/opt/local/include -I. -IInclude -I./Include -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -I/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Include -I/var/obj/pkgsrc/lang/python27/work/Python-2.7.14 -c /var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_ctypes/stgdict.c -o build/temp.linux-x86_64-2.7/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_ctypes/stgdict.o
cc -fPIC -fno-strict-aliasing -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -DNDEBUG -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -I/opt/local/include -I. -IInclude -I./Include -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -I/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Include -I/var/obj/pkgsrc/lang/python27/work/Python-2.7.14 -c /var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_ctypes/cfield.c -o build/temp.linux-x86_64-2.7/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_ctypes/cfield.o
cc -shared -L/var/obj/pkgsrc/lang/python27/work/Python-2.7.14 -pthread -L/usr/lib64 -Wl,-R/usr/lib64 -L/opt/local/lib -Wl,-R/opt/local/lib -L/var/obj/pkgsrc/lang/python27/work/Python-2.7.14 -pthread -L/usr/lib64 -Wl,-R/usr/lib64 -L/opt/local/lib -Wl,-R/opt/local/lib -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -I/usr/include -I/opt/local/include -I/opt/local/include/db4 build/temp.linux-x86_64-2.7/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_ctypes/_ctypes.o build/temp.linux-x86_64-2.7/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_ctypes/callbacks.o build/temp.linux-x86_64-2.7/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_ctypes/callproc.o build/temp.linux-x86_64-2.7/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_ctypes/stgdict.o build/temp.linux-x86_64-2.7/var/obj/pkgsrc/lang/python27/work/Python-2.7.14/Modules/_ctypes/cfield.o -L/var/obj/pkgsrc/lang/python27/work/Python-2.7.14 -L/u!
 sr/lib64 -L/opt/local/lib -L. -Wl,-R/opt/local/lib -lffi -lpython2.7 -o build/lib.linux-x86_64-2.7/_ctypes.so -L/var/obj/pkgsrc/lang/python27/work/Python-2.7.14 -pthread -L/usr/lib64 -Wl,-R/usr/lib64 -L/opt/local/lib -Wl,-R/opt/local/lib
*** WARNING: renaming "_ctypes" since importing it failed: build/lib.linux-x86_64-2.7/_ctypes.so: undefined symbol: _PySlice_Unpack

Python build finished, but the necessary bits to build these modules were not found:
dl                 gdbm               imageop         
sunaudiodev                                           
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


Failed to build these modules:
_ctypes            _multiprocessing   array           
mmap                                                  

running build_scripts
creating build/scripts-2.7
[...]


	Full build logs are at
	<https://www2.nt.tu-darmstadt.de/~hf/pkgsrc/pkgsrc-archlinux-python27.tgz>


	
>How-To-Repeat:

	Build and package python27 on Arch.

	
>Fix:
	No Idea.

	

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index