Bug#853626: python-sfml: ftbfs with GCC-7
Matthias Klose
doko at debian.org
Tue Jan 31 09:35:19 UTC 2017
Package: src:python-sfml
Version: 2.2~git20150611.196c88+dfsg-3
Severity: normal
Tags: sid buster
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-7
Please keep this issue open in the bug tracker for the package it
was filed for. If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.
The package fails to build in a test rebuild on at least amd64 with
gcc-7/g++-7, but succeeds to build with gcc-6/g++-6. The
severity of this report may be raised before the buster release.
There is no need to fix this issue in time for the stretch release.
The full build log can be found at:
http://people.debian.org/~doko/logs/gcc7-20170126/python-sfml_2.2~git20150611.196c88+dfsg-3_unstable_gcc7.log
The last lines of the build log are at the end of this report.
To build with GCC 7, either set CC=gcc-7 CXX=g++-7 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-7/porting_to.html
[...]
x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -Wl,-z,now -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/python-sfml-2.2~git20150611.196c88+dfsg=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-amd64-3.5-pydebug/src/sfml/audio.o build/temp.linux-amd64-3.5-pydebug/src/sfml/DerivableSoundRecorder.o build/temp.linux-amd64-3.5-pydebug/src/sfml/DerivableSoundStream.o -lsfml-system -lsfml-audio -o /<<BUILDDIR>>/python-sfml-2.2~git20150611.196c88+dfsg/.pybuild/pythonX.Y-dbg_3.5/build/sfml/audio.cpython-35dm-x86_64-linux-gnu.so
cythoning src/sfml/network.pyx to src/sfml/network.cpp
building 'sfml.network' extension
x86_64-linux-gnu-gcc -pthread -g -Og -Wall -Wstrict-prototypes -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/python-sfml-2.2~git20150611.196c88+dfsg=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.5dm -c src/sfml/network.cpp -o build/temp.linux-amd64-3.5-pydebug/src/sfml/network.o -fpermissive
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
In file included from src/sfml/network.cpp:460:0:
include/pysfml/system_api.h:99:12: warning: 'int import_sfml__system()' defined but not used [-Wunused-function]
static int import_sfml__system(void) {
^~~~~~~~~~~~~~~~~~~
x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -Wl,-z,now -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/python-sfml-2.2~git20150611.196c88+dfsg=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-amd64-3.5-pydebug/src/sfml/network.o -lsfml-system -lsfml-network -o /<<BUILDDIR>>/python-sfml-2.2~git20150611.196c88+dfsg/.pybuild/pythonX.Y-dbg_3.5/build/sfml/network.cpython-35dm-x86_64-linux-gnu.so
dh_auto_test -O--buildsystem=pybuild
I: pybuild base:184: cd '/<<BUILDDIR>>/python-sfml-2.2~git20150611.196c88+dfsg/.pybuild/pythonX.Y_2.7/build'; python2.7 -m unittest discover -v
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
I: pybuild base:184: cd '/<<BUILDDIR>>/python-sfml-2.2~git20150611.196c88+dfsg/.pybuild/pythonX.Y-dbg_2.7/build'; python2.7-dbg -m unittest discover -v
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
[36597 refs]
I: pybuild base:184: cd '/<<BUILDDIR>>/python-sfml-2.2~git20150611.196c88+dfsg/.pybuild/pythonX.Y_3.5/build'; python3.5 -m unittest discover -v
sfml (unittest.loader._FailedTest) ... ERROR
======================================================================
ERROR: sfml (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: sfml
Traceback (most recent call last):
File "/usr/lib/python3.5/unittest/loader.py", line 462, in _find_test_path
package = self._get_module_from_name(name)
File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/<<BUILDDIR>>/python-sfml-2.2~git20150611.196c88+dfsg/.pybuild/pythonX.Y_3.5/build/sfml/__init__.py", line 2, in <module>
import sfml.window
ImportError: /<<BUILDDIR>>/python-sfml-2.2~git20150611.196c88+dfsg/.pybuild/pythonX.Y_3.5/build/sfml/window.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZNK2sf6StringcvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEv
----------------------------------------------------------------------
Ran 1 test in 0.000s
FAILED (errors=1)
E: pybuild pybuild:283: test: plugin distutils failed with: exit code=1: cd '/<<BUILDDIR>>/python-sfml-2.2~git20150611.196c88+dfsg/.pybuild/pythonX.Y_3.5/build'; python3.5 -m unittest discover -v
dh_auto_test: pybuild --test -i python{version} -p 3.5 returned exit code 13
debian/rules:10: recipe for target 'build' failed
make: *** [build] Error 25
dpkg-buildpackage: error: debian/rules build gave error exit status 2
More information about the Pkg-games-devel
mailing list