[Debian-ha-maintainers] Bug#957151: drbd-utils: ftbfs with GCC-10

Matthias Klose doko at debian.org
Fri Apr 17 11:59:06 BST 2020


Package: src:drbd-utils
Version: 9.11.0-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/drbd-utils_9.11.0-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

[...]
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I../../drbd-headers -I.. -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbdmeta.o ../shared/drbdmeta.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I../../drbd-headers -I.. -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbdmeta_scanner.o ../shared/drbdmeta_scanner.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I../../drbd-headers -I.. -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbd_strings.o ../../drbd-headers/drbd_strings.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I../../drbd-headers -I.. -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbdmeta_linux.o ../shared/drbdmeta_linux.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I../../drbd-headers -I.. -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbdsetup.o drbdsetup.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I../../drbd-headers -I.. -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o wrap_printf.o ../shared/wrap_printf.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I../../drbd-headers -I.. -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbdsetup_colors.o drbdsetup_colors.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I../../drbd-headers -I.. -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbdsetup_linux.o drbdsetup_linux.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I../../drbd-headers -I.. -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now  -Wl,-z,relro -Wl,-z,now -o drbdadm drbdadm_scanner.o drbdadm_parser.o drbdadm_postparse.o drbdadm_main.o drbdadm_adjust.o drbdadm_dump.o drbdtool_common.o drbdadm_usage_cnt.o drbd_buildtag.o registry.o config_flags.o libnla.o drbd_nla.o shared_tool.o shared_main.o shared_parser.o libgenl.o drbdadm_linux.o drbdtool_common_linux.o
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I../../drbd-headers -I.. -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now  -Wl,-z,relro -Wl,-z,now -o drbdmeta drbdmeta.o drbdmeta_scanner.o drbdtool_common.o drbd_buildtag.o drbd_strings.o shared_tool.o drbdmeta_linux.o drbdtool_common_linux.o
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I../../drbd-headers -I.. -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now  -Wl,-z,relro -Wl,-z,now -o drbdsetup libnla.o registry.o drbdsetup.o drbdtool_common.o drbd_buildtag.o drbd_strings.o config_flags.o drbd_nla.o wrap_printf.o drbdsetup_colors.o shared_tool.o libgenl.o drbdtool_common_linux.o drbdsetup_linux.o
make[2]: Leaving directory '/<<PKGBUILDDIR>>/user/v9'
make[2]: Entering directory '/<<PKGBUILDDIR>>/scripts'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/<<PKGBUILDDIR>>/scripts'
make[2]: Entering directory '/<<PKGBUILDDIR>>/user/v83'
flex -s -odrbdadm_scanner.c drbdadm_scanner.fl
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbdadm_scanner.o drbdadm_scanner.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbdadm_parser.o drbdadm_parser.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbdadm_main.o drbdadm_main.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbdadm_adjust.o drbdadm_adjust.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbdtool_common.o drbdtool_common.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbdadm_usage_cnt.o drbdadm_usage_cnt.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbd_buildtag.o ../shared/drbd_buildtag.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbdadm_minor_table.o drbdadm_minor_table.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared -Wdate-time -D_FORTIFY_SOURCE=2  -c -o shared_tool.o ../shared/shared_tool.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared -Wdate-time -D_FORTIFY_SOURCE=2  -c -o shared_main.o ../shared/shared_main.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared -Wdate-time -D_FORTIFY_SOURCE=2  -c -o shared_parser.o ../shared/shared_parser.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbdsetup.o drbdsetup.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbd_strings.o drbd_strings.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now  -Wl,-z,relro -Wl,-z,now -o drbdadm-83 drbdadm_scanner.o drbdadm_parser.o drbdadm_main.o drbdadm_adjust.o drbdtool_common.o drbdadm_usage_cnt.o drbd_buildtag.o drbdadm_minor_table.o shared_tool.o shared_main.o shared_parser.o
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now  -Wl,-z,relro -Wl,-z,now -o drbdsetup-83 drbdsetup.o drbdtool_common.o drbd_buildtag.o drbd_strings.o shared_tool.o
make[2]: Leaving directory '/<<PKGBUILDDIR>>/user/v83'
make[2]: Entering directory '/<<PKGBUILDDIR>>/user/v84'
flex -s -odrbdadm_scanner.c drbdadm_scanner.fl
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbdadm_scanner.o drbdadm_scanner.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbdadm_parser.o drbdadm_parser.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbdadm_main.o drbdadm_main.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbdadm_adjust.o drbdadm_adjust.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbdtool_common.o drbdtool_common.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbdadm_usage_cnt.o drbdadm_usage_cnt.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbd_buildtag.o ../shared/drbd_buildtag.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o registry.o registry.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o config_flags.o config_flags.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o libgenl.o ../shared/libgenl.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbd_nla.o drbd_nla.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o shared_tool.o ../shared/shared_tool.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o shared_main.o ../shared/shared_main.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o shared_parser.o ../shared/shared_parser.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o libnla.o ../shared/libnla.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbdsetup.o drbdsetup.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbd_strings.o drbd_strings.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o wrap_printf.o ../shared/wrap_printf.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o drbdsetup_colors.o drbdsetup_colors.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -I. -I../shared  -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now  -Wl,-z,relro -Wl,-z,now -o drbdadm-84 drbdadm_scanner.o drbdadm_parser.o drbdadm_main.o drbdadm_adjust.o drbdtool_common.o drbdadm_usage_cnt.o drbd_buildtag.o registry.o config_flags.o libgenl.o drbd_nla.o shared_tool.o shared_main.o shared_parser.o libnla.o
/usr/bin/ld: drbdadm_parser.o:./user/v84/drbdadm.h:254: multiple definition of `setup_options'; drbdadm_scanner.o:./user/v84/drbdadm.h:254: first defined here
/usr/bin/ld: drbdadm_main.o:./user/v84/drbdadm.h:254: multiple definition of `setup_options'; drbdadm_scanner.o:./user/v84/drbdadm.h:254: first defined here
/usr/bin/ld: drbdadm_adjust.o:./user/v84/drbdadm.h:254: multiple definition of `setup_options'; drbdadm_scanner.o:./user/v84/drbdadm.h:254: first defined here
/usr/bin/ld: drbdadm_usage_cnt.o:./user/v84/drbdadm.h:254: multiple definition of `setup_options'; drbdadm_scanner.o:./user/v84/drbdadm.h:254: first defined here
/usr/bin/ld: shared_tool.o:./user/v84/./drbdadm.h:254: multiple definition of `setup_options'; drbdadm_scanner.o:./user/v84/drbdadm.h:254: first defined here
/usr/bin/ld: shared_parser.o:./user/v84/./drbdadm.h:254: multiple definition of `setup_options'; drbdadm_scanner.o:./user/v84/drbdadm.h:254: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:83: drbdadm-84] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/<<PKGBUILDDIR>>/user/v84'
make[1]: *** [Makefile:104: tools] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:10: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Debian-ha-maintainers mailing list