#8089: ecl 9.10.2-20091105cvs.p1 faiils to build on Open Solaris x64
----------------------------+-----------------------------------------------
   Reporter:  drkirkby      |       Owner:  drkirkby                            
        
       Type:  defect        |      Status:  needs_review                        
        
   Priority:  major         |   Milestone:  sage-4.4.3                          
        
  Component:  solaris       |    Keywords:                                      
        
     Author:  David Kirkby  |    Upstream:  None of the above - read trac for 
reasoning.
   Reviewer:                |      Merged:                                      
        
Work_issues:                |  
----------------------------+-----------------------------------------------
Changes (by newvalueoldvalue):

  * status:  new => needs_review
  * author:  => David Kirkby


Comment:

 The latest version of Sage has ECL 10.2.1. Whilst the problem observed
 above still exists, the configure option
 {{{
 --with-dffi=no
 }}}
 is implemented in this version of ECL.

 A new spkg which resolves this problem by adding that option can be found
 at:

 http://boxen.math.washington.edu/home/kirkby/patches/ecl-10.2.1.p0.spkg

 All I needed to do was add this bit of code:

 {{{
 if [ "x`uname -rsm`" = "xSunOS 5.11 i86pc" ] && [ "x$SAGE64" = xyes ]  ;
 then
    # Need to add --with-dffi=no to disable assembly code on OpenSolaris
 x64.
    # This may be needed for other variants of Solaris, but for now at
 least
    # the option is only given if all the following are true
    # 1) OpenSolaris (SunOS 5.11)
    # 2) Intel or AMD CPU
    # 3) 64-bit build
    ./configure --prefix=$SAGE_LOCAL --with-dffi=no
 else
    ./configure --prefix=$SAGE_LOCAL
 fi
 }}}

 to ensure the option is only given on !OpenSolaris (SunOS 5.11) with an
 Intel/AMD CPU if built in 64-bit mode. Whether the option would be needed
 on Solaris 10, or with SPARC processors I don't know. So for now it is
 applied in very specific circumstances.

 With that configure option added, ECL then builds properly.

 {{{
 make[1]: Leaving directory
 `/export/home/drkirkby/sage-4.4.2/spkg/build/ecl-10.2.1.p0/src/build'

 real    1m41.880s
 user    1m26.518s
 sys     0m14.183s
 Successfully installed ecl-10.2.1.p0
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8089#comment:1>
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