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
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) > 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 > > > -- 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.
