On 2013-09-19, Luis Finotti <
luis.f...@gmail.com> wrote:
>
> Dear all,
>
> I tried to compile 5.11 from source on a linux box running aptosid
> (basically Debian Sid) with kernel 3.11, but it stopped when compiling
> singular (or it seemed to me):
>
> ------------------
> Error building Sage.
>
> The following package(s) may have failed to build:
>
> package: singular-3-1-5.p7
[...]
>
>
http://www.math.utk.edu/~finotti/misc/
You're using gcc 4.8.1 - I don't think Sage is known to work with it...
here is the relevant part of the log:
gcc -O2 -g -fPIC -pipe -I. -I.. -I/home/sage/sage-5.11/local
-I/home/sage/sage-5.11/local/include
-I/home/sage/sage-5.11/local/include
-I/home/sage/sage-5.11/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: fatal error: bits/c++config.h: No such file
or directory
#include <bits/c++config.h>
^
compilation terminated.
make[4]: *** [weight0.o] Error 1
So bits/c++config.h isn't where it should be...
What does
locate c++config.h
say?
You can also try building Sage with the gcc that comes with it.
To do so, set SAGE_INSTALL_GCC=yes
(as explained in
http://www.sagemath.org/doc/installation/source.html#section-envvar)
HTH,
Dmitrii