Jaap Spies wrote:
Dr. David Kirkby wrote:
Jaap Spies wrote:
Dr. David Kirkby wrote:
Jaap Spies wrote:

There is a hiatus in the spkg-install. If you only export SAGE_FORTRAN
on Open Solaris with SAGE64="yes" the script picks up the wrong lib.

../lib/amd64/libgfortran is needed.

That is not going to work on SPARC though. Instead, use:

../lib/`isainfo -n`/libgfortran.so

as that will substitute the correct library on either Solaris platform.
(It's not portable across other platforms though - AIX, HP-UX etc)

SAGE_FORTRAN and SAGE_FORTRAN_LIB are quite separate things.

SAGE_FORTRAN has nothing to do with the library.


The only point I would like to make is that the script as is picks up
the wrong lib if SAGE_FORTRAN_LIB is not set to the right libgfortran.so

Jaap


It would be good if there was a check that SAGE_FORTRAN_LIB was pointing
at a 64-bit library, if the build is 64-bit. I know that was one of the
mistakes I made.

There's some discussion of this at

http://trac.sagemath.org/sage_trac/ticket/7484

I could add such a check in 'prereq' to make sure that SAGE_FORTRAN_LIB
was a 64-bit library if SAGE64 was exported to yes. (I could work out
how to do that on Solaris and HP-UX, but I'm not sure how to handle it
on OS X).


OS X is a case on its own. Forced to use the included binary, as far as I
understand things.

Sort of, but if you note what William said above, it is possible to use another compiler on OS X, and it should be used in preference to the included one if SAGE_FORTRAN is set.


On Open Solaris things went wrong with the spkg-install python scrypt
assuming the libgfortran.so is  ../../lib/libgfortran.so in stead of
(you and I know) ../../lib/amd64/libgfortran.so :(

Jaap


Yes it will. But also bear in mind it will go wrong if you use 'amd64' on SPARC.

Actually, the best way, is probably to use '64' rather than 'amd64' or 'sparcv9', as on both systems, 64 is a symbolic link. On Solaris x86:

drkir...@hawk:~$ ls -ld /usr/lib/64
lrwxrwxrwx   1 root     root           5 Oct 26 17:17 /usr/lib/64 -> amd64
drkir...@hawk:~$

On Solaris SPARC

drkir...@swan:[~/sage-4.3.1/spkg/base/prereq-0.7] $ ls -ld /usr/lib/64
lrwxrwxrwx   1 root     root           7 Jul 11  2009 /usr/lib/64 -> sparcv9
drkir...@swan:[~/sage-4.3.1/spkg/base/prereq-0.7] $


The same is true in /usr/local.

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to