Please review optional GCC-4.7.1 spkg (#13150)

81 views
Skip to first unread message

Jeroen Demeyer

unread,
Jun 25, 2012, 11:50:34 AM6/25/12
to sage-devel
For testing purposes, or just to have the latest GCC, some people might
prefer GCC-4.7.1 over the Sage-shipped GCC-4.6.3. That's why I created
an optional GCC-4.7.1 spkg.

The spkg is exactly the same as the GCC-4.6.3 spkg currently in Sage,
except for the src/ directory. Just for fun, I tested it on Solaris and
it works.

Please review:
http://trac.sagemath.org/sage_trac/ticket/13150


Jeroen.

Jeroen Demeyer

unread,
Sep 30, 2012, 6:56:55 AM9/30/12
to sage-...@googlegroups.com
This is now updated to GCC-4.7.2 and needs review as *optional* package:
Message has been deleted

Andrea Lazzarotto

unread,
Oct 5, 2012, 12:43:24 PM10/5/12
to sage-...@googlegroups.com


2012/9/30 Jeroen Demeyer <jdem...@cage.ugent.be>

This is now updated to GCC-4.7.2 and needs review as *optional* package:


I wanted to try this on a Sage 5.4 beta 1 (upgraded from Sage 5.3 binary) on Ubuntu 12.04 64 bit, and here's what I get:

<snip>
 -I../../../src/libgcc -I../../../src/libgcc/. -I../../../src/libgcc/../gcc -I../../../src/libgcc/../include -I../../../src/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS  -DUSE_TLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c ../../../src/libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS
In file included from /usr/include/stdio.h:28:0,
                 from ../../../src/libgcc/../gcc/tsystem.h:88,
                 from ../../../src/libgcc/libgcc2.c:29:
/usr/include/features.h:324:26: fatal error: bits/predefs.h: File o directory non esistente
compilation terminated.
make[3]: *** [_muldi3.o] Errore 1
make[3]: uscita dalla directory "/home/andrea/Scrivania/Torrent/sage/spkg/build/gcc-4.7.2/gcc-build/x86_64-unknown-linux-gnu/libgcc"
make[2]: *** [all-stage1-target-libgcc] Errore 2
make[2]: uscita dalla directory "/home/andrea/Scrivania/Torrent/sage/spkg/build/gcc-4.7.2/gcc-build"
make[1]: *** [stage1-bubble] Errore 2
make[1]: uscita dalla directory "/home/andrea/Scrivania/Torrent/sage/spkg/build/gcc-4.7.2/gcc-build"
make: *** [all] Errore 2

real    7m4.258s
user    5m7.867s
sys    0m53.403s
************************************************************************
Error installing package gcc-4.7.2
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the relevant part of the log file
  /home/andrea/Scrivania/Torrent/sage/spkg/logs/gcc-4.7.2.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/home/andrea/Scrivania/Torrent/sage/spkg/build/gcc-4.7.2 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/andrea/Scrivania/Torrent/sage/spkg/build/gcc-4.7.2' && '/home/andrea/Scrivania/Torrent/sage/sage' -sh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************


Am I missing something? I tried to search online but the only suggestion I got is to install gcc, gfortran or g++ all of which I already have.

Thank you,

--
Andrea Lazzarotto - http://andrealazzarotto.com

Jeroen Demeyer

unread,
Oct 5, 2012, 2:43:30 PM10/5/12
to sage-...@googlegroups.com
On 2012-10-05 18:43, Andrea Lazzarotto wrote:
> Am I missing something? I tried to search online but the only suggestion
> I got is to install gcc, gfortran or g++ all of which I already have.
You need to apply the patch from
http://trac.sagemath.org/sage_trac/ticket/13515

(or use sage-5.4.rc0)

Andrea Lazzarotto

unread,
Oct 6, 2012, 5:26:22 AM10/6/12
to sage-...@googlegroups.com


2012/10/5 Jeroen Demeyer <jdem...@cage.ugent.be>

You need to apply the patch from
http://trac.sagemath.org/sage_trac/ticket/13515

(or use sage-5.4.rc0)

Thank you very much!
Reply all
Reply to author
Forward
0 new messages