On Ubuntu 16.04, I get problem building python2-2.7.14.p2 during make
ptestlong.
The error is reproducable when I perform sage -i python2
End of log is below
...
gcc -pthread -shared -L. -L/home/slabbe/GitBox/sage/local/lib
-Wl,-rpath,/home/slabbe/GitBox/sage/local/lib -L.
-L/home/slabbe/GitBox/sage/local/lib
-Wl,-rpath,/home/slabbe/GitBox/sage/local/lib
build/temp.linux-x86_64-2.7/home/slabbe/GitBox/sage/local/var/tmp/sage/build/python2-2.7.14.p2/src/Modules/_ctypes/_ctypes.o
build/temp.linux-x86_64-2.7/home/slabbe/GitBox/sage/local/var/tmp/sage/build/python2-2.7.14.p2/src/Modules/_ctypes/callbacks.o
build/temp.linux-x86_64-2.7/home/slabbe/GitBox/sage/local/var/tmp/sage/build/python2-2.7.14.p2/src/Modules/_ctypes/callproc.o
build/temp.linux-x86_64-2.7/home/slabbe/GitBox/sage/local/var/tmp/sage/build/python2-2.7.14.p2/src/Modules/_ctypes/stgdict.o
build/temp.linux-x86_64-2.7/home/slabbe/GitBox/sage/local/var/tmp/sage/build/python2-2.7.14.p2/src/Modules/_ctypes/cfield.o
build/temp.linux-x86_64-2.7/home/slabbe/GitBox/sage/local/var/tmp/sage/build/python2-2.7.14.p2/src/Modules/_ctypes/libffi/src/prep_cif.o
build/temp.linux-x86_64-2.7/home/slabbe/GitBox/sage/local/var/tmp/sage/build/python2-2.7.14.p2/src/Modules/_ctypes/libffi/src/closures.o
build/temp.linux-x86_64-2.7/home/slabbe/GitBox/sage/local/var/tmp/sage/build/python2-2.7.14.p2/src/Modules/_ctypes/libffi/src/x86/ffi64.o
build/temp.linux-x86_64-2.7/home/slabbe/GitBox/sage/local/var/tmp/sage/build/python2-2.7.14.p2/src/Modules/_ctypes/libffi/src/x86/unix64.o
build/temp.linux-x86_64-2.7/home/slabbe/GitBox/sage/local/var/tmp/sage/build/python2-2.7.14.p2/src/Modules/_ctypes/libffi/src/x86/ffi.o
build/temp.linux-x86_64-2.7/home/slabbe/GitBox/sage/local/var/tmp/sage/build/python2-2.7.14.p2/src/Modules/_ctypes/libffi/src/x86/sysv.o
-L/home/slabbe/GitBox/sage/local/lib -L/usr/lib/x86_64-linux-gnu
-L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_ctypes.so
*** 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:
bsddb185 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 _elementtree _multiprocessing
array mmap
running build_scripts
creating build/scripts-2.7
copying and adjusting
/home/slabbe/GitBox/sage/local/var/tmp/sage/build/python2-2.7.14.p2/src/Tools/scripts/pydoc
-> build/scripts-2.7
copying and adjusting
/home/slabbe/GitBox/sage/local/var/tmp/sage/build/python2-2.7.14.p2/src/Tools/scripts/idle
-> build/scripts-2.7
copying and adjusting
/home/slabbe/GitBox/sage/local/var/tmp/sage/build/python2-2.7.14.p2/src/Tools/scripts/2to3
-> build/scripts-2.7
copying and adjusting
/home/slabbe/GitBox/sage/local/var/tmp/sage/build/python2-2.7.14.p2/src/Lib/smtpd.py
-> build/scripts-2.7
changing mode of build/scripts-2.7/pydoc from 664 to 775
changing mode of build/scripts-2.7/idle from 664 to 775
changing mode of build/scripts-2.7/2to3 from 664 to 775
changing mode of build/scripts-2.7/smtpd.py from 664 to 775
make[3]: Leaving directory
'/home/slabbe/GitBox/sage/local/var/tmp/sage/build/python2-2.7.14.p2/src'
Testing importing of various modules...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File
"/home/slabbe/GitBox/sage/local/var/tmp/sage/build/python2-2.7.14.p2/src/Lib/ctypes/__init__.py",
line 7, in <module>
from _ctypes import Union, Structure, Array
ImportError: No module named _ctypes
ctypes module failed to import
math module imported OK
hashlib module imported OK
crypt module imported OK
readline module imported OK
socket module imported OK
Error: One or more modules failed to import.
real 2m25.869s
user 2m5.516s
sys 0m6.272s
************************************************************************
Error building package python2-2.7.14.p2
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the log file
/home/slabbe/GitBox/sage/logs/pkgs/python2-2.7.14.p2.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/home/slabbe/GitBox/sage/local/var/tmp/sage/build/python2-2.7.14.p2 and
type 'make' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
(cd '/home/slabbe/GitBox/sage/local/var/tmp/sage/build/python2-2.7.14.p2'
&& '/home/slabbe/GitBox/sage/sage' --sh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************
--
You received this message because you are subscribed to the Google Groups
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-release.
For more options, visit https://groups.google.com/d/optout.