Bug#667368: sdl-ball: ftbfs with GCC-4.7

Matthias Klose doko at debian.org
Tue Apr 3 23:12:25 UTC 2012


Package: sdl-ball
Version: 1.01-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.

main.cpp:4668:18: error: 'usleep' was not declared in this scope

The full build log can be found at:
http://people.debian.org/~lucas/logs/2012/03/29-clang-gcc47/unstable-gcc47/sdl-ball_1.01-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.

[...]
 dpkg-source --before-build sdl-ball-1.01
dpkg-buildpackage: host architecture amd64
 fakeroot debian/rules clean
dh clean
   dh_testdir
   dh_auto_clean
make[1]: Entering directory `/«PKGBUILDDIR»'
rm -f *.o sdl-ball
make[1]: Leaving directory `/«PKGBUILDDIR»'
   dh_clean
dpkg-buildpackage: warning: debian/rules must be updated to support the 'build-arch' and 'build-indep' targets (at least 'build-arch' seems to be missing)
 debian/rules build
dh build
   dh_testdir
   dh_auto_configure
   dh_auto_build
make[1]: Entering directory `/«PKGBUILDDIR»'
g++ -DDATADIR="\"/usr/share/games/sdl-ball/\"" -c -Wall `sdl-config --cflags` main.cpp -o main.o
main.cpp: In function 'bool screenShot()':
main.cpp:3687:102: warning: narrowing conversion of '(setting.settings::resx % 256)' from 'int' to 'unsigned char' inside { } is ill-formed in C++11 [-Wnarrowing]
main.cpp:3687:102: warning: narrowing conversion of '(setting.settings::resx / 256)' from 'int' to 'unsigned char' inside { } is ill-formed in C++11 [-Wnarrowing]
main.cpp:3687:102: warning: narrowing conversion of '(setting.settings::resy % 256)' from 'int' to 'unsigned char' inside { } is ill-formed in C++11 [-Wnarrowing]
main.cpp:3687:102: warning: narrowing conversion of '(setting.settings::resy / 256)' from 'int' to 'unsigned char' inside { } is ill-formed in C++11 [-Wnarrowing]
main.cpp: In function 'int main(int, char**)':
main.cpp:4668:18: error: 'usleep' was not declared in this scope
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/«PKGBUILDDIR»'
dh_auto_build: make -j1 returned exit code 2
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2





More information about the Pkg-games-devel mailing list