Bug#984384: varconf: ftbfs with GCC-11

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


Package: src:varconf
Version: 1.0.1-7
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/varconf_1.0.1-7_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.

[...]
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether g++ supports C++11 features by default... yes
checking whether hidden visibility is supported... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SIGC... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating varconf.spec
config.status: creating mingw32-varconf.spec
config.status: creating doc/Makefile
config.status: creating doc/old/Makefile
config.status: creating tests/Makefile
config.status: creating varconf/Makefile
config.status: creating varconf-1.0.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
   dh_auto_build
	make -j4
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make  all-recursive
make[2]: Entering directory '/<<PKGBUILDDIR>>'
Making all in varconf
make[3]: Entering directory '/<<PKGBUILDDIR>>/varconf'
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H  -I..  -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -Wall -DNDEBUG -DBUILDING_VARCONF_DSO -fvisibility=hidden -fvisibility-inlines-hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o config.lo config.cpp
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H  -I..  -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -Wall -DNDEBUG -DBUILDING_VARCONF_DSO -fvisibility=hidden -fvisibility-inlines-hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o parse_error.lo parse_error.cpp
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H  -I..  -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -Wall -DNDEBUG -DBUILDING_VARCONF_DSO -fvisibility=hidden -fvisibility-inlines-hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o variable.lo variable.cpp
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H  -I..  -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -Wall -DNDEBUG -DBUILDING_VARCONF_DSO -fvisibility=hidden -fvisibility-inlines-hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o dynbase.lo dynbase.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -Wall -DNDEBUG -DBUILDING_VARCONF_DSO -fvisibility=hidden -fvisibility-inlines-hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c parse_error.cpp  -fPIC -DPIC -o .libs/parse_error.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -Wall -DNDEBUG -DBUILDING_VARCONF_DSO -fvisibility=hidden -fvisibility-inlines-hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c config.cpp  -fPIC -DPIC -o .libs/config.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -Wall -DNDEBUG -DBUILDING_VARCONF_DSO -fvisibility=hidden -fvisibility-inlines-hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c dynbase.cpp  -fPIC -DPIC -o .libs/dynbase.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -Wall -DNDEBUG -DBUILDING_VARCONF_DSO -fvisibility=hidden -fvisibility-inlines-hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c variable.cpp  -fPIC -DPIC -o .libs/variable.o
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H  -I..  -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -Wall -DNDEBUG -DBUILDING_VARCONF_DSO -fvisibility=hidden -fvisibility-inlines-hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o dyntypes.lo dyntypes.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -Wall -DNDEBUG -DBUILDING_VARCONF_DSO -fvisibility=hidden -fvisibility-inlines-hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c dyntypes.cpp  -fPIC -DPIC -o .libs/dyntypes.o
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H  -I..  -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -Wall -DNDEBUG -DBUILDING_VARCONF_DSO -fvisibility=hidden -fvisibility-inlines-hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o dyncmp.lo dyncmp.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -Wall -DNDEBUG -DBUILDING_VARCONF_DSO -fvisibility=hidden -fvisibility-inlines-hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c dyncmp.cpp  -fPIC -DPIC -o .libs/dyncmp.o
In file included from config.cpp:27:
../varconf/config.h:97:52: error: ISO C++17 does not allow dynamic exception specifications
   97 |   void parseStream(std::istream & in, Scope scope) throw (ParseError);
      |                                                    ^~~~~
config.cpp: In function ‘std::istream& varconf::operator>>(std::istream&, varconf::Config&)’:
config.cpp:137:21: warning: catching polymorphic type ‘class varconf::ParseError’ by value [-Wcatch-value=]
  137 |   catch (ParseError p) {
      |                     ^
config.cpp: At global scope:
config.cpp:340:58: error: ISO C++17 does not allow dynamic exception specifications
  340 | void Config::parseStream(std::istream & in, Scope scope) throw (ParseError)
      |                                                          ^~~~~
config.cpp: In member function ‘bool varconf::Config::readFromFile(const string&, varconf::Scope)’:
config.cpp:543:21: warning: catching polymorphic type ‘class varconf::ParseError’ by value [-Wcatch-value=]
  543 |   catch (ParseError p) {
      |                     ^
make[3]: *** [Makefile:469: config.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from dyntypes.cpp:28:
../varconf/config.h:97:52: error: ISO C++17 does not allow dynamic exception specifications
   97 |   void parseStream(std::istream & in, Scope scope) throw (ParseError);
      |                                                    ^~~~~
make[3]: *** [Makefile:469: dyntypes.lo] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/varconf'
make[2]: *** [Makefile:476: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:381: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-games-devel mailing list