Pong wrote:
Oh... I see. I am ignorant on what various flags mean.
Did you try to build the stand-alone/vanilla Singular configured with '--with-apint=gmp'?
Let me summarize my problems and see if I get them right: 1) my gcc compiler confuses c and c++ programs.
I don't think so, at least not immediately. The file whose compilation fails (using 'gcc') is supposed to be C code (and hence to be compiled as such), but -- for whatever reason -- the Singular scripts that create a header file (cf_gmp.h) included by that also (erroneously) include a file (bits/c++config.h) that is simply not in the (default) search path for header files when compiling C code.
[I don't know yet whether ArchLinux, Singular, or maybe even Sage is to blame.]
2) I want to solve 1) by forcing sage to use the gcc-4.7.2. but the problem is that the copy of gcc that come with sage won't build from my system gcc... (see the my 3rd message in this discussion) Am I right? Any ideas on what else can I try?
Unfortunately, Singular's spkg-install is too "complex" to just manually fix (the generated) src/factory/cf_gmp.h in a failed build and rerun ./spkg-install (from within a Sage subshell of course)... (You could try rerunning the appropriate 'make' command afterwards though, and see whether the remaining pieces of that target build. To resume the build of all of Singular, you'd have to temporarily change spkg-install, or manually issue all remaining commands, afterwards -- upon success -- manually touching spkg/installed/singular-<version>.)
But you could try to track the issue (i.e., the reason for the invalid inclusion) further down, also by trying to build vanilla Singular 3-1-5 as mentioned above.
-leif
On Sunday, May 5, 2013 9:20:00 PM UTC-7, leif wrote: Pong wrote: > Report: buliding Singular by itself seems to be completely fine. > > ./configure > make -j4 > results in > .... Well, you'd have to (at least) configure with '--with-apint=gmp' as well (cf. Sage's spkg-install script). -leif > /usr/bin/install -c -s solve_IP > /home/pong/Downloads/Singular-3-1-5/x86_64-Linux > /usr/bin/install -c -s change_cost > /home/pong/Downloads/Singular-3-1-5/x86_64-Linux > /usr/bin/install -c -s toric_ideal > /home/pong/Downloads/Singular-3-1-5/x86_64-Linux > /usr/bin/install -c -s gen_test > /home/pong/Downloads/Singular-3-1-5/x86_64-Linux > /usr/bin/install -c -s LLL /home/pong/Downloads/Singular-3-1-5/x86_64-Linux > make[2]: Leaving directory > `/home/pong/Downloads/Singular-3-1-5/IntegerProgramming' > echo "* do not forget to install Singular-3-1-5-share.tar.gz" > * do not forget to install Singular-3-1-5-share.tar.gz > make[1]: Leaving directory `/home/pong/Downloads/Singular-3-1-5' > > and it gives me back the prompt. I'm not sure if this "test" is helpful > in bugging what's going on. But perhaps it is not a Singular bug. > > On Sunday, May 5, 2013 4:31:10 PM UTC-7, Pong wrote: > > Well... it said "prerelease" > gcc version 4.8.0 20130502 (prerelease) (GCC) > > I see now, obviously 4.8.0 is still a prerelease... > > Just out of curiousity, I have just downloaded a copy of > Singular-3.1.5 from the offical site and see if it compiles on my > machine. > Will keep everyone posted.
-- () 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.