Hello, all

FG build break on mac os x (10.4.2) (using gcc 4.0) building od_gauge.cxx:

gcc --version
powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 (Apple Computer, Inc. build 5026)

% make
source='od_gauge.cxx' object='od_gauge.o' libtool=no \
depfile='.deps/od_gauge.Po' tmpdepfile='.deps/od_gauge.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src - I/Users/ima/Desktop/FlightGear/fgdev9.8/include -g -O2 -D_REENTRANT - c -o od_gauge.o `test -f 'od_gauge.cxx' || echo './'`od_gauge.cxx /Users/ima/Desktop/FlightGear/fgdev9.8/include/simgear/structure/ event_mgr.hxx:54: error: declaration does not declare anything
make: *** [od_gauge.o] Error 1
[Four-Computer:flightgear/src/instrumentation] ima% sudo gcc_select 3.3
Password:
Default compiler has been set to:
gcc version 3.3 20030304 (Apple Computer, Inc. build 1809)
[Four-Computer:flightgear/src/instrumentation] ima% make
source='od_gauge.cxx' object='od_gauge.o' libtool=no \
depfile='.deps/od_gauge.Po' tmpdepfile='.deps/od_gauge.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src - I/Users/ima/Desktop/FlightGear/fgdev9.8/include -g -O2 -D_REENTRANT - c -o od_gauge.o `test -f 'od_gauge.cxx' || echo './'`od_gauge.cxx
In file included from ../../src/Main/globals.hxx:34,
                 from od_gauge.cxx:29:
/Users/ima/Desktop/FlightGear/fgdev9.8/include/simgear/structure/ event_mgr.hxx:54: warning: declaration
   does not declare anything

Either switching to gcc 3.3 (where this is a warning, as shown above -- but requiring a complete rebuild) or building this file with - fpermissive (shown below) will allow a successful build

g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src - I/Users/ima/Desktop/FlightGear/fgdev9.8/include -g -O2 -D_REENTRANT - c -o od_gauge.o -fpermissive `test -f 'od_gauge.cxx' || echo './'`od_gauge.cxx /Users/ima/Desktop/FlightGear/fgdev9.8/include/simgear/structure/ event_mgr.hxx:54: warning: declaration does not declare anything

Perhaps this is related to a known compiler problem?

<http://gcc.gnu.org/ml/gcc-bugs/2004-12/msg02476.html>

This 'error' started appearing only in the last few days and only seems to affect this one fg file... Any ideas on what might have gone wrong or how to properly fix it? 8-)

Thanks!

Ima


_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to