chexmix wrote:
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.
Yep, apparently some kind of Singular bug; on some systems / distros, it
puts inclusions of (mainly) C++ headers into cf_gmp.h, and these are not
in the default search path for header files when GCC compiles C.
Just fixing the generated header isn't that easy, as spkg-install
invokes 'make' a couple of times (and does other things inbetween, also
first patches the sources IIRC).
I don't recall any simple work-around (besides building Sage's GCC), but
adding the folder that contains <bits/c++config.h> to CPATH *may* work.
(It's usually in or below /usr/include/c++, or e.g.
/usr/lib/gcc/x86_64-linux-gnu/4.8.0/include/c++/x86_64-linux-gnu/bits/c++config.h.)
Perhaps a gcc bug? I neglected to note the gcc version on the box in
question (which is at home).
I'd say your GCC installation was broken if it didn't have
bits/c++config.h at all.
Before you make further attempts, could you save the offending cf_gmp.h
(and the corresponding config.log, from
spkg/build/singular-*/src/factory/ I think)?
-leif
--
() The ASCII Ribbon Campaign
/\ Help Cure HTML E-Mail
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.