On Wednesday, June 12, 2013 7:42:01 AM UTC-7, chexmix wrote:
> Hi --
> 
> I b0rked the Sage install on my netbook by somehow bungling upgrade(), so decided to reinstall from source (I run Linux, but it's neither Red Hat-based nor Debian/Ubuntu-oid ... it's Slackware).
> 
> For the first time ever, the Sage build failed. 
> 
> The details:
> 
> OS is Slackware Linux 14.0, 64-bit 'current branch'. 
> 
> The cpu is an Intel(R) Atom(TM) CPU N570   @ 1.66GHz
> 
> I ran a script session to capture the build output. Here is the end, where it crashes out:
> 
> gcc -O2 -g  -fPIC -pipe  -I. -I.. -I/home/chexmix/sage-5.9/local  -I/home/chexmix/sage-5.9/local/include -I/home/chexmix/sage-5.9/local/include -I/home/chexmix/sage-5.9/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
> make[4]: Leaving directory `/home/chexmix/sage-5.9/spkg/build/singular-3-1-5.p7/src/kernel'
> make[3]: *** [install-nolns] Error 1
> make[3]: Leaving directory `/home/chexmix/sage-5.9/spkg/build/singular-3-1-5.p7/src'
> Unable to build and install Singular
> Error building Singular (error in build_singular).
> 
> ------------------
> I've Googled on it a bit & it is a not-uncommon error, but so far I haven't puzzled out where the fault lies nor how I might fix it ... so I thought I would post it here. 
> 
> Perhaps a gcc bug? I neglected to note the gcc version on the box in question (which is at home).
> 
> /Glenn
Good afternoon,
In case this is useful, I just tried to install Sage for the first time. I downloaded the 5.10 source via bittorrent. I'm running Debian unstable amd64 on a Lenovo X201 laptop. CPU model from /proc/cpuinfo is: Intel(R) Core(TM) i7 CPU       M 620  @ 2.67GHz.
I got a similar error to that above regarding bits/c++config.h during the singular package build. I found this thread, downloaded the p8 version of the singular package leif posted, and the logs say that singular was built successfully.
Other things are still compiling, so I haven't actually run sage yet.
Brian