problem while compiling sage-5.8 with singular

42 views
Skip to first unread message

Aladin VIRMAUX

unread,
Apr 4, 2013, 2:08:56 PM4/4/13
to sage-s...@googlegroups.com
Hello,

I'm trying to compile from source sage-5.8 and singular seems to fail the installation.

I'm running archlinux with the option -j4, here is the end of the log with the error :

g++ -O2 -g  -fPIC -pipe  -fno-implicit-templates -I. -I.. -I/home/dadin/.sage-5.8/local  -I/home/dadin/.sage-5.8/local/include -I/home/dadin/.sage-5.8/local/include -I/home/dadin/.sage-5.8/local/include  -I/usr/local/include  -DNDEBUG -DOM_NDEBUG -Dx86_64_Linux -DHAVE_CONFIG_H -c longtrans.cc
gcc -O2 -g  -fPIC -pipe  -I. -I.. -I/home/dadin/.sage-5.8/local  -I/home/dadin/.sage-5.8/local/include -I/home/dadin/.sage-5.8/local/include -I/home/dadin/.sage-5.8/local/include  -I/usr/local/include  -DNDEBUG -DOM_NDEBUG -Dx86_64_Linux -DHAVE_CONFIG_H -c weight0.c
In file included from ../kernel/si_gmp.h:4:0,
                 from ../kernel/structs.h:15,
                 from weight0.c:13:
../factory/cf_gmp.h:2501:28: erreur fatale: bits/c++config.h : Aucun fichier ou dossier de ce type (means "No file or folder of this type")
 #include <bits/c++config.h>
                            ^
compilation terminée.
make[4]: *** [weight0.o] Erreur 1
make[4]: *** Attente des tâches non terminées....
make[4] : on quitte le répertoire « /home/dadin/.sage-5.8/spkg/build/singular-3-1-5.p4/src/kernel »
make[3]: *** [install-nolns] Erreur 1
make[3] : on quitte le répertoire « /home/dadin/.sage-5.8/spkg/build/singular-3-1-5.p4/src »
Unable to build and install Singular
Error building Singular (error in build_singular).

real 1m56.060s
user 5m49.167s
sys 0m17.733s
************************************************************************
Error installing package singular-3-1-5.p4
************************************************************************

Do someone have any solution ?
Thanks by advance,
Aladin

Jeroen Demeyer

unread,
Apr 4, 2013, 5:43:31 PM4/4/13
to sage-s...@googlegroups.com
What is the output of
$ ./sage --sh
(sage-sh) $ which gcc
(sage-sh) $ gcc -v
(sage-sh) $ which g++
(sage-sh) $ g++ -v

Aladin VIRMAUX

unread,
Apr 4, 2013, 7:11:45 PM4/4/13
to sage-s...@googlegroups.com
Thanks for you answer, here is the output :

[dadin@bubble .sage-5.8]% ./sage --sh 

Starting subshell with Sage environment variables set.  Don't forget
to exit when you are done.  Beware:
 * Do not do anything with other copies of Sage on your system.
 * Do not use this for installing Sage packages using "sage -i" or for
   running "make" at Sage's root directory.  These should be done
   outside the Sage shell.

Bypassing shell configuration files...

Note: SAGE_ROOT=/home/dadin/.sage-5.8
(sage-sh) dadin@bubble:~/.sage-5.8$ which gcc
/usr/bin/gcc
(sage-sh) dadin@bubble:~/.sage-5.8$ gcc -v
Utilisation des specs internes.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configuré avec: /build/src/gcc-4.8.0/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --enable-gnu-unique-object --enable-linker-build-id --enable-cloog-backend=isl --disable-cloog-version-check --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --with-linker-hash-style=gnu --disable-install-libiberty --disable-multilib --disable-libssp --disable-werror --enable-checking=release
Modèle de thread: posix
gcc version 4.8.0 (GCC) 
(sage-sh) dadin@bubble:~/.sage-5.8$ which g++
/usr/bin/g++
(sage-sh) dadin@bubble:~/.sage-5.8$ g++ -v
Utilisation des specs internes.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configuré avec: /build/src/gcc-4.8.0/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --enable-gnu-unique-object --enable-linker-build-id --enable-cloog-backend=isl --disable-cloog-version-check --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --with-linker-hash-style=gnu --disable-install-libiberty --disable-multilib --disable-libssp --disable-werror --enable-checking=release
Modèle de thread: posix
gcc version 4.8.0 (GCC) 
(sage-sh) dadin@bubble:~/.sage-5.8$

Volker Braun

unread,
Apr 4, 2013, 8:11:52 PM4/4/13
to sage-s...@googlegroups.com
Time to blacklist gcc-4.8.0 on arch? Its clearly shipped in a broken state.

Can you compile sage with:

   export SAGE_INSTALL_GCC=yes
   make

Aladin VIRMAUX

unread,
Apr 5, 2013, 6:42:57 PM4/5/13
to sage-s...@googlegroups.com
the gcc (4.6) package provided by sagemath doesn't compile, I'll try to downgrade ma gcc version and compile it again. I will tell you the results.

Aladin VIRMAUX

unread,
Apr 8, 2013, 11:23:14 AM4/8/13
to sage-s...@googlegroups.com
No downgrade seems to fix the problem, always the same error, with gcc 4.8 and gcc 4.6, and still impossible to compile the gcc package provided by sage. I haven't any more idea.

Aladin

Aladin VIRMAUX

unread,
Apr 9, 2013, 11:27:48 AM4/9/13
to sage-s...@googlegroups.com
I tried a lot of things like moving the libraries and so more, without success.

I finally installed the 4.9.beta4 which compile without any problem.

Thanks,
Aladin
Reply all
Reply to author
Forward
0 new messages