Bug#1075547: sundials: ftbfs with GCC-14

Matthias Klose doko at debian.org
Wed Jul 3 13:45:13 BST 2024


Package: src:sundials
Version: 6.4.1+dfsg1-3
Severity: important
Tags: sid trixie
User: debian-gcc at lists.debian.org
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/sundials_6.4.1+dfsg1-3_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

[...]
make  -f examples/sunmatrix/band/CMakeFiles/test_sunmatrix_band.dir/build.make examples/sunmatrix/band/CMakeFiles/test_sunmatrix_band.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/debian/build'
[ 13%] Building Fortran object src/sundials/fmod/CMakeFiles/sundials_fgeneric_mod_obj_shared.dir/fsundials_nonlinearsolver_mod.f90.o
cd /<<PKGBUILDDIR>>/debian/build/src/sundials/fmod && /usr/bin/gfortran -Dsundials_generic_EXPORTS -I/usr/lib/petscdir/petsc3.20/x86_64-linux-gnu-real/include -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/debian/build/include -I/<<PKGBUILDDIR>>/src/sundials -I/<<PKGBUILDDIR>>/debian/build/fortran_SHARED -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection -J../../../fortran_SHARED -fPIC -cpp -c /<<PKGBUILDDIR>>/src/sundials/fmod/fsundials_nonlinearsolver_mod.f90 -o CMakeFiles/sundials_fgeneric_mod_obj_shared.dir/fsundials_nonlinearsolver_mod.f90.o
[ 13%] Building C object examples/sunmatrix/band/CMakeFiles/test_sunmatrix_band.dir/test_sunmatrix_band.c.o
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
cd /<<PKGBUILDDIR>>/debian/build/examples/sunmatrix/band && /usr/bin/cc  -I/usr/lib/petscdir/petsc3.20/x86_64-linux-gnu-real/include -I/<<PKGBUILDDIR>>/examples/sunmatrix/band/. -I/<<PKGBUILDDIR>>/examples/sunmatrix/band/.. -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/debian/build/include -I/<<PKGBUILDDIR>>/src/sundials -fcommon -std=gnu99 -MD -MT examples/sunmatrix/band/CMakeFiles/test_sunmatrix_band.dir/test_sunmatrix_band.c.o -MF CMakeFiles/test_sunmatrix_band.dir/test_sunmatrix_band.c.o.d -o CMakeFiles/test_sunmatrix_band.dir/test_sunmatrix_band.c.o -c /<<PKGBUILDDIR>>/examples/sunmatrix/band/test_sunmatrix_band.c
/<<PKGBUILDDIR>>/src/sunnonlinsol/petscsnes/sunnonlinsol_petscsnes.c: In function ‘SUNNonlinSolGetNumIters_PetscSNES’:
/<<PKGBUILDDIR>>/src/sunnonlinsol/petscsnes/sunnonlinsol_petscsnes.c:326:54: error: passing argument 2 of ‘SNESGetIterationNumber’ from incompatible pointer type [-Wincompatible-pointer-types]
  326 |   ierr = SNESGetIterationNumber(SUNNLS_SNESOBJ(NLS), &niters);
      |                                                      ^~~~~~~
      |                                                      |
      |                                                      sunindextype * {aka long int *}
In file included from /<<PKGBUILDDIR>>/src/sunnonlinsol/petscsnes/sunnonlinsol_petscsnes.c:22:
/usr/lib/petscdir/petsc3.20/x86_64-linux-gnu-real/include/petscsnes.h:152:58: note: expected ‘PetscInt *’ {aka ‘int *’} but argument is of type ‘sunindextype *’ {aka ‘long int *’}
  152 | PETSC_EXTERN PetscErrorCode SNESGetIterationNumber(SNES, PetscInt *);
      |                                                          ^~~~~~~~~~
/<<PKGBUILDDIR>>/src/sunnonlinsol/petscsnes/sunnonlinsol_petscsnes.c: In function ‘SUNNonlinSolGetNumIters_PetscSNES’:
/<<PKGBUILDDIR>>/src/sunnonlinsol/petscsnes/sunnonlinsol_petscsnes.c:326:54: error: passing argument 2 of ‘SNESGetIterationNumber’ from incompatible pointer type [-Wincompatible-pointer-types]
  326 |   ierr = SNESGetIterationNumber(SUNNLS_SNESOBJ(NLS), &niters);
      |                                                      ^~~~~~~
      |                                                      |
      |                                                      sunindextype * {aka long int *}
