On Apr 21, 11:17 pm, "Gonzalo Tornaria" <[EMAIL PROTECTED]>
wrote:

Hi Gonzalo

> I am compiling with gcc-4.3, my previous build of 3.0rc0 worked fine
> (no gfortran installed in the system). However, for my build of 3.0rc1
> I tried to install using gfortran-4.3 (from debian/testing).
>
> I followed instructions in README.txt, and set:
>
> export CC=gcc-4.3
> export CXX=g++-4.3

I am not sure this will work all the time since sometimes we overwrite
CC or CXX. I would suggest you put the 4.3 gcc and g++ somewhere in
$PATH before gcc and g++ - Sage will then use them automatically.

> export SAGE_FORTRAN=/usr/bin/gfortran-4.3

Same as the above for the name. But it will likely work

> export SAGE_FORTRAN_LIB=/usr/lib/libgfortran.so.3

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.

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

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

> Gonzalo

Cheers,

Michael
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to