[Debian-ha-maintainers] Bug#957051: booth: ftbfs with GCC-10

Matthias Klose doko at debian.org
Fri Apr 17 11:57:21 BST 2020


Package: src:booth
Version: 1.0-174-gce9f821-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/booth_1.0-174-gce9f821-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

[...]
TZ=UTC dh_auto_build
	make -j4
make[2]: Entering directory '/<<PKGBUILDDIR>>'
GNUmakefile:41: warning: overriding recipe for target 'srpm'
Makefile:1612: warning: ignoring old recipe for target 'srpm'
GNUmakefile:46: warning: overriding recipe for target 'rpm'
Makefile:1617: warning: ignoring old recipe for target 'rpm'
Making all in src
make[3]: Entering directory '/<<PKGBUILDDIR>>/src'
make  all-am
make[4]: Entering directory '/<<PKGBUILDDIR>>/src'
gcc -DHAVE_CONFIG_H -I.  -I../include -Wdate-time -D_FORTIFY_SOURCE=2  -D_GNU_SOURCE -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -ggdb3  	  -Wall -Wshadow -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wbad-function-cast -Wmissing-format-attribute -Wformat=2 -Wno-long-long -Wno-strict-aliasing   -c -o boothd-config.o `test -f 'config.c' || echo './'`config.c
gcc -DHAVE_CONFIG_H -I.  -I../include -Wdate-time -D_FORTIFY_SOURCE=2  -D_GNU_SOURCE -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -ggdb3  	  -Wall -Wshadow -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wbad-function-cast -Wmissing-format-attribute -Wformat=2 -Wno-long-long -Wno-strict-aliasing   -c -o boothd-main.o `test -f 'main.c' || echo './'`main.c
gcc -DHAVE_CONFIG_H -I.  -I../include -Wdate-time -D_FORTIFY_SOURCE=2  -D_GNU_SOURCE -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -ggdb3  	  -Wall -Wshadow -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wbad-function-cast -Wmissing-format-attribute -Wformat=2 -Wno-long-long -Wno-strict-aliasing   -c -o boothd-raft.o `test -f 'raft.c' || echo './'`raft.c
gcc -DHAVE_CONFIG_H -I.  -I../include -Wdate-time -D_FORTIFY_SOURCE=2  -D_GNU_SOURCE -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -ggdb3  	  -Wall -Wshadow -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wbad-function-cast -Wmissing-format-attribute -Wformat=2 -Wno-long-long -Wno-strict-aliasing   -c -o boothd-ticket.o `test -f 'ticket.c' || echo './'`ticket.c
main.c: In function ‘format_peers’:
main.c:230:14: warning: taking address of packed member of ‘struct booth_site’ may result in an unaligned pointer value [-Waddress-of-packed-member]
  230 |    localtime(&s->last_recv));
      |              ^~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H -I.  -I../include -Wdate-time -D_FORTIFY_SOURCE=2  -D_GNU_SOURCE -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -ggdb3  	  -Wall -Wshadow -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wbad-function-cast -Wmissing-format-attribute -Wformat=2 -Wno-long-long -Wno-strict-aliasing   -c -o boothd-transport.o `test -f 'transport.c' || echo './'`transport.c
gcc -DHAVE_CONFIG_H -I.  -I../include -Wdate-time -D_FORTIFY_SOURCE=2  -D_GNU_SOURCE -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -ggdb3  	  -Wall -Wshadow -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wbad-function-cast -Wmissing-format-attribute -Wformat=2 -Wno-long-long -Wno-strict-aliasing   -c -o boothd-pacemaker.o `test -f 'pacemaker.c' || echo './'`pacemaker.c
transport.c: In function ‘booth_tcp_open’:
transport.c:656:42: warning: taking address of packed member of ‘struct booth_site’ may result in an unaligned pointer value [-Waddress-of-packed-member]
  656 |  rv = connect_nonb(s, (struct sockaddr *)&to->sa6, to->saddrlen, 10);
      |                                          ^~~~~~~~
transport.c: In function ‘message_recv’:
transport.c:1108:7: warning: taking address of packed member of ‘struct booth_site’ may result in an unaligned pointer value [-Waddress-of-packed-member]
 1108 |  time(&source->last_recv);
      |       ^~~~~~~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H -I.  -I../include -Wdate-time -D_FORTIFY_SOURCE=2  -D_GNU_SOURCE -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -ggdb3  	  -Wall -Wshadow -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wbad-function-cast -Wmissing-format-attribute -Wformat=2 -Wno-long-long -Wno-strict-aliasing   -c -o boothd-handler.o `test -f 'handler.c' || echo './'`handler.c
