#7982: [with spkg, needs review]  sage_fortran on Open Solaris 64 bit is the 
wrong
thing (solved)
--------------------------+-------------------------------------------------
   Reporter:  jsp         |       Owner:  drkirkby    
       Type:  defect      |      Status:  needs_review
   Priority:  major       |   Milestone:  sage-4.3.2  
  Component:  porting     |    Keywords:              
     Author:  Jaap Spies  |    Upstream:  N/A         
   Reviewer:              |      Merged:              
Work_issues:              |  
--------------------------+-------------------------------------------------
Changes (by newvalueoldvalue):

  * status:  new => needs_review
  * author:  => Jaap Spies


Old description:

> The fortran-20071120.p9.spkg does not build well on Open Solaris 64 bit.
> It defaults to 32 bit.
>
> What is the way to go?
>
> 1) try to build g95 from src
>
> or
>
> 2) export SAGE_FORTRAN='path to gfortran'
>    export SAGE_FORTAN_LIB='path to lib/amd64/libfortran.so
>
> I all cases there must be a way to inserting the compiler option -m64
> in sage_fortran.
>
> For now I went for 2) and edited the file by hand.
>
> {{{
> j...@opensolaris:~/Downloads/sage-4.3.1.rc0$ cat local/bin/sage_fortran
> #!/bin/sh
>
> /usr/local/gcc-4.3.4-GNU-assembler-Sun-linker/bin/gfortran -m64 -fPIC $@
>
> }}}
>

> Jaap

New description:

 The fortran-20071120.p9.spkg does not build well on Open Solaris 64 bit.
 It defaults to 32 bit.

 What is the way to go?

 1) try to build g95 from src

 or

 2) export SAGE_FORTRAN='path to gfortran'
    export SAGE_FORTAN_LIB='path to lib/amd64/libgfortran.so

 I all cases there must be a way to inserting the compiler option -m64
 in sage_fortran.

 For now I went for 2) and edited the file by hand.

 {{{
 j...@opensolaris:~/Downloads/sage-4.3.1.rc0$ cat local/bin/sage_fortran
 #!/bin/sh

 /usr/local/gcc-4.3.4-GNU-assembler-Sun-linker/bin/gfortran -m64 -fPIC $@

 }}}


 Jaap

--

Comment:

 The new fortran-20100118.spkg made it easy #7485 (g95 is gone) just use
 gfortran.

 Setting SAGE_FORTRAN and SAGE_FORTRAN_LIB to the right files, e.g.
 export SAGE_FORTAN_LIB='path to lib/amd64/libgfortran.so

 The patched spkg can be found here:
 [http://boxen.math.washington.edu/home/jsp/ports/fortran-20100118.p0.spkg]

 Jaap

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7982#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB
-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
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-trac?hl=en.


Reply via email to