Subject: libcgns: ftbfs with GCC-14

From: Matthias Klose <[email-masked]>
Date: Wed, 03 Jul 2024 12:32:55 +0000

Package: src:libcgns
Version: 3.4.0-4
Severity: important
Tags: sid trixie
User: [email-masked]
Usertags: ftbfs-gcc-14

[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-14/g++-14, but succeeds to build with gcc-13/g++-13. 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/2024/07/01/libcgns_3.4.0-4_unstable_gccexp.log
The last lines of the build log are at the end of this report.

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

[...]
[ 63%] Building C object src/cgnstools/cgnsview/CMakeFiles/cgiowish.dir/cgiotcl.c.o
[ 63%] Linking C executable cgiowish
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/cgnstools/cgnsview && /usr/bin/cmake -E cmake_link_script CMakeFiles/cgiowish.dir/link.txt --verbose=1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 63%] Built target cgiowish
make  -f src/cgnstools/calclib/CMakeFiles/calclib.dir/build.make src/cgnstools/calclib/CMakeFiles/calclib.dir/depend
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/src/cgnstools/calclib /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/cgnstools/calclib /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/cgnstools/calclib/CMakeFiles/calclib.dir/DependInfo.cmake "--color="
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make  -f src/cgnstools/calclib/CMakeFiles/calclib.dir/build.make src/cgnstools/calclib/CMakeFiles/calclib.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 63%] Building C object src/cgnstools/calclib/CMakeFiles/calclib.dir/calc.c.o
[ 64%] Building C object src/cgnstools/calclib/CMakeFiles/calclib.dir/vec.c.o
[ 64%] Building C object src/cgnstools/calclib/CMakeFiles/calclib.dir/vecsym.c.o
[ 64%] Linking C static library libcalclib.a
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/cgnstools/calclib && /usr/bin/cmake -P CMakeFiles/calclib.dir/cmake_clean_target.cmake
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/cgnstools/calclib && /usr/bin/cmake -E cmake_link_script CMakeFiles/calclib.dir/link.txt --verbose=1
/usr/bin/ar qc libcalclib.a CMakeFiles/calclib.dir/calc.c.o CMakeFiles/calclib.dir/vec.c.o CMakeFiles/calclib.dir/vecsym.c.o
/usr/bin/ranlib libcalclib.a
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 64%] Built target calclib
make  -f src/cgnstools/cgnscalc/CMakeFiles/calcwish.dir/build.make src/cgnstools/cgnscalc/CMakeFiles/calcwish.dir/depend
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/src/cgnstools/cgnscalc /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/cgnstools/cgnscalc /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/cgnstools/cgnscalc/CMakeFiles/calcwish.dir/DependInfo.cmake "--color="
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make  -f src/cgnstools/cgnscalc/CMakeFiles/calcwish.dir/build.make src/cgnstools/cgnscalc/CMakeFiles/calcwish.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 65%] Building C object src/cgnstools/cgnscalc/CMakeFiles/calcwish.dir/calctcl.c.o
[ 65%] Building C object src/cgnstools/cgnscalc/CMakeFiles/calcwish.dir/calcwish.c.o
[ 66%] Linking C executable calcwish
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/cgnstools/cgnscalc && /usr/bin/cmake -E cmake_link_script CMakeFiles/calcwish.dir/link.txt --verbose=1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 66%] Built target calcwish
make  -f src/cgnstools/tkogl/CMakeFiles/tkogl.dir/build.make src/cgnstools/tkogl/CMakeFiles/tkogl.dir/depend
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/src/cgnstools/tkogl /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/cgnstools/tkogl /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/cgnstools/tkogl/CMakeFiles/tkogl.dir/DependInfo.cmake "--color="
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make  -f src/cgnstools/tkogl/CMakeFiles/tkogl.dir/build.make src/cgnstools/tkogl/CMakeFiles/tkogl.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 66%] Building C object src/cgnstools/tkogl/CMakeFiles/tkogl.dir/tkogl.c.o
/<<PKGBUILDDIR>>/src/cgnstools/tkogl/tkogl.c: In function ‘OGLwinCmd’:
/<<PKGBUILDDIR>>/src/cgnstools/tkogl/tkogl.c:604:33: error: passing argument 1 of ‘TkWmAddToColormapWindows’ from incompatible pointer type [-Wincompatible-pointer-types]
  604 |        TkWmAddToColormapWindows(tkwin);
      |                                 ^~~~~
      |                                 |
      |                                 Tk_Window {aka struct Tk_Window_ *}
In file included from /usr/include/tcl/tk-private/generic/tkInt.h:1090,
                 from /<<PKGBUILDDIR>>/src/cgnstools/tkogl/tkogl.c:24:
/usr/include/tcl/tk-private/generic/tkIntDecls.h:278:60: note: expected ‘TkWindow *’ but argument is of type ‘Tk_Window’ {aka ‘struct Tk_Window_ *’}
  278 | EXTERN void             TkWmAddToColormapWindows(TkWindow *winPtr);
      |                                                  ~~~~~~~~~~^~~~~~
make[3]: *** [src/cgnstools/tkogl/CMakeFiles/tkogl.dir/build.make:79: src/cgnstools/tkogl/CMakeFiles/tkogl.dir/tkogl.c.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:2447: src/cgnstools/tkogl/CMakeFiles/tkogl.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:169: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j1 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:26: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2