#1096692 gecode-snapshot: ftbfs with GCC-15

#1096692#5
Date:
2025-02-17 17:15:17 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/gecode-snapshot_6.2.0+git20240207-2_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

[...]
a - gecode/set/rel-op/post-nocompl-cvc.o
a - gecode/set/rel-op-const-vvc.o
a - gecode/set/rel-op-const-vcv.o
a - gecode/set/rel-op-const-vcc.o
a - gecode/set/rel-op-const-cvc.o
a - gecode/set/rel-op-const-cvv.o
a - gecode/set/int.o
a - gecode/set/channel.o
a - gecode/set/bool.o
a - gecode/set/element.o
a - gecode/set/sequence.o
a - gecode/set/distinct.o
a - gecode/set/distinct/atmostOne.o
a - gecode/set/precede.o
a - gecode/set/sequence/seq.o
a - gecode/set/sequence/seq-u.o
a - gecode/set/array.o
a - gecode/set/var-imp/set.o
a - gecode/set/var-imp/integerset.o
a - gecode/set/var/set.o
a - gecode/set/exec.o
a - gecode/set/branch/action.o
a - gecode/set/branch/chb.o
a - gecode/set/branch/view-sel.o
a - gecode/set/branch/val-sel-commit.o
a - gecode/set/branch/ngl.o
a - gecode/set/ldsb.o
a - gecode/set/ldsb/sym-imp.o
a - gecode/set/relax.o
a - gecode/set/trace.o
a - gecode/set/trace/tracer.o
a - gecode/set/exception.o
ranlib libgecodeset.a
make[3]: Leaving directory '/build/reproducible-path/gecode-snapshot-6.2.0+git20240207'
make[3]: Entering directory '/build/reproducible-path/gecode-snapshot-6.2.0+git20240207'
make[3]: Leaving directory '/build/reproducible-path/gecode-snapshot-6.2.0+git20240207'
make[3]: Entering directory '/build/reproducible-path/gecode-snapshot-6.2.0+git20240207'
make[3]: Nothing to be done for 'framework'.
make[3]: Leaving directory '/build/reproducible-path/gecode-snapshot-6.2.0+git20240207'
make[3]: Entering directory '/build/reproducible-path/gecode-snapshot-6.2.0+git20240207'
g++ -I. -fcx-limited-range -fno-signaling-nans -fno-rounding-math -ffinite-math-only -fno-math-errno -fno-strict-aliasing  -fvisibility=hidden -ggdb -std=c++17 -pipe -Wno-unknown-pragmas -Wall -Wextra -fPIC -DNDEBUG -g -O2 -ffile-prefix-map=/build/reproducible-path/gecode-snapshot-6.2.0+git20240207=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O3 -D_REENTRANT -Wdate-time -D_FORTIFY_SOURCE=2   \
	-c -o tools/flatzinc/fzn-gecode.o  tools/flatzinc/fzn-gecode.cpp
g++ -o tools/flatzinc/fzn-gecode tools/flatzinc/fzn-gecode.o  \
-L. -I. -fcx-limited-range -fno-signaling-nans -fno-rounding-math -ffinite-math-only -fno-math-errno -fno-strict-aliasing  -fvisibility=hidden -ggdb -std=c++17 -pipe -Wno-unknown-pragmas -Wall -Wextra -fPIC -DNDEBUG -g -O2 -ffile-prefix-map=/build/reproducible-path/gecode-snapshot-6.2.0+git20240207=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O3 -D_REENTRANT -Wdate-time -D_FORTIFY_SOURCE=2  \
-lgecodeflatzinc -lgecodedriver -lgecodegist -lgecodesearch -lgecodeminimodel -lgecodeset -lgecodefloat -lmpfr  -lgmp -lgecodeint -lgecodekernel -lgecodesupport   /usr/lib/x86_64-linux-gnu/libQt6PrintSupport.so /usr/lib/x86_64-linux-gnu/libQt6Widgets.so /usr/lib/x86_64-linux-gnu/libQt6Gui.so /usr/lib/x86_64-linux-gnu/libGLX.so /usr/lib/x86_64-linux-gnu/libOpenGL.so /usr/lib/x86_64-linux-gnu/libQt6Core.so -lpthread -lGLX -lOpenGL   
/usr/bin/ld: ./libgecodegist.a(gist.o):(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; ./libgecodeflatzinc.a(flatzinc.o):(.rodata+0x0): first defined here
/usr/bin/ld: ./libgecodegist.a(textoutput.o):(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; ./libgecodeflatzinc.a(flatzinc.o):(.rodata+0x0): first defined here
/usr/bin/ld: ./libgecodegist.a(mainwindow.o):(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; ./libgecodeflatzinc.a(flatzinc.o):(.rodata+0x0): first defined here
/usr/bin/ld: ./libgecodegist.a(preferences.o):(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; ./libgecodeflatzinc.a(flatzinc.o):(.rodata+0x0): first defined here
/usr/bin/ld: ./libgecodegist.a(moc_mainwindow.o):(.rodata+0x240): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; ./libgecodeflatzinc.a(flatzinc.o):(.rodata+0x0): first defined here
/usr/bin/ld: ./libgecodegist.a(moc_textoutput.o):(.rodata+0xa4): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; ./libgecodeflatzinc.a(flatzinc.o):(.rodata+0x0): first defined here
/usr/bin/ld: ./libgecodegist.a(moc_preferences.o):(.rodata+0x118): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; ./libgecodeflatzinc.a(flatzinc.o):(.rodata+0x0): first defined here
/usr/bin/ld: ./libgecodegist.a(qtgist.o):(.rodata+0x459): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; ./libgecodeflatzinc.a(flatzinc.o):(.rodata+0x0): first defined here
/usr/bin/ld: ./libgecodegist.a(nodestats.o):(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; ./libgecodeflatzinc.a(flatzinc.o):(.rodata+0x0): first defined here
/usr/bin/ld: ./libgecodegist.a(nodewidget.o):(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; ./libgecodeflatzinc.a(flatzinc.o):(.rodata+0x0): first defined here
/usr/bin/ld: ./libgecodegist.a(moc_qtgist.o):(.rodata+0x5ac): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; ./libgecodeflatzinc.a(flatzinc.o):(.rodata+0x0): first defined here
/usr/bin/ld: ./libgecodegist.a(moc_nodestats.o):(.rodata+0xa4): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; ./libgecodeflatzinc.a(flatzinc.o):(.rodata+0x0): first defined here
/usr/bin/ld: ./libgecodegist.a(drawingcursor.o):(.rodata+0xb0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; ./libgecodeflatzinc.a(flatzinc.o):(.rodata+0x0): first defined here
/usr/bin/ld: ./libgecodegist.a(treecanvas.o):(.rodata+0x0): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; ./libgecodeflatzinc.a(flatzinc.o):(.rodata+0x0): first defined here
/usr/bin/ld: ./libgecodegist.a(moc_treecanvas.o):(.rodata+0x131c): multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; ./libgecodeflatzinc.a(flatzinc.o):(.rodata+0x0): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:1834: tools/flatzinc/fzn-gecode] Error 1
make[3]: Leaving directory '/build/reproducible-path/gecode-snapshot-6.2.0+git20240207'
make[2]: *** [Makefile:1296: compilelib] Error 2
make[2]: Leaving directory '/build/reproducible-path/gecode-snapshot-6.2.0+git20240207'
dh_auto_build: error: make -j8 returned exit code 2
make[1]: *** [debian/rules:22: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/gecode-snapshot-6.2.0+git20240207'
make: *** [debian/rules:16: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2