[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#984096: libcommoncpp2: ftbfs with GCC-11



Package: src:libcommoncpp2
Version: 1.8.1-10
Severity: normal
Tags: sid bookworm
User: debian-gcc@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/libcommoncpp2_1.8.1-10_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.

[...]
      |                   ^~~~~
../inc/cc++/persist.h:476:53: note: in expansion of macro ‘THROWS’
  476 | __EXPORT Engine& operator >>( Engine& ar, bool& ob) THROWS (PersistException);
      |                                                     ^~~~~~
../inc/cc++/config.h:944:19: error: ISO C++17 does not allow dynamic exception specifications
  944 | #define THROWS(x) throw(x)
      |                   ^~~~~
../inc/cc++/persist.h:478:53: note: in expansion of macro ‘THROWS’
  478 | __EXPORT Engine& operator <<( Engine& ar, bool ob)  THROWS (PersistException);
      |                                                     ^~~~~~
../inc/cc++/config.h:944:19: error: ISO C++17 does not allow dynamic exception specifications
  944 | #define THROWS(x) throw(x)
      |                   ^~~~~
../inc/cc++/persist.h:490:69: note: in expansion of macro ‘THROWS’
  490 | Engine& operator <<( Engine& ar, typename std::vector<T> const& ob) THROWS (PersistException)
      |                                                                     ^~~~~~
../inc/cc++/config.h:944:19: error: ISO C++17 does not allow dynamic exception specifications
  944 | #define THROWS(x) throw(x)
      |                   ^~~~~
../inc/cc++/persist.h:504:63: note: in expansion of macro ‘THROWS’
  504 | Engine& operator >>( Engine& ar, typename std::vector<T>& ob) THROWS (PersistException)
      |                                                               ^~~~~~
../inc/cc++/config.h:944:19: error: ISO C++17 does not allow dynamic exception specifications
  944 | #define THROWS(x) throw(x)
      |                   ^~~~~
../inc/cc++/persist.h:521:68: note: in expansion of macro ‘THROWS’
  521 | Engine& operator <<( Engine& ar, typename std::deque<T> const& ob) THROWS (PersistException)
      |                                                                    ^~~~~~
../inc/cc++/config.h:944:19: error: ISO C++17 does not allow dynamic exception specifications
  944 | #define THROWS(x) throw(x)
      |                   ^~~~~
../inc/cc++/persist.h:535:62: note: in expansion of macro ‘THROWS’
  535 | Engine& operator >>( Engine& ar, typename std::deque<T>& ob) THROWS (PersistException)
      |                                                              ^~~~~~
../inc/cc++/config.h:944:19: error: ISO C++17 does not allow dynamic exception specifications
  944 | #define THROWS(x) throw(x)
      |                   ^~~~~
../inc/cc++/persist.h:556:75: note: in expansion of macro ‘THROWS’
  556 | Engine& operator <<( Engine& ar, typename std::map<Key,Value> const & ob) THROWS (PersistException)
      |                                                                           ^~~~~~
../inc/cc++/config.h:944:19: error: ISO C++17 does not allow dynamic exception specifications
  944 | #define THROWS(x) throw(x)
      |                   ^~~~~
../inc/cc++/persist.h:570:68: note: in expansion of macro ‘THROWS’
  570 | Engine& operator >>( Engine& ar, typename std::map<Key,Value>& ob) THROWS (PersistException)
      |                                                                    ^~~~~~
../inc/cc++/config.h:944:19: error: ISO C++17 does not allow dynamic exception specifications
  944 | #define THROWS(x) throw(x)
      |                   ^~~~~
../inc/cc++/persist.h:588:54: note: in expansion of macro ‘THROWS’
  588 | Engine& operator <<( Engine& ar, std::pair<x,y> &ob) THROWS (PersistException)
      |                                                      ^~~~~~
../inc/cc++/config.h:944:19: error: ISO C++17 does not allow dynamic exception specifications
  944 | #define THROWS(x) throw(x)
      |                   ^~~~~
../inc/cc++/persist.h:599:54: note: in expansion of macro ‘THROWS’
  599 | Engine& operator >>(Engine& ar, std::pair<x, y> &ob) THROWS (PersistException)
      |                                                      ^~~~~~
make[3]: *** [Makefile:708: persist.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../inc -Wdate-time -D_FORTIFY_SOURCE=2 -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I../inc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c xml.cpp -o xml.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../inc -Wdate-time -D_FORTIFY_SOURCE=2 -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I../inc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c url.cpp -o url.o >/dev/null 2>&1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:488: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:416: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:3: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: