#7867: GCC reports incorrect flags compiling descent_two_isogeny.c on Solaris 10
------------------------+---------------------------------------------------
   Reporter:  drkirkby  |       Owner:  drkirkby  
       Type:  defect    |      Status:  new       
   Priority:  major     |   Milestone:  sage-4.3.1
  Component:  solaris   |    Keywords:            
Work_issues:            |      Author:            
   Upstream:  N/A       |    Reviewer:            
     Merged:            |  
------------------------+---------------------------------------------------
Changes (by drkirkby):

 * cc: cremona, was (added)


Comment:

 The last option on the gcc command line '-w' is there to suppress all
 warnings. ('''A really really bad idea IMHO'''). If I remove that horrid
 -w option, some more warnings are shown. Whether these aid in solving the
 problem I do not know, but they do indicate a lot of potential problems
 are being masked. This unfortunately is quite common in Sage, with
 numerous bits of code using all sorts of tricks to hide warning messages.

 {{{
 sage subshell$
 /rootpool2/local/kirkby/sage-4.3.1.alpha1
 sage subshell$
 /rootpool2/local/kirkby/sage-4.3.1.alpha1
 sage subshell$ gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
 -Wstrict-prototypes -fPIC
 -I/rootpool2/local/kirkby/sage-4.3.1.alpha1/local/include/FLINT/
 -I/rootpool2/local/kirkby/sage-4.3.1.alpha1/local//include
 -I/rootpool2/local/kirkby/sage-4.3.1.alpha1/local//include/csage
 -I/rootpool2/local/kirkby/sage-4.3.1.alpha1/devel//sage/sage/ext
 -I/rootpool2/local/kirkby/sage-4.3.1.alpha1/local/include/python2.6 -c
 sage/schemes/elliptic_curves/descent_two_isogeny.c -o
 
build/temp.solaris-2.10-sun4v-2.6/sage/schemes/elliptic_curves/descent_two_isogeny.o
 -std=c99
 In file included from /usr/include/limits.h:18,
                  from /usr/local/gcc-4.4.1-sun-linker/bin/../lib/gcc
 /sparc-sun-solaris2.10/4.4.1/include-fixed/limits.h:122,
                  from /usr/local/gcc-4.4.1-sun-linker/bin/../lib/gcc
 /sparc-sun-solaris2.10/4.4.1/include-fixed/syslimits.h:7,
                  from /usr/local/gcc-4.4.1-sun-linker/bin/../lib/gcc
 /sparc-sun-solaris2.10/4.4.1/include-fixed/limits.h:11,
                  from
 /rootpool2/local/kirkby/sage-4.3.1.alpha1/local/include/python2.6/Python.h:19,
                  from
 sage/schemes/elliptic_curves/descent_two_isogeny.c:4:
 /usr/local/gcc-4.4.1-sun-linker/bin/../lib/gcc/sparc-sun-solaris2.10/4.4.1
 /include-fixed/sys/feature_tests.h:341:2: error: #error "Compiler or
 options invalid for pre-UNIX 03 X/Open applications      and pre-2001
 POSIX applications"
 In file included from
 sage/schemes/elliptic_curves/descent_two_isogeny.c:148:
 /rootpool2/local/kirkby/sage-4.3.1.alpha1/local//include/csage/ntl_wrap.h:142:
 warning: function declaration isn’t a prototype
 In file included from
 sage/schemes/elliptic_curves/descent_two_isogeny.c:148:
 /rootpool2/local/kirkby/sage-4.3.1.alpha1/local//include/csage/ntl_wrap.h:310:
 warning: ‘struct GF2X_c’ declared inside parameter list
 /rootpool2/local/kirkby/sage-4.3.1.alpha1/local//include/csage/ntl_wrap.h:310:
 warning: its scope is only this definition or declaration, which is
 probably not what you want
 /rootpool2/local/kirkby/sage-4.3.1.alpha1/local//include/csage/ntl_wrap.h:319:
 warning: ‘struct GF2E’ declared inside parameter list
 /rootpool2/local/kirkby/sage-4.3.1.alpha1/local//include/csage/ntl_wrap.h:327:
 warning: ‘struct GF2’ declared inside parameter list
 In file included from
 /rootpool2/local/kirkby/sage-4.3.1.alpha1/local//include/FLINT/fmpz.h:36,
                  from
 sage/schemes/elliptic_curves/descent_two_isogeny.c:150:
 /rootpool2/local/kirkby/sage-4.3.1.alpha1/local//include/FLINT/memory-
 manager.h:41: warning: function declaration isn’t a prototype
 /rootpool2/local/kirkby/sage-4.3.1.alpha1/local//include/FLINT/memory-
 manager.h:43: warning: function declaration isn’t a prototype
 /rootpool2/local/kirkby/sage-4.3.1.alpha1/local//include/FLINT/memory-
 manager.h:45: warning: function declaration isn’t a prototype
 In file included from
 /rootpool2/local/kirkby/sage-4.3.1.alpha1/local//include/FLINT/fmpz.h:38,
                  from
 sage/schemes/elliptic_curves/descent_two_isogeny.c:150:
 
/rootpool2/local/kirkby/sage-4.3.1.alpha1/local//include/FLINT/long_extras.h:287:
 warning: function declaration isn’t a prototype
 
/rootpool2/local/kirkby/sage-4.3.1.alpha1/local//include/FLINT/long_extras.h:288:
 warning: function declaration isn’t a prototype
 In file included from
 /rootpool2/local/kirkby/sage-4.3.1.alpha1/local//include/FLINT/fmpz.h:39,
                  from
 sage/schemes/elliptic_curves/descent_two_isogeny.c:150:
 
/rootpool2/local/kirkby/sage-4.3.1.alpha1/local//include/FLINT/zn_poly/src/zn_poly.h:47:
 warning: function declaration isn’t a prototype
 /rootpool2/local/kirkby/sage-4.3.1.alpha1
 sage subshell$
 }}}

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