building sage 4.7 with gcc 4.6 fails

18 views
Skip to first unread message

Ryan Grout

unread,
May 28, 2011, 6:26:07 PM5/28/11
to sage-...@googlegroups.com
Hi,

system:
Linux 2.6.38-ARCH #1 SMP PREEMPT i686 Intel(R) Pentium(R) M processor
1600MHz GenuineIntel GNU/Linux

with gcc 4.6.0

Sage 4.7 fails to build. make exited with this error
---------------------------------------
running build_ext
building 'Crypto.PublicKey._fastmath' extension
creating build/temp.linux-i686-2.6
creating build/temp.linux-i686-2.6/src
gcc -Wall -Wstrict-prototypes -I/home/grout/sage-4.7/local/include
-L/home/grout/sage-4.7/local/lib -fPIC -O3 -fomit-frame-pointer -Isrc/
-I/home/grout/sage-4.7/local/include/python2.6 -c src/_fastmath.c -o
build/temp.linux-i686-2.6/src/_fastmath.o
/usr/lib/gcc/i686-pc-linux-gnu/4.6.0/cc1: symbol lookup error:
/usr/lib/libppl_c.so.4: undefined symbol:
_ZN23Parma_Polyhedra_Library13have_sse_unitE
error: command 'gcc' failed with exit status 1
Error installing PyCrypto... exiting

real 0m0.348s
user 0m0.127s
sys 0m0.030s
sage: An error occurred while installing pycrypto-2.1.0
Please email sage-devel http://groups.google.com/group/sage-devel
explaining the problem and send the relevant part of
of /home/grout/sage-4.7/install.log. Describe your computer,
operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/home/grout/sage-4.7/spkg/build/pycrypto-2.1.0 and type 'make check'
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/grout/sage-4.7/spkg/build/pycrypto-2.1.0' &&
'/home/grout/sage-4.7/sage' -sh)
When you are done debugging, you can type "exit" to leave the
subshell.
make[1]: *** [installed/pycrypto-2.1.0] Error 1
make[1]: Leaving directory `/home/grout/sage-4.7/spkg'

real 178m48.140s
user 98m15.989s
sys 7m54.596s
Error building Sage.
make: *** [build] Error 1
--------------------------------------------------

I ran into the same error doing sage -upgrade, which unfortunately broke
my current sage.

Ryan G.

Francois Bissey

unread,
May 28, 2011, 6:54:53 PM5/28/11
to sage-...@googlegroups.com

This has already been reported on this list and trac.
See here for the reports from Robert Gross from Arch:
https://groups.google.com/forum/#!topic/sage-devel/hLL02U1Q5zU
http://trac.sagemath.org/sage_trac/ticket/11391

Francois

This email may be confidential and subject to legal privilege, it may
not reflect the views of the University of Canterbury, and it is not
guaranteed to be virus free. If you are not an intended recipient,
please notify the sender immediately and erase all copies of the message
and any attachments.

Please refer to http://www.canterbury.ac.nz/emaildisclaimer for more
information.

Ryan Grout

unread,
May 29, 2011, 12:04:47 AM5/29/11
to sage-...@googlegroups.com
Thanks for the link. The solution in the google groups discussion seems
to work for me (replacing the libppl.so.9.0.0 in sage lib dir with the
system version of the library).

Thanks
Ryan

Reply all
Reply to author
Forward
0 new messages