[Debian-ha-maintainers] Bug#1037813: pacemaker: ftbfs with GCC-13

Matthias Klose doko at debian.org
Wed Jun 14 10:29:50 BST 2023


Package: src:pacemaker
Version: 2.1.5-1
Severity: normal
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-13

[This bug is targeted to the upcoming trixie 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-13/g++-13, but succeeds to build with gcc-12/g++-12. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2023/05/22/logs/pacemaker_2.1.5-1_unstable_gccexp.log
The last lines of the build log are at the end of this report.

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

[...]
make[5]: Leaving directory '/<<PKGBUILDDIR>>/daemons/execd'
Making all in fenced
make[5]: Entering directory '/<<PKGBUILDDIR>>/daemons/fenced'
gcc -DHAVE_CONFIG_H -I. -I../../include  -I../../include -I../../include -I../../libltdl -I../../libltdl -pthread  -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/uuid  -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -I/usr/include/libxml2  -I/usr/include/heartbeat -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include   -fPIE -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -pthread  -pthread  -pthread  -pthread  -pthread  -pthread  -ggdb  -fgnu89-inline -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Wfloat-equal -Wformat-security -Wimplicit-fallthrough -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wno-long-long -Wno-strict-aliasing -Wpointer-arith -Wstrict-prototypes -Wwrite-strings -Wunused-but-set-variable -Wformat=2 -Wformat-nonliteral -fstack-protector-strong -fstack-clash-protection -Werror -c -o pacemaker_fenced-pacemaker-fenced.o `test -f 'pacemaker-fenced.c' || echo './'`pacemaker-fenced.c
gcc -DHAVE_CONFIG_H -I. -I../../include  -I../../include -I../../include -I../../libltdl -I../../libltdl -pthread  -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/uuid  -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -I/usr/include/libxml2  -I/usr/include/heartbeat -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include   -fPIE -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -pthread  -pthread  -pthread  -pthread  -pthread  -pthread  -ggdb  -fgnu89-inline -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Wfloat-equal -Wformat-security -Wimplicit-fallthrough -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wno-long-long -Wno-strict-aliasing -Wpointer-arith -Wstrict-prototypes -Wwrite-strings -Wunused-but-set-variable -Wformat=2 -Wformat-nonliteral -fstack-protector-strong -fstack-clash-protection -Werror -c -o pacemaker_fenced-fenced_commands.o `test -f 'fenced_commands.c' || echo './'`fenced_commands.c
gcc -DHAVE_CONFIG_H -I. -I../../include  -I../../include -I../../include -I../../libltdl -I../../libltdl -pthread  -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/uuid  -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -I/usr/include/libxml2  -I/usr/include/heartbeat -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include   -fPIE -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -pthread  -pthread  -pthread  -pthread  -pthread  -pthread  -ggdb  -fgnu89-inline -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Wfloat-equal -Wformat-security -Wimplicit-fallthrough -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wno-long-long -Wno-strict-aliasing -Wpointer-arith -Wstrict-prototypes -Wwrite-strings -Wunused-but-set-variable -Wformat=2 -Wformat-nonliteral -fstack-protector-strong -fstack-clash-protection -Werror -c -o pacemaker_fenced-fenced_remote.o `test -f 'fenced_remote.c' || echo './'`fenced_remote.c
gcc -DHAVE_CONFIG_H -I. -I../../include  -I../../include -I../../include -I../../libltdl -I../../libltdl -pthread  -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/uuid  -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -I/usr/include/libxml2  -I/usr/include/heartbeat -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include   -fPIE -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -pthread  -pthread  -pthread  -pthread  -pthread  -pthread  -ggdb  -fgnu89-inline -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Wfloat-equal -Wformat-security -Wimplicit-fallthrough -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wno-long-long -Wno-strict-aliasing -Wpointer-arith -Wstrict-prototypes -Wwrite-strings -Wunused-but-set-variable -Wformat=2 -Wformat-nonliteral -fstack-protector-strong -fstack-clash-protection -Werror -c -o pacemaker_fenced-fenced_history.o `test -f 'fenced_history.c' || echo './'`fenced_history.c
chmod a+x /<<PKGBUILDDIR>>/daemons/fenced/fence_legacy
chmod a+x /<<PKGBUILDDIR>>/daemons/fenced/fence_watchdog
PATH=/<<PKGBUILDDIR>>/daemons/fenced:$PATH /<<PKGBUILDDIR>>/daemons/fenced/fence_legacy --version >/dev/null
PATH=/<<PKGBUILDDIR>>/daemons/fenced:$PATH /<<PKGBUILDDIR>>/daemons/fenced/fence_watchdog --version >/dev/null
if [ -f /<<PKGBUILDDIR>>/daemons/fenced/fence_watchdog.8.inc ]; then \
	PATH=/<<PKGBUILDDIR>>/daemons/fenced:$PATH /<<PKGBUILDDIR>>/daemons/fenced/fence_watchdog --help-all >/dev/null; \
else \
	PATH=/<<PKGBUILDDIR>>/daemons/fenced:$PATH /<<PKGBUILDDIR>>/daemons/fenced/fence_watchdog --help >/dev/null; \
fi
if [ -f /<<PKGBUILDDIR>>/daemons/fenced/fence_legacy.8.inc ]; then \
	PATH=/<<PKGBUILDDIR>>/daemons/fenced:$PATH /<<PKGBUILDDIR>>/daemons/fenced/fence_legacy --help-all >/dev/null; \
else \
	PATH=/<<PKGBUILDDIR>>/daemons/fenced:$PATH /<<PKGBUILDDIR>>/daemons/fenced/fence_legacy --help >/dev/null; \
fi
if [ -f /<<PKGBUILDDIR>>/daemons/fenced/fence_watchdog.8.inc ]; then			\
	PATH=/<<PKGBUILDDIR>>/daemons/fenced:$PATH /usr/bin/help2man -N --section 8 --name "Part of the Pacemaker cluster resource manager"	\
		-h --help-all 						\
		--no-discard-stderr 					\
		-i /<<PKGBUILDDIR>>/daemons/fenced/fence_watchdog.8.inc /<<PKGBUILDDIR>>/daemons/fenced/fence_watchdog		\
		| sed -f ../../tools/fix-manpages > fence_watchdog.8 ; \
else									\
	PATH=/<<PKGBUILDDIR>>/daemons/fenced:$PATH /usr/bin/help2man -N --section 8 --name "Part of the Pacemaker cluster resource manager"	\
		--no-discard-stderr 					\
		/<<PKGBUILDDIR>>/daemons/fenced/fence_watchdog --output fence_watchdog.8 ;			\
fi
if [ -f /<<PKGBUILDDIR>>/daemons/fenced/fence_legacy.8.inc ]; then			\
	PATH=/<<PKGBUILDDIR>>/daemons/fenced:$PATH /usr/bin/help2man -N --section 8 --name "Part of the Pacemaker cluster resource manager"	\
		-h --help-all 						\
		--no-discard-stderr 					\
		-i /<<PKGBUILDDIR>>/daemons/fenced/fence_legacy.8.inc /<<PKGBUILDDIR>>/daemons/fenced/fence_legacy		\
		| sed -f ../../tools/fix-manpages > fence_legacy.8 ; \
else									\
	PATH=/<<PKGBUILDDIR>>/daemons/fenced:$PATH /usr/bin/help2man -N --section 8 --name "Part of the Pacemaker cluster resource manager"	\
		--no-discard-stderr 					\
		/<<PKGBUILDDIR>>/daemons/fenced/fence_legacy --output fence_legacy.8 ;			\
fi
fenced_commands.c:1576:1: error: conflicting types for ‘stonith_level_key’ due to enum/integer mismatch; have ‘char *(const xmlNode *, enum fenced_target_by)’ {aka ‘char *(const struct _xmlNode *, enum fenced_target_by)’} [-Werror=enum-int-mismatch]
 1576 | stonith_level_key(const xmlNode *level, enum fenced_target_by mode)
      | ^~~~~~~~~~~~~~~~~
In file included from fenced_commands.c:36:
./pacemaker-fenced.h:226:7: note: previous declaration of ‘stonith_level_key’ with type ‘char *(const xmlNode *, int)’ {aka ‘char *(const struct _xmlNode *, int)’}
  226 | char *stonith_level_key(const xmlNode *msg, int mode);
      |       ^~~~~~~~~~~~~~~~~
fenced_commands.c:1607:1: error: conflicting types for ‘unpack_level_kind’ due to enum/integer mismatch; have ‘int(const xmlNode *)’ {aka ‘int(const struct _xmlNode *)’} [-Werror=enum-int-mismatch]
 1607 | unpack_level_kind(const xmlNode *level)
      | ^~~~~~~~~~~~~~~~~
fenced_commands.c:79:30: note: previous declaration of ‘unpack_level_kind’ with type ‘enum fenced_target_by(const xmlNode *)’ {aka ‘enum fenced_target_by(const struct _xmlNode *)’}
   79 | static enum fenced_target_by unpack_level_kind(const xmlNode *level);
      |                              ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[5]: *** [Makefile:801: pacemaker_fenced-fenced_commands.o] Error 1
make[5]: Leaving directory '/<<PKGBUILDDIR>>/daemons/fenced'
make[4]: *** [Makefile:523: all-recursive] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/daemons'
make[3]: *** [Makefile:1127: core] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: *** [GNUmakefile:40: build] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 returned exit code 2
make[1]: *** [debian/rules:36: override_dh_auto_build-indep] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:20: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-ha-maintainers mailing list