[Debian-med-packaging] Bug#984302: python-freecontact: ftbfs with GCC-11

Matthias Klose doko at debian.org
Wed Mar 3 16:16:46 GMT 2021


Package: src:python-freecontact
Version: 1.1-5
Severity: normal
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-11

[This bug is not targeted to the upcoming bullseye release]

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-11/g++-11, but succeeds to build with gcc-10/g++-10. The
severity of this report will be raised before the bookworm release,
so nothing has to be done for the bullseye release.

The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc11/python-freecontact_1.1-5_unstable_gcc11.log
The last lines of the build log are at the end of this report.

To build with GCC 11, either set CC=gcc-11 CXX=g++-11 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-11/porting_to.html

GCC 11 defaults to the GNU++17 standard.  If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.

[...]
	        \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
		 -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
		 -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
		 -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
		\) -exec rm -f {} + \) -o \
		\( -type d -a -name autom4te.cache -prune -exec rm -rf {} + \) \)
 debian/rules build
dh build --with python3 --buildsystem=pybuild --builddirectory=/<<PKGBUILDDIR>>/builddir
   dh_update_autotools_config -O--buildsystem=pybuild -O--builddirectory=/<<PKGBUILDDIR>>/builddir
   dh_autoreconf -O--buildsystem=pybuild -O--builddirectory=/<<PKGBUILDDIR>>/builddir
   dh_auto_configure -O--buildsystem=pybuild -O--builddirectory=/<<PKGBUILDDIR>>/builddir
dh_auto_configure: warning: warning: pybuild does not support building out of source tree. In source building enforced.
	pybuild --configure -i python{version} -p 3.9
I: pybuild base:232: python3.9 setup.py config 
running config
   dh_auto_build -O--buildsystem=pybuild -O--builddirectory=/<<PKGBUILDDIR>>/builddir
dh_auto_build: warning: warning: pybuild does not support building out of source tree. In source building enforced.
	pybuild --build -i python{version} -p 3.9
I: pybuild base:232: /usr/bin/python3 setup.py build 
running build
running build_ext
building 'freecontact' extension
creating build
creating build/temp.linux-x86_64-3.9
creating build/temp.linux-x86_64-3.9/src
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c src/freecontact.cpp -o build/temp.linux-x86_64-3.9/src/freecontact.o
In file included from /usr/include/boost/smart_ptr/detail/sp_thread_sleep.hpp:22,
                 from /usr/include/boost/smart_ptr/detail/yield_k.hpp:23,
                 from /usr/include/boost/smart_ptr/detail/spinlock_gcc_atomic.hpp:14,
                 from /usr/include/boost/smart_ptr/detail/spinlock.hpp:42,
                 from /usr/include/boost/smart_ptr/detail/spinlock_pool.hpp:25,
                 from /usr/include/boost/smart_ptr/shared_ptr.hpp:29,
                 from /usr/include/boost/shared_ptr.hpp:17,
                 from /usr/include/boost/python/converter/shared_ptr_to_python.hpp:12,
                 from /usr/include/boost/python/converter/arg_to_python.hpp:15,
                 from /usr/include/boost/python/call.hpp:15,
                 from /usr/include/boost/python/object_core.hpp:14,
                 from /usr/include/boost/python/args.hpp:22,
                 from /usr/include/boost/python.hpp:11,
                 from src/freecontact.cpp:17:
/usr/include/boost/bind.hpp:36:1: note: ‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’
   36 | BOOST_PRAGMA_MESSAGE(
      | ^~~~~~~~~~~~~~~~~~~~
/usr/include/boost/detail/iterator.hpp:13:1: note: ‘#pragma message: This header is deprecated. Use <iterator> instead.’
   13 | BOOST_HEADER_DEPRECATED("<iterator>")
      | ^~~~~~~~~~~~~~~~~~~~~~~
In file included from src/freecontact.cpp:19:
/usr/include/freecontact.h:113:56: error: ISO C++17 does not allow dynamic exception specifications
  113 |     ali_t&      push(const std::vector<uint8_t>& __al) throw (alilen_error);
      |                                                        ^~~~~
/usr/include/freecontact.h:116:50: error: ISO C++17 does not allow dynamic exception specifications
  116 |     inline ali_t&   push(const std::string& __l) throw (alilen_error)
      |                                                  ^~~~~
/usr/include/freecontact.h:185:23: error: ISO C++17 does not allow dynamic exception specifications
  185 |                     ) throw (alilen_error, icme_timeout_error, std::range_error, std::runtime_error);
      |                       ^~~~~
/usr/include/freecontact.h:219:23: error: ISO C++17 does not allow dynamic exception specifications
  219 |                     ) throw (alilen_error, icme_timeout_error, std::range_error, std::runtime_error);
      |                       ^~~~~
/usr/include/freecontact.h:227:23: error: ISO C++17 does not allow dynamic exception specifications
  227 |                     ) throw (alilen_error, icme_timeout_error, std::range_error, std::runtime_error);
      |                       ^~~~~
/usr/include/freecontact.h:234:23: error: ISO C++17 does not allow dynamic exception specifications
  234 |                     ) throw (alilen_error, icme_timeout_error, std::range_error, std::runtime_error)
      |                       ^~~~~
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
E: pybuild pybuild:353: build: plugin distutils failed with: exit code=1: /usr/bin/python3 setup.py build 
dh_auto_build: error: pybuild --build -i python{version} -p 3.9 returned exit code 13
make: *** [debian/rules:9: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Debian-med-packaging mailing list