[pkg-gnupg-maint] Bug#957291: gnupg2: ftbfs with GCC-10

Matthias Klose doko at debian.org
Fri Apr 17 12:01:39 BST 2020


Package: src:gnupg2
Version: 2.2.19-1
Severity: normal
Tags: sid bullseye
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-10

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-10/g++-10, but succeeds to build with gcc-9/g++-9. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc10-20200225/gnupg2_2.2.19-1_unstable_gcc10.log
The last lines of the build log are at the end of this report.

To build with GCC 10, either set CC=gcc-10 CXX=g++-10 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-10/porting_to.html

[...]
../../common/t-exechelp.c: In function ‘test_close_all_fds’:
../../common/t-exechelp.c:96:3: warning: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   96 |   dup (1);
      |   ^~~~~~~
../../common/t-exechelp.c:97:3: warning: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   97 |   dup (1);
      |   ^~~~~~~
../../common/t-exechelp.c:99:3: warning: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   99 |   dup (1);
      |   ^~~~~~~
../../common/t-exechelp.c:140:9: warning: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  140 |         dup (1);
      |         ^~~~~~~
../../common/t-exechelp.c:147:11: warning: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  147 |           dup (1);
      |           ^~~~~~~
gcc -DHAVE_CONFIG_H -I. -I../../common -I..  -DLOCALEDIR=\"/usr/share/locale\" -DGNUPG_BINDIR="\"/usr/bin\"" -DGNUPG_LIBEXECDIR="\"/usr/libexec\"" -DGNUPG_LIBDIR="\"/usr/lib/x86_64-linux-gnu/gnupg\"" -DGNUPG_DATADIR="\"/usr/share/gnupg\"" -DGNUPG_SYSCONFDIR="\"/etc/gnupg\"" -DGNUPG_LOCALSTATEDIR="\"/var\""       -Wdate-time -D_FORTIFY_SOURCE=2    -Wall -Wno-pointer-sign -Wpointer-arith -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o gpgrlhelp.o ../../common/gpgrlhelp.c
gcc -DHAVE_CONFIG_H -I. -I../../common -I..  -DLOCALEDIR=\"/usr/share/locale\" -DGNUPG_BINDIR="\"/usr/bin\"" -DGNUPG_LIBEXECDIR="\"/usr/libexec\"" -DGNUPG_LIBDIR="\"/usr/lib/x86_64-linux-gnu/gnupg\"" -DGNUPG_DATADIR="\"/usr/share/gnupg\"" -DGNUPG_SYSCONFDIR="\"/etc/gnupg\"" -DGNUPG_LOCALSTATEDIR="\"/var\""       -Wdate-time -D_FORTIFY_SOURCE=2     -Wall -Wno-pointer-sign -Wpointer-arith -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o libsimple_pwquery_a-simple-pwquery.o `test -f 'simple-pwquery.c' || echo '../../common/'`simple-pwquery.c
gcc -DHAVE_CONFIG_H -I. -I../../common -I..  -DLOCALEDIR=\"/usr/share/locale\" -DGNUPG_BINDIR="\"/usr/bin\"" -DGNUPG_LIBEXECDIR="\"/usr/libexec\"" -DGNUPG_LIBDIR="\"/usr/lib/x86_64-linux-gnu/gnupg\"" -DGNUPG_DATADIR="\"/usr/share/gnupg\"" -DGNUPG_SYSCONFDIR="\"/etc/gnupg\"" -DGNUPG_LOCALSTATEDIR="\"/var\""       -Wdate-time -D_FORTIFY_SOURCE=2     -Wall -Wno-pointer-sign -Wpointer-arith -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o libsimple_pwquery_a-asshelp.o `test -f 'asshelp.c' || echo '../../common/'`asshelp.c
rm -f libcommon.a
ar cru libcommon.a libcommon_a-i18n.o libcommon_a-mapstrings.o libcommon_a-stringhelp.o libcommon_a-strlist.o libcommon_a-utf8conv.o libcommon_a-argparse.o libcommon_a-logging.o libcommon_a-dotlock.o libcommon_a-mischelp.o libcommon_a-status.o libcommon_a-tlv.o libcommon_a-init.o libcommon_a-sexputil.o libcommon_a-sysutils.o libcommon_a-homedir.o libcommon_a-gettime.o libcommon_a-yesno.o libcommon_a-b64enc.o libcommon_a-b64dec.o libcommon_a-zb32.o libcommon_a-convert.o libcommon_a-percent.o libcommon_a-mbox-util.o libcommon_a-miscellaneous.o libcommon_a-xasprintf.o libcommon_a-xreadline.o libcommon_a-membuf.o libcommon_a-ccparray.o libcommon_a-iobuf.o libcommon_a-ttyio.o libcommon_a-asshelp.o libcommon_a-asshelp2.o libcommon_a-signal.o libcommon_a-audit.o libcommon_a-localename.o libcommon_a-session-env.o libcommon_a-userids.o libcommon_a-openpgp-oid.o libcommon_a-ssh-utils.o libcommon_a-agent-opt.o libcommon_a-helpfile.o libcommon_a-mkdir_p.o libcommon_a-strlist.o libcommon_a-exectool.o libcommon_a-server-help.o libcommon_a-name-value.o libcommon_a-recsel.o libcommon_a-ksba-io-support.o libcommon_a-compliance.o    libcommon_a-exechelp-posix.o libcommon_a-get-passphrase.o 
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib libcommon.a
rm -f libcommonpth.a
ar cru libcommonpth.a libcommonpth_a-i18n.o libcommonpth_a-mapstrings.o libcommonpth_a-stringhelp.o libcommonpth_a-strlist.o libcommonpth_a-utf8conv.o libcommonpth_a-argparse.o libcommonpth_a-logging.o libcommonpth_a-dotlock.o libcommonpth_a-mischelp.o libcommonpth_a-status.o libcommonpth_a-tlv.o libcommonpth_a-init.o libcommonpth_a-sexputil.o libcommonpth_a-sysutils.o libcommonpth_a-homedir.o libcommonpth_a-gettime.o libcommonpth_a-yesno.o libcommonpth_a-b64enc.o libcommonpth_a-b64dec.o libcommonpth_a-zb32.o libcommonpth_a-convert.o libcommonpth_a-percent.o libcommonpth_a-mbox-util.o libcommonpth_a-miscellaneous.o libcommonpth_a-xasprintf.o libcommonpth_a-xreadline.o libcommonpth_a-membuf.o libcommonpth_a-ccparray.o libcommonpth_a-iobuf.o libcommonpth_a-ttyio.o libcommonpth_a-asshelp.o libcommonpth_a-asshelp2.o libcommonpth_a-signal.o libcommonpth_a-audit.o libcommonpth_a-localename.o libcommonpth_a-session-env.o libcommonpth_a-userids.o libcommonpth_a-openpgp-oid.o libcommonpth_a-ssh-utils.o libcommonpth_a-agent-opt.o libcommonpth_a-helpfile.o libcommonpth_a-mkdir_p.o libcommonpth_a-strlist.o libcommonpth_a-exectool.o libcommonpth_a-server-help.o libcommonpth_a-name-value.o libcommonpth_a-recsel.o libcommonpth_a-ksba-io-support.o libcommonpth_a-compliance.o    libcommonpth_a-exechelp-posix.o libcommonpth_a-call-gpg.o 
ar: `u' modifier ignored since `D' is the default (see `U')
rm -f libgpgrl.a
ar cru libgpgrl.a gpgrlhelp.o 
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib libgpgrl.a
ranlib libcommonpth.a
gcc    -Wall -Wno-pointer-sign -Wpointer-arith -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o t-stringhelp t-stringhelp.o  libcommon.a -L/usr/lib/x86_64-linux-gnu -lgcrypt -lassuan -L/usr/lib/x86_64-linux-gnu -lgpg-error -L/usr/lib/x86_64-linux-gnu -lgpg-error   
gcc    -Wall -Wno-pointer-sign -Wpointer-arith -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o t-timestuff t-timestuff.o  libcommon.a -L/usr/lib/x86_64-linux-gnu -lgcrypt -lassuan -L/usr/lib/x86_64-linux-gnu -lgpg-error -L/usr/lib/x86_64-linux-gnu -lgpg-error   
gcc    -Wall -Wno-pointer-sign -Wpointer-arith -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o t-convert t-convert.o libcommon.a -L/usr/lib/x86_64-linux-gnu -lgcrypt -lassuan -L/usr/lib/x86_64-linux-gnu -lgpg-error -L/usr/lib/x86_64-linux-gnu -lgpg-error   
gcc    -Wall -Wno-pointer-sign -Wpointer-arith -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o t-percent t-percent.o libcommon.a -L/usr/lib/x86_64-linux-gnu -lgcrypt -lassuan -L/usr/lib/x86_64-linux-gnu -lgpg-error -L/usr/lib/x86_64-linux-gnu -lgpg-error   
gcc    -Wall -Wno-pointer-sign -Wpointer-arith -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o t-gettime t-gettime.o libcommon.a -L/usr/lib/x86_64-linux-gnu -lgcrypt -lassuan -L/usr/lib/x86_64-linux-gnu -lgpg-error -L/usr/lib/x86_64-linux-gnu -lgpg-error   
gcc    -Wall -Wno-pointer-sign -Wpointer-arith -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o t-sysutils t-sysutils.o libcommon.a -L/usr/lib/x86_64-linux-gnu -lgcrypt -lassuan -L/usr/lib/x86_64-linux-gnu -lgpg-error -L/usr/lib/x86_64-linux-gnu -lgpg-error   
gcc    -Wall -Wno-pointer-sign -Wpointer-arith -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o t-sexputil t-sexputil.o libcommon.a -L/usr/lib/x86_64-linux-gnu -lgcrypt -lassuan -L/usr/lib/x86_64-linux-gnu -lgpg-error -L/usr/lib/x86_64-linux-gnu -lgpg-error   
gcc    -Wall -Wno-pointer-sign -Wpointer-arith -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o t-session-env t-session-env.o libcommon.a -L/usr/lib/x86_64-linux-gnu -lgcrypt -lassuan -L/usr/lib/x86_64-linux-gnu -lgpg-error -L/usr/lib/x86_64-linux-gnu -lgpg-error   
gcc    -Wall -Wno-pointer-sign -Wpointer-arith -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o t-openpgp-oid t-openpgp-oid.o libcommon.a -L/usr/lib/x86_64-linux-gnu -lgcrypt -lassuan -L/usr/lib/x86_64-linux-gnu -lgpg-error -L/usr/lib/x86_64-linux-gnu -lgpg-error   
gcc    -Wall -Wno-pointer-sign -Wpointer-arith -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o t-ssh-utils t-ssh-utils.o libcommon.a -L/usr/lib/x86_64-linux-gnu -lgcrypt -lassuan -L/usr/lib/x86_64-linux-gnu -lgpg-error -L/usr/lib/x86_64-linux-gnu -lgpg-error   
gcc    -Wall -Wno-pointer-sign -Wpointer-arith -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o t-mapstrings t-mapstrings.o libcommon.a -L/usr/lib/x86_64-linux-gnu -lgcrypt -lassuan -L/usr/lib/x86_64-linux-gnu -lgpg-error -L/usr/lib/x86_64-linux-gnu -lgpg-error   
gcc    -Wall -Wno-pointer-sign -Wpointer-arith -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o t-zb32 t-zb32.o  libcommon.a -L/usr/lib/x86_64-linux-gnu -lgcrypt -lassuan -L/usr/lib/x86_64-linux-gnu -lgpg-error -L/usr/lib/x86_64-linux-gnu -lgpg-error   
gcc    -Wall -Wno-pointer-sign -Wpointer-arith -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o t-mbox-util t-mbox-util.o libcommon.a -L/usr/lib/x86_64-linux-gnu -lgcrypt -lassuan -L/usr/lib/x86_64-linux-gnu -lgpg-error -L/usr/lib/x86_64-linux-gnu -lgpg-error   
gcc    -Wall -Wno-pointer-sign -Wpointer-arith -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o t-iobuf t-iobuf.o libcommon.a -L/usr/lib/x86_64-linux-gnu -lgcrypt -lassuan -L/usr/lib/x86_64-linux-gnu -lgpg-error -L/usr/lib/x86_64-linux-gnu -lgpg-error   
gcc    -Wall -Wno-pointer-sign -Wpointer-arith -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o t-strlist t-strlist.o libcommon.a -L/usr/lib/x86_64-linux-gnu -lgcrypt -lassuan -L/usr/lib/x86_64-linux-gnu -lgpg-error -L/usr/lib/x86_64-linux-gnu -lgpg-error   
/usr/bin/ld: libcommon.a(libcommon_a-iobuf.o):./build-gpgv-udeb/common/../../common/iobuf.h:259: multiple definition of `iobuf_debug_mode'; t-iobuf.o:./build-gpgv-udeb/common/../../common/iobuf.h:259: first defined here
gcc    -Wall -Wno-pointer-sign -Wpointer-arith -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o t-name-value t-name-value.o libcommon.a -L/usr/lib/x86_64-linux-gnu -lgcrypt -lassuan -L/usr/lib/x86_64-linux-gnu -lgpg-error -L/usr/lib/x86_64-linux-gnu -lgpg-error   
/usr/bin/ld: libcommon.a(libcommon_a-iobuf.o):./build-gpgv-udeb/common/../../common/iobuf.h:259: multiple definition of `iobuf_debug_mode'; libcommon.a(libcommon_a-miscellaneous.o):./build-gpgv-udeb/common/../../common/iobuf.h:259: first defined here
/usr/bin/ld: libcommon.a(libcommon_a-iobuf.o):./build-gpgv-udeb/common/../../common/iobuf.h:259: multiple definition of `iobuf_debug_mode'; libcommon.a(libcommon_a-miscellaneous.o):./build-gpgv-udeb/common/../../common/iobuf.h:259: first defined here
gcc    -Wall -Wno-pointer-sign -Wpointer-arith -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o t-ccparray t-ccparray.o libcommon.a -L/usr/lib/x86_64-linux-gnu -lgcrypt -lassuan -L/usr/lib/x86_64-linux-gnu -lgpg-error -L/usr/lib/x86_64-linux-gnu -lgpg-error   
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:1041: t-iobuf] Error 1
make[5]: *** Waiting for unfinished jobs....
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:1085: t-strlist] Error 1
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:1053: t-name-value] Error 1
make[5]: Leaving directory '/<<PKGBUILDDIR>>/build-gpgv-udeb/common'
make[4]: *** [Makefile:948: all] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/build-gpgv-udeb/common'
make[3]: *** [Makefile:616: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/build-gpgv-udeb'
make[2]: *** [Makefile:536: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/build-gpgv-udeb'
dh_auto_build: error: cd build-gpgv-udeb && make -j4 returned exit code 2
make[1]: *** [debian/rules:54: override_dh_auto_build-arch] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:35: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the pkg-gnupg-maint mailing list