Bug#667429: zsnes: ftbfs with GCC-4.7

Matthias Klose doko at debian.org
Tue Apr 3 23:13:29 UTC 2012


Package: zsnes
Version: 1.510+bz2-2
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.

tools/depbuild.cpp:168:37: error: 'F_OK' 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/zsnes_1.510+bz2-2_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.

[...]

SDL support                   Version 1.2.15
NASM support                  NASM version 2.09.10 compiled on Aug 29 2011
zlib support                  Version 1.2.6
PNG support                   Yes, version 1.2.47
OpenGL support                Yes
JMA support                   Yes
ZSNES debugger                Enabled

The binary will be installed in /usr/bin

Configure complete, now type 'make' and pray.

make[1]: Leaving directory `/«BUILDDIR»/zsnes-1.510+bz2'
   dh_auto_build -a -O--sourcedirectory=src
make[1]: Entering directory `/«BUILDDIR»/zsnes-1.510+bz2/src'
g++ -m32 -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -D__OPENGL__ -march=i486 -O3 -fomit-frame-pointer -fprefetch-loop-arrays -fforce-addr -s -D__RELEASE__ -fno-rtti -o tools/fileutil.o -c tools/fileutil.cpp
tools/fileutil.cpp:1:0: warning: -fprefetch-loop-arrays not supported for this target (try -march switches) [enabled by default]
g++ -m32 -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -D__OPENGL__ -march=i486 -O3 -fomit-frame-pointer -fprefetch-loop-arrays -fforce-addr -s -D__RELEASE__ -fno-rtti -o tools/strutil.o -c tools/strutil.cpp
tools/strutil.cpp:1:0: warning: -fprefetch-loop-arrays not supported for this target (try -march switches) [enabled by default]
g++ -m32 -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -D__OPENGL__ -march=i486 -O3 -fomit-frame-pointer -fprefetch-loop-arrays -fforce-addr -s -D__RELEASE__ -fno-rtti -o tools/depbuild tools/depbuild.cpp tools/fileutil.o tools/strutil.o
tools/depbuild.cpp:1:0: warning: -fprefetch-loop-arrays not supported for this target (try -march switches) [enabled by default]
tools/depbuild.cpp: In function 'void dependency_calculate(const char*, stat&)':
tools/depbuild.cpp:168:37: error: 'F_OK' was not declared in this scope
tools/depbuild.cpp:168:41: error: 'access' was not declared in this scope
make[1]: *** [tools/depbuild] Error 1
make[1]: Leaving directory `/«BUILDDIR»/zsnes-1.510+bz2/src'
dh_auto_build: make -j1 returned exit code 2
make: *** [build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2





More information about the Pkg-games-devel mailing list