Bug#984222: log4shib: ftbfs with GCC-11

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


Package: src:log4shib
Version: 2.0.0-2
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/log4shib_2.0.0-2_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.

[...]
make[5]: Entering directory '/<<PKGBUILDDIR>>/doc/html'
make[5]: Nothing to be done for 'html'.
make[5]: Leaving directory '/<<PKGBUILDDIR>>/doc/html'
make[5]: Entering directory '/<<PKGBUILDDIR>>/doc'
make[5]: Nothing to be done for 'html-am'.
make[5]: Leaving directory '/<<PKGBUILDDIR>>/doc'
/usr/bin/doxygen
warning: Tag 'PERL_PATH' at line 56 of file 'Doxyfile' has become obsolete.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
make[4]: Leaving directory '/<<PKGBUILDDIR>>/doc'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/doc'
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_build -Nliblog4shib-doc
	make -j4
make[1]: Entering directory '/<<PKGBUILDDIR>>'
Making all in src
make[2]: Entering directory '/<<PKGBUILDDIR>>/src'
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../include  -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -pthread  -Wall -W -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o Appender.lo Appender.cpp
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../include  -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -pthread  -Wall -W -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o AppenderSkeleton.lo AppenderSkeleton.cpp
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../include  -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -pthread  -Wall -W -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o LayoutAppender.lo LayoutAppender.cpp
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../include  -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -pthread  -Wall -W -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o FileAppender.lo FileAppender.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../include -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -Wall -W -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c LayoutAppender.cpp  -fPIC -DPIC -o .libs/LayoutAppender.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../include -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -Wall -W -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c Appender.cpp  -fPIC -DPIC -o .libs/Appender.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../include -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -Wall -W -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c AppenderSkeleton.cpp  -fPIC -DPIC -o .libs/AppenderSkeleton.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../include -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -Wall -W -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c FileAppender.cpp  -fPIC -DPIC -o .libs/FileAppender.o
In file included from ../include/log4shib/Appender.hh:21,
                 from ../include/log4shib/AppenderSkeleton.hh:14,
                 from AppenderSkeleton.cpp:11:
../include/log4shib/Priority.hh:106:9: error: ISO C++17 does not allow dynamic exception specifications
  106 |         throw(std::invalid_argument);
      |         ^~~~~
In file included from ../include/log4shib/Appender.hh:21,
                 from ../include/log4shib/AppenderSkeleton.hh:14,
                 from ../include/log4shib/LayoutAppender.hh:15,
                 from LayoutAppender.cpp:11:
../include/log4shib/Priority.hh:106:9: error: ISO C++17 does not allow dynamic exception specifications
  106 |         throw(std::invalid_argument);
      |         ^~~~~
In file included from ../include/log4shib/Appender.hh:21,
                 from Appender.cpp:11:
../include/log4shib/Priority.hh:106:9: error: ISO C++17 does not allow dynamic exception specifications
  106 |         throw(std::invalid_argument);
      |         ^~~~~
In file included from ../include/log4shib/Appender.hh:21,
                 from ../include/log4shib/AppenderSkeleton.hh:14,
                 from ../include/log4shib/LayoutAppender.hh:15,
                 from ../include/log4shib/FileAppender.hh:14,
                 from FileAppender.cpp:21:
../include/log4shib/Priority.hh:106:9: error: ISO C++17 does not allow dynamic exception specifications
  106 |         throw(std::invalid_argument);
      |         ^~~~~
make[2]: *** [Makefile:594: AppenderSkeleton.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:594: LayoutAppender.lo] Error 1
make[2]: *** [Makefile:594: Appender.lo] Error 1
In file included from FileAppender.cpp:22:
../include/log4shib/Category.hh:115:9: error: ISO C++17 does not allow dynamic exception specifications
  115 |         throw(std::invalid_argument);
      |         ^~~~~
../include/log4shib/Category.hh:149:9: error: ISO C++17 does not allow dynamic exception specifications
  149 |         throw(std::invalid_argument);
      |         ^~~~~
make[2]: *** [Makefile:594: FileAppender.lo] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[1]: *** [Makefile:480: all-recursive] Error 1
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-shibboleth-devel mailing list