In file included from /<<PKGBUILDDIR>>/src/sunnonlinsol/petscsnes/sunnonlinsol_petscsnes.c:22:
/usr/lib/petscdir/petsc3.20/x86_64-linux-gnu-real/include/petscsnes.h:152:58: note: expected ‘PetscInt *’ {aka ‘int *’} but argument is of type ‘sunindextype *’ {aka ‘long int *’}
  152 | PETSC_EXTERN PetscErrorCode SNESGetIterationNumber(SNES, PetscInt *);
      |                                                          ^~~~~~~~~~
make[3]: *** [src/sunnonlinsol/petscsnes/CMakeFiles/sundials_sunnonlinsolpetscsnes_obj_static.dir/build.make:79: src/sunnonlinsol/petscsnes/CMakeFiles/sundials_sunnonlinsolpetscsnes_obj_static.dir/sunnonlinsol_petscsnes.c.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
make[2]: *** [CMakeFiles/Makefile2:8900: src/sunnonlinsol/petscsnes/CMakeFiles/sundials_sunnonlinsolpetscsnes_obj_static.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
make[3]: *** [src/sunnonlinsol/petscsnes/CMakeFiles/sundials_sunnonlinsolpetscsnes_obj_shared.dir/build.make:79: src/sunnonlinsol/petscsnes/CMakeFiles/sundials_sunnonlinsolpetscsnes_obj_shared.dir/sunnonlinsol_petscsnes.c.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
make[2]: *** [CMakeFiles/Makefile2:8955: src/sunnonlinsol/petscsnes/CMakeFiles/sundials_sunnonlinsolpetscsnes_obj_shared.dir/all] Error 2
/usr/bin/cmake -E touch src/sundials/fmod/CMakeFiles/sundials_fgeneric_mod_obj_shared.dir/fsundials_nvector_mod.f90.o.provides.build
[ 13%] Built target test_nvectormpi_obj
/usr/bin/cmake -E cmake_copy_f90_mod fortran_SHARED/fsundials_matrix_mod.mod src/sundials/fmod/CMakeFiles/sundials_fgeneric_mod_obj_shared.dir/fsundials_matrix_mod.mod.stamp GNU
[ 13%] Building C object examples/sunmatrix/band/CMakeFiles/test_sunmatrix_band.dir/__/test_sunmatrix.c.o
cd /<<PKGBUILDDIR>>/debian/build/examples/sunmatrix/band && /usr/bin/cc  -I/usr/lib/petscdir/petsc3.20/x86_64-linux-gnu-real/include -I/<<PKGBUILDDIR>>/examples/sunmatrix/band/. -I/<<PKGBUILDDIR>>/examples/sunmatrix/band/.. -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/debian/build/include -I/<<PKGBUILDDIR>>/src/sundials -fcommon -std=gnu99 -MD -MT examples/sunmatrix/band/CMakeFiles/test_sunmatrix_band.dir/__/test_sunmatrix.c.o -MF CMakeFiles/test_sunmatrix_band.dir/__/test_sunmatrix.c.o.d -o CMakeFiles/test_sunmatrix_band.dir/__/test_sunmatrix.c.o -c /<<PKGBUILDDIR>>/examples/sunmatrix/test_sunmatrix.c
[ 13%] Building C object examples/sunmatrix/dense/CMakeFiles/test_sunmatrix_dense.dir/__/test_sunmatrix.c.o
cd /<<PKGBUILDDIR>>/debian/build/examples/sunmatrix/dense && /usr/bin/cc  -I/usr/lib/petscdir/petsc3.20/x86_64-linux-gnu-real/include -I/<<PKGBUILDDIR>>/examples/sunmatrix/dense/. -I/<<PKGBUILDDIR>>/examples/sunmatrix/dense/.. -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/debian/build/include -I/<<PKGBUILDDIR>>/src/sundials -fcommon -std=gnu99 -MD -MT examples/sunmatrix/dense/CMakeFiles/test_sunmatrix_dense.dir/__/test_sunmatrix.c.o -MF CMakeFiles/test_sunmatrix_dense.dir/__/test_sunmatrix.c.o.d -o CMakeFiles/test_sunmatrix_dense.dir/__/test_sunmatrix.c.o -c /<<PKGBUILDDIR>>/examples/sunmatrix/test_sunmatrix.c
/usr/bin/cmake -E touch src/sundials/fmod/CMakeFiles/sundials_fgeneric_mod_obj_shared.dir/fsundials_matrix_mod.f90.o.provides.build
[ 13%] Building Fortran object src/sundials/fmod/CMakeFiles/sundials_fgeneric_mod_obj_shared.dir/fsundials_linearsolver_mod.f90.o
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
cd /<<PKGBUILDDIR>>/debian/build/src/sundials/fmod && /usr/bin/gfortran -Dsundials_generic_EXPORTS -I/usr/lib/petscdir/petsc3.20/x86_64-linux-gnu-real/include -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/debian/build/include -I/<<PKGBUILDDIR>>/src/sundials -I/<<PKGBUILDDIR>>/debian/build/fortran_SHARED -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection -J../../../fortran_SHARED -fPIC -cpp -c /<<PKGBUILDDIR>>/src/sundials/fmod/fsundials_linearsolver_mod.f90 -o CMakeFiles/sundials_fgeneric_mod_obj_shared.dir/fsundials_linearsolver_mod.f90.o
[ 13%] Built target test_sunmatrix_obj
/usr/bin/cmake -E cmake_copy_f90_mod fortran_SHARED/fsundials_nonlinearsolver_mod.mod src/sundials/fmod/CMakeFiles/sundials_fgeneric_mod_obj_shared.dir/fsundials_nonlinearsolver_mod.mod.stamp GNU
/usr/bin/cmake -E touch src/sundials/fmod/CMakeFiles/sundials_fgeneric_mod_obj_shared.dir/fsundials_nonlinearsolver_mod.f90.o.provides.build
[ 13%] Linking C executable test_sunmatrix_band
cd /<<PKGBUILDDIR>>/debian/build/examples/sunmatrix/band && /usr/bin/cmake -E cmake_link_script CMakeFiles/test_sunmatrix_band.dir/link.txt --verbose=1
/usr/bin/cc -fcommon -Wl,-z,relro -Wl,-z,now CMakeFiles/test_sunmatrix_band.dir/test_sunmatrix_band.c.o CMakeFiles/test_sunmatrix_band.dir/__/test_sunmatrix.c.o -o test_sunmatrix_band  -Wl,-rpath,/<<PKGBUILDDIR>>/debian/build/src/nvector/serial:/<<PKGBUILDDIR>>/debian/build/src/sunmatrix/band ../../../src/nvector/serial/libsundials_nvecserial.so.6.4.1 ../../../src/sunmatrix/band/libsundials_sunmatrixband.so.4.4.1 -lm
[ 14%] Linking C executable test_sunmatrix_dense
cd /<<PKGBUILDDIR>>/debian/build/examples/sunmatrix/dense && /usr/bin/cmake -E cmake_link_script CMakeFiles/test_sunmatrix_dense.dir/link.txt --verbose=1
/usr/bin/cc -fcommon -Wl,-z,relro -Wl,-z,now CMakeFiles/test_sunmatrix_dense.dir/test_sunmatrix_dense.c.o CMakeFiles/test_sunmatrix_dense.dir/__/test_sunmatrix.c.o -o test_sunmatrix_dense  -Wl,-rpath,/<<PKGBUILDDIR>>/debian/build/src/nvector/serial:/<<PKGBUILDDIR>>/debian/build/src/sunmatrix/dense ../../../src/nvector/serial/libsundials_nvecserial.so.6.4.1 ../../../src/sunmatrix/dense/libsundials_sunmatrixdense.so.4.4.1 -lm
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
[ 14%] Built target test_sunmatrix_band
/usr/bin/cmake -E cmake_copy_f90_mod fortran_SHARED/fsundials_linearsolver_mod.mod src/sundials/fmod/CMakeFiles/sundials_fgeneric_mod_obj_shared.dir/fsundials_linearsolver_mod.mod.stamp GNU
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
/usr/bin/cmake -E touch src/sundials/fmod/CMakeFiles/sundials_fgeneric_mod_obj_shared.dir/fsundials_linearsolver_mod.f90.o.provides.build
[ 14%] Built target test_sunmatrix_dense
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
[ 14%] Built target sundials_fgeneric_mod_obj_shared
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
[ 14%] Built target test_nvector_obj
make[2]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
dh_auto_build: error: cd debian/build && make -j8 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:50: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the debian-science-maintainers mailing list