#9583: Unhandled SIGSEGV with 4.5.2.alpha0 on t2
-----------------------+----------------------------------------------------
   Reporter:  mpatel   |       Owner:  drkirkby  
       Type:  defect   |      Status:  new       
   Priority:  blocker  |   Milestone:  sage-4.5.2
  Component:  solaris  |    Keywords:            
     Author:           |    Upstream:  N/A       
   Reviewer:           |      Merged:            
Work_issues:           |  
-----------------------+----------------------------------------------------

Comment(by drkirkby):

 Replying to [comment:19 jhpalmieri]:
 > I touched the files option.pyx and singular.pyx in
 devel/sage/sage/libs/singular/ and did "sage -b".  The only warnings seem
 to be these:
 > {{{
 > cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
 Ada/C/ObjC but not for C++
 > cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
 Ada/C/ObjC but not for C++
 > }}}
 When I touch one of the files and run {{{sage -b}}} I see:

 {{{
 building 'sage.libs.singular.option' extension
 gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
 prototypes -fPIC
 -I/export/home/drkirkby/32/sage-4.5.2.alpha0/local/include/singular
 -I/export/home/drkirkby/32/sage-4.5.2.alpha0/local//include
 -I/export/home/drkirkby/32/sage-4.5.2.alpha0/local//include/csage
 -I/export/home/drkirkby/32/sage-4.5.2.alpha0/devel//sage/sage/ext
 -I/export/home/drkirkby/32/sage-4.5.2.alpha0/local/include/python2.6 -c
 sage/libs/singular/option.cpp -o
 build/temp.solaris-2.10-sun4u-2.6/sage/libs/singular/option.o -w
 cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
 Ada/C/ObjC but not for C++
 }}}
 What is certainly not a good idea is that the '''C''' compiler gcc is
 being invoked to compile a '''C++''' program. Since option.cpp is a C++
 file, it should be compiled with g++, not gcc.

 I doubt that would be extensively checked by the gcc developers. It may be
 a case of you get away with it on some platforms some of the time, but not
 all platforms all of the time.

 Dave

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