Error in compiling Sage 5.9 in Fedora 18

54 views
Skip to first unread message

Wai Man Chung

unread,
Jun 16, 2013, 8:02:33 AM6/16/13
to sage-...@googlegroups.com
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


Volker Braun

unread,
Jun 16, 2013, 9:23:13 AM6/16/13
to sage-...@googlegroups.com
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

leif

unread,
Jun 16, 2013, 10:59:21 AM6/16/13
to sage-...@googlegroups.com
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>)
--
() The ASCII Ribbon Campaign
/\ Help Cure HTML E-Mail

Wai Man Chung

unread,
Jun 22, 2013, 5:49:07 AM6/22/13
to sage-...@googlegroups.com
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





--
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.
To unsubscribe from this group and all its topics, send an email to sage-devel+unsubscribe@googlegroups.com.
To post to this group, send email to sage-...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.



Volker Braun

unread,
Jun 22, 2013, 7:13:59 PM6/22/13
to sage-...@googlegroups.com
You have some half-built gfortran in the path, try "make distclean" to start the build from scratch.

Wai Man Chung

unread,
Jun 23, 2013, 1:32:40 AM6/23/13
to sage-...@googlegroups.com
Hi,

After trying "make distclean" to start the build from scratch, the build finally succeed.

Thanks.



--
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.
To unsubscribe from this group and all its topics, send an email to sage-devel+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages