Bug#984373: ucommon: ftbfs with GCC-11

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


Package: src:ucommon
Version: 7.0.0-19
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/ucommon_7.0.0-19_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.

[...]
                 from /usr/include/c++/11/bits/shared_ptr.h:53,
                 from /usr/include/c++/11/memory:77,
                 from ../inc/ucommon/platform.h:32,
                 from ../ucommon-config.h:323,
                 from tcp.cpp:40:
/usr/include/c++/11/exception:106:8: note: declared here
  106 |   bool uncaught_exception() _GLIBCXX_USE_NOEXCEPT __attribute__ ((__pure__));
      |        ^~~~~~~~~~~~~~~~~~
tcp.cpp:486:58: warning: ‘throw’ will always call ‘terminate’ [-Wterminate]
  486 |         catch( ... ) { if ( ! std::uncaught_exception()) throw;};
      |                                                          ^~~~~
tcp.cpp:486:58: note: in C++11 destructors default to ‘noexcept’
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c socket.cpp -o socket.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c address.cpp -o address.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c udp.cpp -o udp.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c tcp.cpp -o tcp.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o dccp.lo dccp.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c dccp.cpp  -fPIC -DPIC -o .libs/dccp.o
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o applog.lo applog.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c applog.cpp  -fPIC -DPIC -o .libs/applog.o
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o mime.lo mime.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c mime.cpp  -fPIC -DPIC -o .libs/mime.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c dccp.cpp -o dccp.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o process.lo process.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c process.cpp  -fPIC -DPIC -o .libs/process.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c mime.cpp -o mime.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o serial.lo serial.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c serial.cpp  -fPIC -DPIC -o .libs/serial.o
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o tokenizer.lo tokenizer.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c tokenizer.cpp  -fPIC -DPIC -o .libs/tokenizer.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c process.cpp -o process.o >/dev/null 2>&1
In file included from ../inc/ucommon/ucommon.h:112,
                 from ../inc/commoncpp/config.h:42,
                 from tokenizer.cpp:41:
../inc/ucommon/temporary.h:58:21: error: ISO C++17 does not allow dynamic exception specifications
   58 | #define THROWS(x)   throw(x)
      |                     ^~~~~
../inc/commoncpp/tokenizer.h:178:32: note: in expansion of macro ‘THROWS’
  178 |         iterator &operator++() THROWS (NoSuchElementException);
      |                                ^~~~~~
../inc/ucommon/temporary.h:58:21: error: ISO C++17 does not allow dynamic exception specifications
   58 | #define THROWS(x)   throw(x)
      |                     ^~~~~
../inc/commoncpp/tokenizer.h:188:34: note: in expansion of macro ‘THROWS’
  188 |         const char*  operator*() THROWS (NoSuchElementException);
      |                                  ^~~~~~
../inc/ucommon/temporary.h:58:21: error: ISO C++17 does not allow dynamic exception specifications
   58 | #define THROWS(x)   throw(x)
      |                     ^~~~~
tokenizer.cpp:73:70: note: in expansion of macro ‘THROWS’
   73 | StringTokenizer::iterator& StringTokenizer::iterator::operator ++ () THROWS (StringTokenizer::NoSuchElementException)
      |                                                                      ^~~~~~
../inc/ucommon/temporary.h:58:21: error: ISO C++17 does not allow dynamic exception specifications
   58 | #define THROWS(x)   throw(x)
      |                     ^~~~~
tokenizer.cpp:109:55: note: in expansion of macro ‘THROWS’
  109 | const char * StringTokenizer::iterator::operator * () THROWS (StringTokenizer::NoSuchElementException)
      |                                                       ^~~~~~
make[3]: *** [Makefile:535: tokenizer.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c serial.cpp -o serial.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c applog.cpp -o applog.o >/dev/null 2>&1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/commoncpp'
make[2]: *** [Makefile:654: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:450: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:11: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Pkg-voip-maintainers mailing list