Bug#667310: opencity: ftbfs with GCC-4.7

Matthias Klose doko at debian.org
Tue Apr 3 23:11:24 UTC 2012


Package: opencity
Version: 0.0.6.4stable-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.

node_set.cpp:269:4: error: 'intptr_t' 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/opencity_0.0.6.4stable-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.

[...]
mv -f .deps/treestructure.Tpo .deps/treestructure.Po
x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../..  -I../../src/ -I../../src/enum/ -I../../src/mas/ -I../../src/networking/ -I/usr/X11R6/include  -DNDEBUG -Wall -Wmissing-braces -Wparentheses -pedantic-errors -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/libpng12    -std=c++98 -g -O2 -MT wegstructure.o -MD -MP -MF .deps/wegstructure.Tpo -c -o wegstructure.o wegstructure.cpp
mv -f .deps/wegstructure.Tpo .deps/wegstructure.Po
rm -f libstruct.a
ar cru libstruct.a pathstructure.o rcistructure.o structure.o treestructure.o wegstructure.o 
ranlib libstruct.a
make[4]: Leaving directory `/«PKGBUILDDIR»/src/structure'
Making all in tinyxpath
make[4]: Entering directory `/«PKGBUILDDIR»/src/tinyxpath'
x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../..   -I/usr/X11R6/include  -DNDEBUG -Wall -Wmissing-braces -Wparentheses -pedantic-errors -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/libpng12    -std=c++98 -g -O2 -MT action_store.o -MD -MP -MF .deps/action_store.Tpo -c -o action_store.o action_store.cpp
mv -f .deps/action_store.Tpo .deps/action_store.Po
x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../..   -I/usr/X11R6/include  -DNDEBUG -Wall -Wmissing-braces -Wparentheses -pedantic-errors -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/libpng12    -std=c++98 -g -O2 -MT lex_util.o -MD -MP -MF .deps/lex_util.Tpo -c -o lex_util.o lex_util.cpp
mv -f .deps/lex_util.Tpo .deps/lex_util.Po
x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../..   -I/usr/X11R6/include  -DNDEBUG -Wall -Wmissing-braces -Wparentheses -pedantic-errors -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/libpng12    -std=c++98 -g -O2 -MT node_set.o -MD -MP -MF .deps/node_set.Tpo -c -o node_set.o node_set.cpp
node_set.cpp: In function 'int TinyXPath::i_compare_ptr_and_flag(const void*, const void*)':
node_set.cpp:269:4: error: 'intptr_t' was not declared in this scope
node_set.cpp:269:13: error: expected ';' before 'n1'
node_set.cpp:270:13: error: expected ';' before 'n2'
node_set.cpp:272:8: error: 'n1' was not declared in this scope
node_set.cpp:272:14: error: 'n2' was not declared in this scope
node_set.cpp:275:8: error: 'n1' was not declared in this scope
node_set.cpp:275:13: error: 'n2' was not declared in this scope
node_set.cpp:279:1: warning: control reaches end of non-void function [-Wreturn-type]
make[4]: *** [node_set.o] Error 1
make[4]: Leaving directory `/«PKGBUILDDIR»/src/tinyxpath'
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2





More information about the Pkg-games-devel mailing list