[Debian-med-packaging] Bug#1097803: roguenarok: ftbfs with GCC-15

Matthias Klose doko at debian.org
Mon Feb 17 17:50:52 GMT 2025


Package: src:roguenarok
Version: 1.0.1-3
Severity: important
Tags: sid forky
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-15

[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/roguenarok_1.0.1-3_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

[...]
dpkg-buildpackage: info: source version 1.0.1-3
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Andreas Tille <tille at debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 debian/rules clean
dh clean
   dh_auto_clean
	make -j8 clean
make[1]: Entering directory '/build/reproducible-path/roguenarok-1.0.1'
rm -fr common.o RogueNaRok.o  Tree.o BitVector.o HashTable.o List.o Array.o  Dropset.o ProfileElem.o legacy.o newFunctions.o parallel.o Node.o rnr-lsi.o common.o Tree.o BitVector.o   HashTable.o legacy.o newFunctions.o List.o rnr-tii.o common.o BitVector.o Tree.o HashTable.o List.o legacy.o newFunctions.o  rnr-mast.o common.o List.o Tree.o BitVector.o HashTable.o legacy.o newFunctions.o rnr-prune.o common.o Tree.o BitVector.o HashTable.o  legacy.o newFunctions.o List.o RogueNaRok rnr-prune rnr-lsi  rnr-tii  rnr-mast     RogueNaRok-parallel
make[1]: Leaving directory '/build/reproducible-path/roguenarok-1.0.1'
   dh_clean
 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/roguenarok-1.0.1'
dh_auto_build
	make -j8 "INSTALL=install --strip-program=true"
make[2]: Entering directory '/build/reproducible-path/roguenarok-1.0.1'
gcc  -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/roguenarok-1.0.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_GNU_SOURCE -O3 -DNDEBUG  -c -o common.o common.c -Wl,-z,relro -Wl,-z,now
gcc  -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/roguenarok-1.0.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_GNU_SOURCE -O3 -DNDEBUG  -c -o RogueNaRok.o RogueNaRok.c -Wl,-z,relro -Wl,-z,now
gcc  -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/roguenarok-1.0.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_GNU_SOURCE -O3 -DNDEBUG  -c -o Tree.o Tree.c -Wl,-z,relro -Wl,-z,now
gcc  -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/roguenarok-1.0.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_GNU_SOURCE -O3 -DNDEBUG  -c -o BitVector.o BitVector.c -Wl,-z,relro -Wl,-z,now
gcc  -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/roguenarok-1.0.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_GNU_SOURCE -O3 -DNDEBUG  -c -o HashTable.o HashTable.c -Wl,-z,relro -Wl,-z,now
gcc  -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/roguenarok-1.0.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_GNU_SOURCE -O3 -DNDEBUG  -c -o List.o List.c -Wl,-z,relro -Wl,-z,now
gcc  -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/roguenarok-1.0.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_GNU_SOURCE -O3 -DNDEBUG  -c -o Array.o Array.c -Wl,-z,relro -Wl,-z,now
gcc  -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/roguenarok-1.0.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_GNU_SOURCE -O3 -DNDEBUG  -c -o Dropset.o Dropset.c -Wl,-z,relro -Wl,-z,now
gcc  -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/roguenarok-1.0.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_GNU_SOURCE -O3 -DNDEBUG  -c -o ProfileElem.o ProfileElem.c -Wl,-z,relro -Wl,-z,now
gcc  -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/roguenarok-1.0.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_GNU_SOURCE -O3 -DNDEBUG  -c -o legacy.o legacy.c -Wl,-z,relro -Wl,-z,now
gcc  -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/roguenarok-1.0.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_GNU_SOURCE -O3 -DNDEBUG  -c -o newFunctions.o newFunctions.c -Wl,-z,relro -Wl,-z,now
gcc  -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/roguenarok-1.0.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_GNU_SOURCE -O3 -DNDEBUG  -c -o parallel.o parallel.c -Wl,-z,relro -Wl,-z,now
gcc  -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/roguenarok-1.0.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_GNU_SOURCE -O3 -DNDEBUG  -c -o Node.o Node.c -Wl,-z,relro -Wl,-z,now
gcc  -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/roguenarok-1.0.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_GNU_SOURCE -O3 -DNDEBUG  -c -o rnr-prune.o rnr-prune.c -Wl,-z,relro -Wl,-z,now
gcc  -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/roguenarok-1.0.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_GNU_SOURCE -O3 -DNDEBUG  -c -o rnr-lsi.o rnr-lsi.c -Wl,-z,relro -Wl,-z,now
gcc  -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/roguenarok-1.0.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_GNU_SOURCE -O3 -DNDEBUG  -c -o rnr-tii.o rnr-tii.c -Wl,-z,relro -Wl,-z,now
gcc  -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/roguenarok-1.0.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -D_GNU_SOURCE -O3 -DNDEBUG  -c -o rnr-mast.o rnr-mast.c -Wl,-z,relro -Wl,-z,now
rnr-lsi.c: In function ‘main’:
rnr-lsi.c:384:7: error: too many arguments to function ‘printHelpFile’; expected 0, have 1
  384 |       printHelpFile(FALSE);
      |       ^~~~~~~~~~~~~
rnr-lsi.c:327:6: note: declared here
  327 | void printHelpFile()
      |      ^~~~~~~~~~~~~
rnr-lsi.c:391:7: error: too many arguments to function ‘printHelpFile’; expected 0, have 1
  391 |       printHelpFile(FALSE);
      |       ^~~~~~~~~~~~~
rnr-lsi.c:327:6: note: declared here
  327 | void printHelpFile()
      |      ^~~~~~~~~~~~~
make[2]: *** [Makefile:53: rnr-lsi.o] Error 1
make[2]: *** Waiting for unfinished jobs....
RogueNaRok.c: In function ‘doomRogues’:
RogueNaRok.c:2028:23: warning: pointer ‘candidateBips’ used after ‘free’ [-Wuse-after-free]
 2028 |       candidateBips = cleanup(tr, mergingHash, bestDropset, candidateBips, bipartitionProfile, bipartitionsById);
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘createOrUpdateMergingHash’,
    inlined from ‘doomRogues’ at RogueNaRok.c:1985:7:
RogueNaRok.c:1150:3: note: call to ‘free’ here
 1150 |   free(candidateBips);
      |   ^~~~~~~~~~~~~~~~~~~
make[2]: Leaving directory '/build/reproducible-path/roguenarok-1.0.1'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" returned exit code 2
make[1]: *** [debian/rules:11: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/roguenarok-1.0.1'
make: *** [debian/rules:8: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-med-packaging mailing list