[GRASS-dev] Re: [GRASS GIS] #1533: mm.cc fails to build with GCC 4.7

GRASS GIS trac at osgeo.org
Tue Jan 10 23:46:05 EST 2012


#1533: mm.cc fails to build with GCC 4.7
----------------------------------------------+-----------------------------
 Reporter:  volter                            |       Owner:  grass-dev@…              
     Type:  defect                            |      Status:  new                      
 Priority:  major                             |   Milestone:  6.4.2                    
Component:  Compiling                         |     Version:  6.4.1                    
 Keywords:  libiostream, r.terraflow, gcc4.7  |    Platform:  Unspecified              
      Cpu:  Unspecified                       |  
----------------------------------------------+-----------------------------

Comment(by glynn):

 The log doesn't include the actual compilation command. Assuming that this
 is the issue originally reported in #1532, the command is:
 {{{
 c++ -I/builddir/build/BUILD/grass-6.4.1/dist.x86_64-redhat-linux-
 gnu/include  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
 -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic
 -D_FILE_OFFSET_BITS=64   -DPACKAGE=\""grasslibs"\"
 -I/builddir/build/BUILD/grass-6.4.1/dist.x86_64-redhat-linux-gnu/include
 -o OBJ.x86_64-redhat-linux-gnu/mm.o -c mm.cc
 }}}
 I suspect that it's the -fexceptions which is causing the error.
 lib/iostream and r.terraflow neither throw nor catch exceptions, so there
 isn't actually any reason to use -fexceptions (either way, any exception
 will just terminate the program).
 OTOH, the exception specifications are part of the signature of the new
 and delete operators, so they should be present.
 Try r50130 from trunk; if there are no issues, it should be back-ported.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1533#comment:2>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list