#6445: [with patch, needs review] pari 2.3.3.p0 problem on 't2' but not my home
machine (similar setups!!)
----------------------+-----------------------------------------------------
 Reporter:  drkirkby  |       Owner:  drkirkby         
     Type:  defect    |      Status:  assigned         
 Priority:  major     |   Milestone:  sage-4.1         
Component:  solaris   |    Keywords:  solaris pari fPIC
 Reviewer:            |      Author:                   
   Merged:            |  
----------------------+-----------------------------------------------------
Changes (by drkirkby):

  * keywords:  solaris pari => solaris pari fPIC


Comment:

 This has now been resolved, thanks to Marc Glisse's help after I posted
 the query to comp.unix.solaris. The PARI code was missing the gcc compiler
 flag -fPIC. Why PARI built on my own Blade 2000 but not on the 16-core
 T5240 (t2.math.washington.edu) is not clear to me.

 Here's a patch, which adds -fPIC to one of the files used to generate the
 Makefile that PARI uses.

 http://sage.math.washington.edu/home/kirkby/Solaris-fixes/pari/

 Basically all my patch does is to add this to the top of spkg-install,
 which adds -fPIC
 {{{
 # As of PARI 2.3.3, the compiler flag -fPIC is not added on Solaris, but
 it needs to be. It basically adds:
 if [ `uname` = "SunOS" ]; then
   sed 's/-fomit-frame-pointer/-fomit-frame-pointer -fPIC/g'
 src/config/get_cc > src/config/get_cc.$$
   mv src/config/get_cc.$$ src/config/get_cc
 fi
 }}}
 and remove that below
 {{{
 # PARI doesn't set PIC correctly on Solaris, so we do this.
   if [ `uname` = "SunOS" ]; then
    CFLAGS=$CFLAGS" -fPIC"
    export CFLAGS
 fi
 }}}
 since the latter code was not working, despite it's obvious attempts to
 add -fPIC

 David Kirkby

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