leif wrote:
chexmix wrote:
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.
------------------
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.
What does, in a Sage subshell ('./sage --sh'), the following give:
$ echo '#include <gmp.h>' > gen_cf_gmp.cc
$ $CXX -M gen_cf_gmp.cc | grep gmp.h
(Do that in some arbitrary directory; you can delete gen_cf_gmp.cc
afterwards, provided you've not been in the Singular source tree...)
And be warned that this is just the first step to debug this... ;-)
-leif
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).
--
() 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.