Ticket #11216 (closed task: fixed)
Metaticket - make Sage work with gcc 4.6.0
| Reported by: | drkirkby | Owned by: | GeorgSWeber |
|---|---|---|---|
| Priority: | blocker | Milestone: | sage-4.7.1 |
| Component: | build | Keywords: | gcc |
| Cc: | gostrc, leif | Work issues: | |
| Report Upstream: | N/A | Reviewers: | Jeroen Demeyer |
| Authors: | Mariah Lenox | Merged in: | sage-4.7.1.alpha4 |
| Dependencies: | Stopgaps: |
Description (last modified by mariah) (diff)
Sage will not build with gcc 4.6.0 due to a number of issues. These need to be resolved asap, as Fedora 15 will ship with gcc 4.6.0.
At least some of the problems that prevent Sage building with gcc 4.6.0 are:
- #10892 (lcalc)
- #11083 (PolyBoRi)
- #11084 (Singular)
- #11168 and #11437 (Rubiks)
- #11226 (sympow)
- #11227 (Cliquer)
There may be others on specific platforms.
When all these issues are resolved, the "Install from Source Code" section of the Sage Installation Guide needs to be updated to remove the notes about Sage not building with gcc 4.6.0. Also the Wiki at http://wiki.sagemath.org/SupportedPlatforms needs to be updated, as that now mentions that Sage will not build with gcc 4.6.0.
The lcalc, Singular and PolyBoRi issues have all been reported upstream.
Attachments
Change History
comment:2 Changed 2 years ago by jdemeyer
- Type changed from enhancement to task
- Description modified (diff)
- Summary changed from Metaticket - List of bugs needed to be resolved for Sage to build with gcc 4.6.0 to Metaticket - make Sage work with gcc 4.6.0
comment:3 Changed 2 years ago by jdemeyer
- Keywords gcc added
- Priority changed from critical to blocker
- Description modified (diff)
- Report Upstream changed from None of the above - read trac for reasoning. to N/A
comment:4 follow-up: ↓ 6 Changed 2 years ago by mariah
- Status changed from new to needs_review
sage-4.7 was successfully built with gcc-4.6.0 on all the Linux machines on skynet. I believe this ticket should be closed.
comment:6 in reply to: ↑ 4 Changed 2 years ago by jdemeyer
- Status changed from needs_review to needs_work
comment:7 Changed 2 years ago by mariah
- Status changed from needs_work to needs_review
- Description modified (diff)
- Authors set to Mariah Lenox
I have updated the Wiki at http://wiki.sagemath.org/SupportedPlatforms. I believe the patch reverts the changes of #11159 that mention gcc-4.6.0.
comment:8 Changed 2 years ago by jdemeyer
- Status changed from needs_review to closed
- Reviewers set to Jeroen Demeyer
- Resolution set to fixed
- Merged in set to sage-4.7.1.alpha4
Looks good!
comment:9 Changed 2 years ago by ryan
sage-4.7.1-alpha4 still fails to build on archlinux with gcc-4.6.0
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/opt/sage-build/sage-4.7.1.alpha4/local/include -L/opt/sage-build/sage-4.7.1.alpha4/local/lib -march=native -mtune=native -pipe -fomit-frame-pointer -fPIC -O3 -fomit-frame-pointer -Isrc/ -I/opt/sage-build/sage-4.7.1.alpha4/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.198s user 0m0.117s sys 0m0.060s 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 /opt/sage-build/sage-4.7.1.alpha4/install.log. Describe your computer, operating system, etc. If you want to try to fix the problem yourself, *don't* just cd to /opt/sage-build/sage-4.7.1.alpha4/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 '/opt/sage-build/sage-4.7.1.alpha4/spkg/build/pycrypto-2.1.0' && '/opt/sage-build/sage-4.7.1.alpha4/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 `/opt/sage-build/sage-4.7.1.alpha4/spkg' real 119m10.612s user 101m4.015s sys 8m34.880s Error building Sage.
I had the same issue when building sage-4.7.0 with gcc-4.6.0. http://groups.google.com/group/sage-devel/browse_thread/thread/1fbbc05ae9837c96/80cd305a6e908bf9?lnk=raot&pli=1 https://groups.google.com/forum/#!topic/sage-devel/hLL02U1Q5zU
comment:10 Changed 2 years ago by ryan
The workaround that I used for sage-4.7.0 was to replace $SAGE_ROOT/local/lib/libppl.so.9.0.0 with /usr/lib/libppl.so.9.0.0
comment:11 Changed 2 years ago by ryan
comment:12 Changed 2 years ago by ryan
Apparently it is only the 32-bit version of sage that fails to build with gcc-4.6 as noted in the ticket referenced above (#11391).

