#1097541 palo: ftbfs with GCC-15

#1097541#5
Date:
2025-02-17 17:42:21 UTC
From:
To:
[This bug is NOT 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-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.

The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/palo_2.27_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.

To build with GCC 15, either set CC=gcc-15 CXX=g++-15 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++

GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other 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-15/porting_to.html

[...]
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
   debian/rules override_dh_auto_build
make[1]: Entering directory '/build/reproducible-path/palo-2.27'
echo "Regenerating iplboot."
Regenerating iplboot.
/usr/bin/make realclean
make[2]: Entering directory '/build/reproducible-path/palo-2.27'
rm -f iplboot lifimage palo.8.gz changelog.gz README palo.tgz
cd ipl && /usr/bin/make clean
make[3]: Entering directory '/build/reproducible-path/palo-2.27/ipl'
rm -f iplelf *.o *.a
make[3]: Leaving directory '/build/reproducible-path/palo-2.27/ipl'
cd palo && /usr/bin/make clean
make[3]: Entering directory '/build/reproducible-path/palo-2.27/palo'
rm -f palo mkbootable *.a *.o usage.h
make[3]: Leaving directory '/build/reproducible-path/palo-2.27/palo'
make[2]: Leaving directory '/build/reproducible-path/palo-2.27'
/usr/bin/make iplboot
make[2]: Entering directory '/build/reproducible-path/palo-2.27'
cd ipl && /usr/bin/make
make[3]: Entering directory '/build/reproducible-path/palo-2.27/ipl'
hppa-linux-gnu-gcc -D__ASSEMBLY__ -I../lib -traditional -c -o crt0.o crt0.S
hppa-linux-gnu-gcc -DIPL_LOADER -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -fno-delete-null-pointer-checks -fno-builtin -Wdate-time -D_FORTIFY_SOURCE=2  -c -o byteio.o byteio.c
hppa-linux-gnu-gcc -DIPL_LOADER -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -fno-delete-null-pointer-checks -fno-builtin -Wdate-time -D_FORTIFY_SOURCE=2  -c -o elf64.o ../lib/elf64.c
hppa-linux-gnu-gcc -DIPL_LOADER -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -fno-delete-null-pointer-checks -fno-builtin -Wdate-time -D_FORTIFY_SOURCE=2  -c -o ipl.o ipl.c
hppa-linux-gnu-gcc -DIPL_LOADER -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -fno-delete-null-pointer-checks -fno-builtin -Wdate-time -D_FORTIFY_SOURCE=2  -c -o offset.o offset.c
hppa-linux-gnu-gcc -DIPL_LOADER -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -fno-delete-null-pointer-checks -fno-builtin -Wdate-time -D_FORTIFY_SOURCE=2  -c -o gzip.o ../lib/gzip.c
In file included from ../lib/gzip.c:106:
../lib/../lib/inflate.c: In function ‘huft_build’:
../lib/../lib/inflate.c:259:12: warning: old-style function definition [-Wold-style-definition]
  259 | STATIC int huft_build (b, n, s, d, e, t, m)
      |            ^~~~~~~~~~
../lib/../lib/inflate.c: In function ‘huft_free’:
../lib/../lib/inflate.c:440:12: warning: old-style function definition [-Wold-style-definition]
  440 | STATIC int huft_free (t)
      |            ^~~~~~~~~
../lib/../lib/inflate.c: In function ‘inflate_codes’:
../lib/../lib/inflate.c:460:12: warning: old-style function definition [-Wold-style-definition]
  460 | STATIC int inflate_codes (tl, td, bl, bd)
      |            ^~~~~~~~~~~~~
../lib/../lib/inflate.c: In function ‘inflate_block’:
../lib/../lib/inflate.c:791:12: warning: old-style function definition [-Wold-style-definition]
  791 | STATIC int inflate_block (e)
      |            ^~~~~~~~~~~~~
hppa-linux-gnu-gcc -DIPL_LOADER -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -fno-delete-null-pointer-checks -fno-builtin -Wdate-time -D_FORTIFY_SOURCE=2  -c -o diskpart.o ../lib/diskpart.c
hppa-linux-gnu-gcc -DIPL_LOADER -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -fno-delete-null-pointer-checks -fno-builtin -Wdate-time -D_FORTIFY_SOURCE=2  -c -o ext2.o ext2.c
hppa-linux-gnu-gcc -DIPL_LOADER -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -fno-delete-null-pointer-checks -fno-builtin -Wdate-time -D_FORTIFY_SOURCE=2  -c -o lib.o lib.c
hppa-linux-gnu-gcc -DIPL_LOADER -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -fno-delete-null-pointer-checks -fno-builtin -Wdate-time -D_FORTIFY_SOURCE=2  -c -o pdc_bootio.o pdc_bootio.c
hppa-linux-gnu-gcc -DIPL_LOADER -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -fno-delete-null-pointer-checks -fno-builtin -Wdate-time -D_FORTIFY_SOURCE=2  -c -o vsprintf.o vsprintf.c
hppa-linux-gnu-gcc -DIPL_LOADER -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -fno-delete-null-pointer-checks -fno-builtin -Wdate-time -D_FORTIFY_SOURCE=2  -c -o elf32.o ../lib/elf32.c
hppa-linux-gnu-gcc -DIPL_LOADER -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -fno-delete-null-pointer-checks -fno-builtin -Wdate-time -D_FORTIFY_SOURCE=2  -c -o fileio.o fileio.c
hppa-linux-gnu-gcc -DIPL_LOADER -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -fno-delete-null-pointer-checks -fno-builtin -Wdate-time -D_FORTIFY_SOURCE=2  -c -o load.o ../lib/load.c
hppa-linux-gnu-gcc -DIPL_LOADER -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -fno-delete-null-pointer-checks -fno-builtin -Wdate-time -D_FORTIFY_SOURCE=2  -c -o pdc_cons.o pdc_cons.c
hppa-linux-gnu-gcc -DIPL_LOADER -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -fno-delete-null-pointer-checks -fno-builtin -Wdate-time -D_FORTIFY_SOURCE=2  -c -o pdc_misc.o pdc_misc.c
pdc_misc.c: In function ‘firmware_call’:
pdc_misc.c:119:14: error: too many arguments to function ‘(int (*)(void))(unsigned int)fn’; expected 0, have 14
  119 |         r = (*(firmware_entry) (unsigned int) fn) (arg0, arg1, arg2, arg3, arg4,
      |             ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~
make[3]: *** [<builtin>: pdc_misc.o] Error 1
make[3]: Leaving directory '/build/reproducible-path/palo-2.27/ipl'
make[2]: *** [Makefile:77: makeipl] Error 2
make[2]: Leaving directory '/build/reproducible-path/palo-2.27'
make[1]: *** [debian/rules:12: override_dh_auto_build] Error 2
make[1]: Leaving directory '/build/reproducible-path/palo-2.27'
make: *** [debian/rules:16: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2