#13287: Override more compiler-related environment variables if Sage's GCC is 
used
----------------------------------------------------------------------------------+
       Reporter:  leif                                                          
  |         Owner:  leif        
           Type:  defect                                                        
  |        Status:  needs_review
       Priority:  minor                                                         
  |     Milestone:  sage-5.3    
      Component:  scripts                                                       
  |    Resolution:              
       Keywords:  GCC spkg CPP FC F77 F95 Fortran compiler preprocessor 
sage-env  |   Work issues:              
Report Upstream:  N/A                                                           
  |     Reviewers:              
        Authors:  Leif Leonhardy                                                
  |     Merged in:              
   Dependencies:                                                                
  |      Stopgaps:              
----------------------------------------------------------------------------------+
Changes (by {'newvalue': u'Leif Leonhardy', 'oldvalue': ''}):

  * status:  new => needs_review
  * author:  => Leif Leonhardy


Old description:

> Currently only `CC` and `CXX` get modified (in `spkg/bin/sage-env`) if
> Sage's GCC spkg is installed (more precisely, if
> `$SAGE_LOCAL/bin/{gcc,g++}` are present).
>
> We should also set / override `CPP` and (at least) also various commonly-
> used Fortran compiler variables to make sure the versions from ''Sage's''
> GCC installation get used, since the user may have specified these, and
> the build might break (due to mixing different compiler versions).  (As
> an example, building ECL currently fails if `$CPP` finds `ffi.h` although
> it is not really installed system-wide, but rather only in e.g.
> `/usr/lib/<ARCH>/<$CPP's version>/include/`; see [comment:ticket:13150:5]
> ff.)

New description:

 Currently only `CC` and `CXX` get modified (in `spkg/bin/sage-env`) if
 Sage's GCC spkg is installed (more precisely, if
 `$SAGE_LOCAL/bin/{gcc,g++}` are present).

 We should also set / override `CPP` and (at least) also various commonly-
 used Fortran compiler variables to make sure the versions from ''Sage's''
 GCC installation get used, since the user may have specified these, and
 the build might break (due to mixing different compiler versions).  (As an
 example, building ECL currently fails if `$CPP` finds `ffi.h` although it
 is not really installed system-wide, but rather only in e.g.
 `/usr/lib/<ARCH>/<$CPP's version>/include/`; see [comment:ticket:13150:5]
 ff.)

 ----

 Apply

  * [attachment:trac_13287-set_CPP_FC_etal_if_GCC_spkg_is_installed.patch]

 to the '''Sage root''' repository.

--

Comment:

 Initial patch now attached here.

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