gcc -DHAVE_CONFIG_H -I.  -I../include -Wdate-time -D_FORTIFY_SOURCE=2  -D_GNU_SOURCE -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -ggdb3  	  -Wall -Wshadow -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wbad-function-cast -Wmissing-format-attribute -Wformat=2 -Wno-long-long -Wno-strict-aliasing   -c -o boothd-request.o `test -f 'request.c' || echo './'`request.c
gcc -DHAVE_CONFIG_H -I.  -I../include -Wdate-time -D_FORTIFY_SOURCE=2  -D_GNU_SOURCE -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -ggdb3  	  -Wall -Wshadow -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wbad-function-cast -Wmissing-format-attribute -Wformat=2 -Wno-long-long -Wno-strict-aliasing   -c -o boothd-attr.o `test -f 'attr.c' || echo './'`attr.c
gcc -DHAVE_CONFIG_H -I.  -I../include -Wdate-time -D_FORTIFY_SOURCE=2  -D_GNU_SOURCE -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -ggdb3  	  -Wall -Wshadow -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wbad-function-cast -Wmissing-format-attribute -Wformat=2 -Wno-long-long -Wno-strict-aliasing   -c -o boothd-manual.o `test -f 'manual.c' || echo './'`manual.c
In file included from inline-fn.h:26,
                 from log.h:35,
                 from attr.h:25,
                 from attr.c:21:
attr.c: In function ‘store_geo_attr’:
attr.c:282:13: warning: taking address of packed member of ‘struct geo_attr’ may result in an unaligned pointer value [-Waddress-of-packed-member]
  282 |    get_time(&a->update_ts);
      |             ^~~~~~~~~~~~~
timer.h:43:48: note: in definition of macro ‘get_time’
   43 | #define get_time(p) clock_gettime(BOOTH_CLOCK, p)
      |                                                ^
attr.c: In function ‘append_attr’:
attr.c:337:18: warning: taking address of packed member of ‘struct geo_attr’ may result in an unaligned pointer value [-Waddress-of-packed-member]
  337 |  if (is_time_set(&a->update_ts)) {
      |                  ^~~~~~~~~~~~~
attr.c:338:16: warning: taking address of packed member of ‘struct geo_attr’ may result in an unaligned pointer value [-Waddress-of-packed-member]
  338 |   ts = wall_ts(&a->update_ts);
      |                ^~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H -I.  -I../include -Wdate-time -D_FORTIFY_SOURCE=2  -D_GNU_SOURCE -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -ggdb3  	  -Wall -Wshadow -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wbad-function-cast -Wmissing-format-attribute -Wformat=2 -Wno-long-long -Wno-strict-aliasing   -c -o boothd-timer.o `test -f 'timer.c' || echo './'`timer.c
gcc -DHAVE_CONFIG_H -I.  -I../include -Wdate-time -D_FORTIFY_SOURCE=2  -D_GNU_SOURCE -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -ggdb3  	  -Wall -Wshadow -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wbad-function-cast -Wmissing-format-attribute -Wformat=2 -Wno-long-long -Wno-strict-aliasing   -c -o boothd-auth.o `test -f 'auth.c' || echo './'`auth.c
gcc -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -ggdb3  	  -Wall -Wshadow -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wbad-function-cast -Wmissing-format-attribute -Wformat=2 -Wno-long-long -Wno-strict-aliasing   -rdynamic -L./ -Wl,-z,relro -Wl,-z,now   -o boothd boothd-config.o boothd-main.o boothd-raft.o boothd-ticket.o boothd-transport.o boothd-pacemaker.o boothd-handler.o boothd-request.o boothd-attr.o boothd-manual.o boothd-timer.o boothd-auth.o    -lm -lglib-2.0 -lz -lplumb  -lplumb  -lplumbgpl  -lplumb -lgcrypt  -lxml2
/usr/bin/ld: boothd-ticket.o:./src/pacemaker.h:35: multiple definition of `pcmk_handler'; boothd-main.o:./src/pacemaker.h:35: first defined here
/usr/bin/ld: boothd-pacemaker.o:./src/pacemaker.h:35: multiple definition of `pcmk_handler'; boothd-main.o:./src/pacemaker.h:35: first defined here
/usr/bin/ld: boothd-handler.o:./src/pacemaker.h:35: multiple definition of `pcmk_handler'; boothd-main.o:./src/pacemaker.h:35: first defined here
/usr/bin/ld: boothd-attr.o:./src/pacemaker.h:35: multiple definition of `pcmk_handler'; boothd-main.o:./src/pacemaker.h:35: first defined here
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:502: boothd] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[3]: *** [Makefile:389: all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:922: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make[1]: *** [debian/rules:12: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-ha-maintainers mailing list