Francois Bissey wrote:
On 05/05/13 21:12, Wai Yan Pong wrote:
Hum I see what you are saying. Well my case is a bit tricky but I think
I'm not alone. I am using Archlinux, so there is not g++ separately. And
gcc decides whether the program as a C or C++ program in the following way.
|gcc file.C # uppercase .C (or .cpp) will process as C++
gcc file.c # lowercase .c will process as C|
see
http://unix.stackexchange.com/questions/34654/c-compile-in-arch-linux-with-no-g-package-in-repositories
for details.
So the question is what can be changed so that the gcc in my machine
will interpret compile weight0.c as a C++ program...
I wonder why I didn't encounter such a program earlier... perhaps it's
the pre-release reversion that causes that problem.
Also can I use force it to use the gcc (I suppose gcc-4.7.2.p1.spkg is
the one) that comes with sage to compile?
Yes it looks tricky. It could very well be a regression as it compile
with the C compiler and not the C++ compiler on my box with gcc 4.6.3
(gentoo). That being said gcc is very permissive and one day someone may
decide to cut that one off. Would you believe that 2 days ago I
accidentally configured octave with CXX=gcc-4.7.1 and I almost
completely compiled it before being shot down by such a problem [octave
is mostly c++].
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.
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.
-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.