Bug#667121: brutalchess: ftbfs with GCC-4.7

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


Package: brutalchess
Version: 0.5.2+dfsg-3
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.

faileplayer.cpp:27:28: error: 'write' 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/brutalchess_0.5.2+dfsg-3_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.

[...]
piece.h:62:8: warning: 'Piece::m_color' will be initialized after [-Wreorder]
piece.h:60:7: warning:   'Piece::Type Piece::m_type' [-Wreorder]
piece.h:36:2: warning:   when initialized here [-Wreorder]
faileplayer.cpp: In destructor 'virtual FailePlayer::~FailePlayer()':
faileplayer.cpp:27:28: error: 'write' was not declared in this scope
faileplayer.cpp: In member function 'virtual void FailePlayer::startGame()':
faileplayer.cpp:42:27: error: 'write' was not declared in this scope
faileplayer.cpp: In member function 'void FailePlayer::runChessEngine()':
faileplayer.cpp:48:13: error: 'pipe' was not declared in this scope
faileplayer.cpp:51:11: error: 'fork' was not declared in this scope
faileplayer.cpp:53:12: error: 'nice' was not declared in this scope
faileplayer.cpp:54:20: error: 'dup2' was not declared in this scope
faileplayer.cpp:56:18: error: 'close' was not declared in this scope
faileplayer.cpp:59:27: error: 'execvp' was not declared in this scope
faileplayer.cpp:62:31: error: 'write' was not declared in this scope
faileplayer.cpp: In member function 'virtual void FailePlayer::think(const ChessGameState&)':
faileplayer.cpp:76:34: error: 'read' was not declared in this scope
faileplayer.cpp: In member function 'virtual void FailePlayer::opponentMove(const BoardMove&, const ChessGameState&)':
faileplayer.cpp:131:36: error: 'write' was not declared in this scope
faileplayer.cpp: In member function 'virtual void FailePlayer::undoMove()':
faileplayer.cpp:137:32: error: 'write' was not declared in this scope
In file included from faileplayer.cpp:10:0:
board.h: At global scope:
board.h:248:12: warning: 'pow2' defined but not used [-Wunused-variable]
make[3]: *** [faileplayer.o] Error 1
make[3]: Leaving directory `/«BUILDDIR»/brutalchess-0.5.2+dfsg/src'
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
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