#2999: Some packages don't respect the CC environment variable
-------------------------+--------------------------------------------------
    Reporter:  dfdeshom  |         Owner:  mabshoff                         
        Type:  defect    |        Status:  closed                           
    Priority:  critical  |     Milestone:  sage-duplicate/invalid/wontfix   
   Component:  build     |    Resolution:  duplicate                        
    Keywords:            |   Work_issues:                                   
    Upstream:  N/A       |      Reviewer:  Michael Orlitzky, R. Andrew Ohana
      Author:            |        Merged:                                   
Dependencies:            |  
-------------------------+--------------------------------------------------

Comment(by leif):

 Replying to [comment:11 mjo]:
 > And gap was fixed at #2575 and #4161...

 Aha.  I knew `CC` was "intentionally" unset in GAP's `spkg-install` for a
 long time (which was annoying anyway), but '''now''' I still get:
 {{{
 gcc version 4.6.3 (GCC)
 ****************************************************
 *WARNING*: Unsetting CC since that tends to break GAP building
 *WARNING*: Unsetting CXX since that tends to break GAP building
 checking build system type... x86_64-unknown-linux-gnu
 checking host system type... x86_64-unknown-linux-gnu
 checking target system type... x86_64-unknown-linux-gnu
 checking for gcc... gcc
 checking for C compiler default output file name...
 configure: error: C compiler cannot create executables
 See `config.log' for more details.
 Configuration of GAP failed.

 real    0m0.793s
 user    0m0.160s
 sys     0m0.050s
 ************************************************************************
 Error installing package gap-4.4.12.p6
 ************************************************************************
 }}}

 So if there's been an issue with `CC` and `CXX` set, it might have been
 '''fixed upstream''' (I believe so), but it '''isn't fixed in Sage'''.

 [The problem here simply is that the "default" `gcc`, which is 4.4.3,
 doesn't understand some of the options I pass in `CFLAGS`.  GCC 4.6.3,
 specified in `CC`, of course ''does'' understand them.]

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