[Debian-med-packaging] Bug#984107: libfreecontact-perl: ftbfs with GCC-11

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


Package: src:libfreecontact-perl
Version: 0.08-8
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/libfreecontact-perl_0.08-8_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.

[...]
SHELL=/bin/sh
USER=user42

dpkg-buildpackage
-----------------

Command: dpkg-buildpackage -us -uc -b -rfakeroot
dpkg-buildpackage: info: source package libfreecontact-perl
dpkg-buildpackage: info: source version 0.08-8
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Andreas Tille <tille at debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 debian/rules clean
dh clean
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -f Makefile.old
dh_auto_clean
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_configure -- OPTIMIZE="-Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security" LD="'x86_64-linux-gnu-gcc'  -Wl,-z,relro -Wl,-z,now"
	perl Makefile.PL INSTALLDIRS=vendor "OPTIMIZE=-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "LD=x86_64-linux-gnu-gcc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now" "OPTIMIZE=-Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security" "LD='x86_64-linux-gnu-gcc'  -Wl,-z,relro -Wl,-z,now"
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for FreeContact
Writing MYMETA.yml and MYMETA.json
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_build
	make -j4
make[1]: Entering directory '/<<PKGBUILDDIR>>'
Running Mkbootstrap for FreeContact ()
"/usr/bin/perl" "/usr/share/perl/5.32/ExtUtils/xsubpp"  -C++ -hiertype -noprototypes -typemap '/usr/share/perl/5.32/ExtUtils/typemap' -typemap '/<<PKGBUILDDIR>>/perlobject.map' -typemap '/<<PKGBUILDDIR>>/typemap' -typemap '/<<PKGBUILDDIR>>/typemap'  FreeContact.xs > FreeContact.xsc
chmod 644 "FreeContact.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- FreeContact.bs blib/arch/auto/FreeContact/FreeContact.bs 644
cp lib/FreeContact.pm blib/lib/FreeContact.pm
AutoSplitting blib/lib/FreeContact.pm (blib/lib/auto/FreeContact)
mv FreeContact.xsc FreeContact.c
g++ -c  -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security   -DVERSION=\"0.08\" -DXS_VERSION=\"0.08\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.32/CORE"   FreeContact.c
In file included from FreeContact.xs:7:
/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)
      |                       ^~~~~
make[1]: *** [Makefile:345: FreeContact.o] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-med-packaging mailing list