[pkg-fgfs-crew] Bug#667167: flightgear: ftbfs with GCC-4.7

Matthias Klose doko at debian.org
Tue Apr 3 23:08:52 UTC 2012


Package: flightgear
Version: 2.4.0-1
Severity: important
Tags: sid wheezy
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.7

The package fails to build in a test rebuild on at least amd64 with
gcc-4.7/g++-4.7, but succeeds to build with gcc-4.6/g++-4.6. The
severity of this report may be raised before the wheezy release.

SGMisc.hxx:66:59: error: 'floor' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]

The full build log can be found at:
http://people.debian.org/~lucas/logs/2012/03/29-clang-gcc47/unstable-gcc47/flightgear_2.4.0-1_unstable-gcc47.log
The last lines of the build log are at the end of this report.

Some hints on fixing these issues can be found at
http://gcc.gnu.org/gcc-4.7/porting_to.html

To build with GCC 4.7, either set CC=gcc-4.7 CXX=g++-4.7 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

[...]
g++ -DHAVE_CONFIG_H -I. -I../../src/Include -I../.. -I../../src  -I/usr/local/include  -O2 -g -D_REENTRANT -Wall -I/usr -D_REENTRANT -MT gravity.o -MD -MP -MF .deps/gravity.Tpo -c -o gravity.o gravity.cxx
In file included from presets.cxx:27:0:
/usr/include/simgear/math/SGMisc.hxx: In instantiation of 'static T SGMisc<T>::normalizePeriodic(const T&, const T&, const T&) [with T = double]':
/usr/include/simgear/math/SGMisc.hxx:83:47:   required from 'static T SGMisc<T>::normalizeAngle2(const T&) [with T = double]'
presets.cxx:69:16:   required from here
/usr/include/simgear/math/SGMisc.hxx:66:59: error: 'floor' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from /usr/include/simgear/math/SGCMath.hxx:23:0,
                 from /usr/include/simgear/timing/timestamp.hxx:39,
                 from /usr/include/simgear/structure/subsystem_mgr.hxx:32,
                 from ../../src/Main/fg_props.hxx:11,
                 from presets.cxx:28:
/usr/include/c++/4.7/cmath:282:3: note: 'float std::floor(float)' declared here, later in the translation unit
make[3]: *** [presets.o] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/environment.Tpo .deps/environment.Po
mv -f .deps/gravity.Tpo .deps/gravity.Po
mv -f .deps/realwx_ctrl.Tpo .deps/realwx_ctrl.Po
mv -f .deps/fgclouds.Tpo .deps/fgclouds.Po
mv -f .deps/metarproperties.Tpo .deps/metarproperties.Po
mv -f .deps/ridge_lift.Tpo .deps/ridge_lift.Po
mv -f .deps/precipitation_mgr.Tpo .deps/precipitation_mgr.Po
mv -f .deps/terrainsampler.Tpo .deps/terrainsampler.Po
mv -f .deps/environment_mgr.Tpo .deps/environment_mgr.Po
make[3]: Leaving directory `/«PKGBUILDDIR»/src/Environment'
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make[2]: Leaving directory `/«PKGBUILDDIR»/src'
make[1]: Leaving directory `/«PKGBUILDDIR»'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2





More information about the pkg-fgfs-crew mailing list