leif wrote:
The problem is not that a C compiler is used to compile weight0.c, but
that cf_gmp.h includes <bits/c++config.h> in the first place.

(Although bits/c++config.h is valid C code as well, it's not in the
[C++] include path if you compile a file as C code which includes it.)

But it seems ArchLinux's broken gcc/g++ behaviour triggers the problem.

Though it might still be a genuine Singular bug.


Pong, could you upload/attach your cf_gmp.h? (Should be located in
$SAGE_ROOT/spkg/build/singular-3-1-5.p7/src/factory/, but only after a
failed build or if you use 'sage -f -s ...', or alternatively set
SAGE_KEEP_BUILT_SPKGS=yes.)


I'll take a look at the full Singular build log you attached earlier.

The relevant lines seem to be these:

echo "#!/bin/sh" >gen_cf_gmp.sh
echo "GMP_H_T=\"`g++ -Wall -fno-implicit-templates -I. -I.. -I. -I/home/pong/sage-5.9/local -I/home/pong/sage-5.9/local/include -DHAVE_CONFIG_H -I/home/pong/sage-5.9/local/include -I/home/pong/sage-5.9/local/include -O2 -g -fPIC -M gen_cf_gmp.cc|grep gmp.h` \"" >>gen_cf_gmp.sh
cat gen_cf_gmp.template >>gen_cf_gmp.sh
/bin/sh gen_cf_gmp.sh
generating cf_gmp.h from /home/pong/sage-5.9/local/include/gmp.h /usr/include/c++/4.8.0/iosfwd

(Note the iosfwd.)


-leif

--
() The ASCII Ribbon Campaign
/\   Help Cure HTML E-Mail

--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to