Hi, Thanks for the advice.
I have taken advice of Volker Braun and run "sudo yum install gcc-c++ gcc-gfortran", then I run "make" again, it runs for a while and it seems the previous error is passed. But there is other similar error : ================================================= gfortran: error: libgfortran.spec: No such file or directory make[4]: *** [testlsame] Error 1 make[4]: Leaving directory `/home/wmchung/Sage-build-5.9/sage-5.9/spkg/build/lapack-20071123.p2/src/INSTALL' /bin/sh: ./testlsame: No such file or directory /bin/sh: ./testslamch: No such file or directory /bin/sh: line 1: ./testdlamch: No such file or directory /bin/sh: line 1: ./testsecond: No such file or directory /bin/sh: line 1: ./testdsecnd: No such file or directory /bin/sh: line 1: ./testversion: No such file or directory make[3]: *** [lapack_install] Error 127 make[3]: Leaving directory `/home/wmchung/Sage-build-5.9/sage-5.9/spkg/build/lapack-20071123.p2/src' Error compiling lapack. real 0m0.356s user 0m0.043s sys 0m0.060s ************************************************************************ Error installing package lapack-20071123.p2 ************************************************************************ ........ *************************************************************** Error building Sage. The following package(s) may have failed to build: package: gcc-4.7.2.p1 log file: /home/wmchung/Sage-build-5.9/sage-5.9/logs/pkgs/gcc-4.7.2.p1.log build directory: /home/wmchung/Sage-build-5.9/sage-5.9/spkg/build/gcc-4.7.2.p1 package: lapack-20071123.p2 log file: /home/wmchung/Sage-build-5.9/sage-5.9/logs/pkgs/lapack-20071123.p2.log build directory: /home/wmchung/Sage-build-5.9/sage-5.9/spkg/build/lapack-20071123.p2 The build directory may contain configuration files and other potentially helpful information. WARNING: if you now run 'make' again, the build directory will, by default, be deleted. Set the environment variable SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this. ----------------------------------------------------------------------------------------------------- It is quite strange. If you have any idea, I would be grateful if you can further advse. Regards, W.M. Chung On Sun, Jun 16, 2013 at 10:59 PM, leif <[email protected]> wrote: > Volker Braun wrote: > >> I haven't seen that on Fedora before, but then I've never tried to >> compile gcc in Sage. Ideally you'd just install the Fedora toolchain: >> sudo yum install gcc-c++ gcc-gfortran >> > > > Still, > /home/wmchung/Sage-build-5.9/**sage-5.9/spkg/build/sqlite-3.**7.5.p1/src/config.log > would be interesting. > > And it seems Fedora's g++ (gcc-c++) was already installed (unless Sage's > GCC spkg got installed half, which I don't think is likely to happen). > > It's also unclear to me why Sage would attempt to install further spkgs > (i.e., sqlite) when installing Sage's toolchain failed (unless perhaps '-k' > was given to 'make'). > > > -leif > > On Sunday, June 16, 2013 8:02:33 AM UTC-4, Wai Man Chung wrote: >> >> Dear all, >> >> I am building Sage 5.9 from source code in Fedora 18 64 bit. I meet >> error during the compilation : >> >> ==============================**==============================** >> ============== >> checking whether we are using the GNU C++ compiler... yes >> checking whether g++ accepts -g... yes >> checking dependency style of g++... gcc3 >> checking how to run the C++ preprocessor... /lib/cpp >> configure: error: C++ preprocessor "/lib/cpp" fails sanity check >> See `config.log' for more details. >> Error configuring sqlite >> >> real 0m2.465s >> user 0m0.435s >> sys 0m0.337s >> **************************************************************** >> ************ >> Error installing package sqlite-3.7.5.p1 >> **************************************************************** >> ************ >> Please email sage-devel >> (http://groups.google.com/**group/sage-devel<http://groups.google.com/group/sage-devel> >> >> <http://groups.google.com/**group/sage-devel<http://groups.google.com/group/sage-devel> >> >) >> >> explaining the problem and including the relevant part of the log file >> /home/wmchung/Sage-build-5.9/**sage-5.9/logs/pkgs/sqlite-3.7.** >> 5.p1.log >> Describe your computer, operating system, etc. >> If you want to try to fix the problem yourself, *don't* just cd to >> /home/wmchung/Sage-build-5.9/**sage-5.9/spkg/build/sqlite-3.**7.5.p1 >> and >> type 'make' or whatever is appropriate. >> Instead, the following commands setup all environment variables >> correctly and load a subshell for you to debug the error: >> (cd >> '/home/wmchung/Sage-build-5.9/**sage-5.9/spkg/build/sqlite-3.** >> 7.5.p1' >> && '/home/wmchung/Sage-build-5.9/**sage-5.9/sage' --sh) >> When you are done debugging, you can type "exit" to leave the >> subshell. >> **************************************************************** >> ************ >> make[2]: *** >> [/home/wmchung/Sage-build-5.9/**sage-5.9/spkg/installed/** >> sqlite-3.7.5.p1] >> Error 1 >> make[2]: Leaving directory `/home/wmchung/Sage-build-5.9/** >> sage-5.9/spkg' >> make[1]: *** [all] Error 2 >> make[1]: Leaving directory `/home/wmchung/Sage-build-5.9/** >> sage-5.9/spkg' >> >> real 0m22.724s >> user 0m12.157s >> sys 0m3.471s >> ******************************************************************* >> Error building Sage. >> >> The following package(s) may have failed to build: >> >> package: gcc-4.7.2.p1 >> log file: >> /home/wmchung/Sage-build-5.9/**sage-5.9/logs/pkgs/gcc-4.7.2.**p1.log >> build directory: >> /home/wmchung/Sage-build-5.9/**sage-5.9/spkg/build/gcc-4.7.2.**p1 >> >> package: sqlite-3.7.5.p1 >> log file: >> /home/wmchung/Sage-build-5.9/**sage-5.9/logs/pkgs/sqlite-3.7.** >> 5.p1.log >> build directory: >> /home/wmchung/Sage-build-5.9/**sage-5.9/spkg/build/sqlite-3.**7.5.p1 >> >> The build directory may contain configuration files and other >> potentially >> helpful information. WARNING: if you now run 'make' again, the build >> directory will, by default, be deleted. Set the environment variable >> SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this. >> >> make: *** [build] Error 1 >> >> >> ==============================**==============================** >> ============== >> >> It seems there are problems to build the gcc-4.7.2.p1 and >> sqlite-3.7.5.p1 package. >> >> I would be grateful if you can help. I search though the web and >> still cannot solve the problem. >> >> Thanks. >> W.M. Chung >> > > -- > () The ASCII Ribbon Campaign > /\ Help Cure HTML E-Mail > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "sage-devel" group. > To unsubscribe from this topic, visit https://groups.google.com/d/** > topic/sage-devel/K10TaiEPbRw/**unsubscribe<https://groups.google.com/d/topic/sage-devel/K10TaiEPbRw/unsubscribe> > . > To unsubscribe from this group and all its topics, send an email to > sage-devel+unsubscribe@**googlegroups.com<sage-devel%[email protected]> > . > To post to this group, send email to [email protected]. > Visit this group at > http://groups.google.com/**group/sage-devel<http://groups.google.com/group/sage-devel> > . > For more options, visit > https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> > . > > > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/groups/opt_out.
