On Mar 5, 3:45 am, dmharvey <[email protected]> wrote: > Hi, I get the following build failure for sage 4.3.2 on alhambra (a > machine known to some people on this list): > > configure: Exiting since the Fortran compiler is not the same > configure: error: version as the C and C++ compilers > ERROR: You do not have all of the prerequisites needed > to build Sage from source. See the errors above. > make[1]: *** [installed/prereq-0.7] Error 1 > make[1]: Leaving directory `/home/dmharvey/sage-4.3.2/spkg' > > In fact we have: > > alhambra$ gcc --version > gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) > > alhambra$ g++ --version > g++ (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) > > alhambra$ gfortran --version > GNU Fortran (GCC) 4.2.1 (Ubuntu 4.2.1-5ubuntu4) > > Is there a workaround for this, or do I need to bug the sysadmin...? > > david
You might try $ which gfortran and see if there is gcc and g++ in that directory too. In which case put that directory in your path earlier. It's impossible to build gcc with just Fortran support, so I would suspect there is a gcc 4.2.1 and g++ 4.2.1 on your system. Finding where gfortran is, would probably lead you to the location of the more recent gcc and g++. I suspect someone build gcc 4.1.3 without Fortran support, then built a later version with Fortran support. If 4.1.3 is in your path first, then the old versions of gcc would be found, but a new version of g+ +. Mixing compiler versions would be risky. That is why I added that test. Dave -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
