I followed instructions in README.txt, and set:
export CC=gcc-4.3
export CXX=g++-4.3
export SAGE_FORTRAN=/usr/bin/gfortran-4.3
export SAGE_FORTRAN_LIB=/usr/lib/libgfortran.so.3
However, I get a "ld: cannot find -lgfortran" while building atlas-3.8.1.p1.
What is the correct syntax for "SAGE_FORTRAN_LIB"?
Actually: the install.log doesn't show any trace of using
"gfortran-4.3" as a binary. NOTE: I do *not* have "gfortran" package
installed in my system, so the log is full of "checking for
gfortran... no". But I think gfortran should work fine as long as it
is called by "gfortran-4.3".
Gonzalo
Ok, I've switched to
export PATH=~/sage/bin:$PATH
export CC=gcc-4.3
export CXX=g++-4.3
export SAGE_FORTRAN=~/sage/bin/gfortran
export SAGE_FORTRAN_LIB=~/sage/lib/libgfortran.so
(with gcc, g++, gfortran symlinks in ~/sage/bin, and a libgfortran.so
symlink in ~/sage/lib). Maybe I'll have a look at the install.log
later to see which packages honor the env variables and which don't.
(maybe I should link gcc to /bin/false to reallly test this... ;-) )
> ATLAS only links to libgfortran.so for some reason, so either link it
> against that name or copy it somewhere as libgfortran.so and point
> SAGE_FORTRAN_LIB to it. Another alternative is to start the build and
> then copy libgfortran.so.3 into SAGE_LOCAL/lib as libgfortran.so
> before ATLAS get going.
Please consider the following patch for the readme (don't credit me, I
just reworded what you just said :-) ).
--- sage-3.0.rc0/README.txt 2008-04-19 04:32:24.000000000 -0300
+++ sage-3.0.rc1/README.txt 2008-04-21 18:58:39.000000000 -0300
@@ -67,6 +67,14 @@
export SAGE_FORTRAN=/exact/path/to/gfortran
export SAGE_FORTRAN_LIB=/path/to/fortran/libs/libgfortran.so
+ Note that ATLAS only links to libgfortran.so for some reason.
+ If your system-wide library has a different filename (e.g.
+ libgfortran.so.3), either link it against that name or copy it
+ somewhere as libgfortran.so and point SAGE_FORTRAN_LIB to it.
+ Another alternative is to start the build and then copy
+ libgfortran.so.3 into SAGE_LOCAL/lib as libgfortran.so before
+ ATLAS get going.
+
UNSUPPORTED, BUT HIGH PRIORITY TO SUPPORT SOON:
sparc Solaris 9, Solaris 10
x86_64 Solaris 10
> Well, many people seem to disagree with you ;) - some times you should
> be able to set some env variable to point it to gfortran-4.3. I think
> in the vast majority of cases configure checks for some Fortran
> compiler ever though they do not compile any Fortran code. Sigh ...
> autohell ;)
Yes, yes... but I don't know what is the analogue env variable of CC
and CXX for fortran. Is there one?
Gonzalo