#7034: PolyBoRi pass GNU specific options to the Sun compiler
---------------------------------------------------------+------------------
   Reporter:  drkirkby                                   |       Owner:  tbd    
      
       Type:  defect                                     |      Status:  new    
      
   Priority:  major                                      |   Milestone:  
sage-4.3     
  Component:  solaris                                    |    Keywords:  SCons 
Solaris
Work_issues:                                             |      Author:         
      
   Upstream:  Reported upstream. Little or no feedback.  |    Reviewer:         
      
     Merged:                                             |  
---------------------------------------------------------+------------------

Comment(by PolyBoRi):

 From polybori-discuss:
 In fact, Sage forces PolyBoRi to do so. Sage's spkg contains a custom.py
 file, which overwrites PolyBoRi's settings:
 Looking at  polybori-0.6.3.r1647-20091028, one can see:

 dre...@lts035 [999] (0) [...patches]cat custom.py
 import os
 import sys

 CCFLAGS=["-O3 -Wno-long-long -Wreturn-type -g -fPIC"]
 CXXFLAGS=CCFLAGS+["-ftemplate-depth-100 -g -fPIC"]
 [...]

 The -W options can be dropped without any problems for all platforms.
 But the remaining options were set intentionally in Sage, as far as I
 know.  (I don't know the reason for -fPIC).
 Does PolyBoRi compile with the sun-compiler, if -ftemplate-depth-100 and
 -fPIC is dropped, i.e. if the two lines from custom.py read as follows:

 CCFLAGS=["-O3 -g"]
 CXXFLAGS=[""]
 (previous line corrected since polybori-discuss)

 In addition (see
 http://developers.sun.com/solaris/articles/cmp_stlport_libCstd.html)
 in order to have C++98 available, one has to build with  -library=stlport4
 .

 But there are still some lines of code (related to default template
 parameters), which do not compile using the solaris compiler. I'll try to
 sort this out.

 Regards,
   Alexander

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