#11162: print warning if no c compiler found
-----------------------------+----------------------------------------------
   Reporter:  jhpalmieri     |       Owner:              
       Type:  enhancement    |      Status:  needs_review
   Priority:  minor          |   Milestone:  sage-4.7    
  Component:  scripts        |    Keywords:              
     Author:  John Palmieri  |    Upstream:  N/A         
   Reviewer:                 |      Merged:              
Work_issues:                 |  
-----------------------------+----------------------------------------------

Comment(by drkirkby):

 We already have a script which checks the type of C compiler. I think that
 can either be used as-is, or with a small modification. The script is:

 {{{
   $SAGE_ROOT/local/bin/testcc.sh
 }}}

 I think it would be better to call that, rather than create another
 script.

 {{{
 drkirkby@hawk:~/sage-4.7.alpha3$ export CC=ls              # Not a valid C
 compiler.
 drkirkby@hawk:~/sage-4.7.alpha3$ local/bin/testcc.sh $CC
 drkirkby@hawk:~/sage-4.7.alpha3$ export CC=gcc
 drkirkby@hawk:~/sage-4.7.alpha3$ local/bin/testcc.sh $CC
 GCC
 drkirkby@hawk:~/sage-4.7.alpha3$ export CC=cc
 drkirkby@hawk:~/sage-4.7.alpha3$ local/bin/testcc.sh $CC
 Sun_Studio
 drkirkby@hawk:~/sage-4.7.alpha3$ local/bin/testcc.sh $CC
 drkirkby@hawk:~/sage-4.7.alpha3$ export CC=fdddffdfdfdfdfd        # Non
 existent compiler.
 local/bin/testcc.sh: line 114: fdddffdfdfdfdfd: not found
 drkirkby@hawk:~/sage-4.7.alpha3$
 }}}

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