Bug#1097860: scotch: ftbfs with GCC-15
Matthias Klose
doko at debian.org
Mon Feb 17 17:52:47 GMT 2025
Package: src:scotch
Version: 7.0.6-1
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/scotch_7.0.6-1_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
[...]
make[4]: Leaving directory '/build/reproducible-path/scotch-7.0.6/src/libscotch'
make[3]: Leaving directory '/build/reproducible-path/scotch-7.0.6/src/libscotch'
make[3]: Entering directory '/build/reproducible-path/scotch-7.0.6/src/libscotch'
cp -a scotch.h ../../include
cp -a scotchf.h ../../include
cp -a libscotch* ../../lib
make[3]: Leaving directory '/build/reproducible-path/scotch-7.0.6/src/libscotch'
(cd scotch ; make VERSION=7 RELEASE=0 PATCHLEVEL=6 CODENAME="Sankara" scotch && make install)
make[3]: Entering directory '/build/reproducible-path/scotch-7.0.6/src/scotch'
make CC="mpicc" SCOTCHLIB=scotch \
acpl \
amk_ccc \
amk_fft2 \
amk_grf \
amk_hy \
amk_m2 \
amk_p2 \
atst \
gbase \
gcv \
gdump \
gmap \
gmk_hy \
gmk_m2 \
gmk_m3 \
gmk_msh \
gmk_ub2 \
gmtst \
gord \
gotst \
gout \
gpart \
gscat \
gtst \
mcv \
mmk_m2 \
mmk_m3 \
mord \
mtst
make[4]: Entering directory '/build/reproducible-path/scotch-7.0.6/src/scotch'
mpicc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/scotch-7.0.6/src/scotch=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O3 -fPIC -I. -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_FILE_COMPRESS_BZ2 -DCOMMON_FILE_COMPRESS_LZMA -DSCOTCH_PTHREAD -DCOMMON_PTHREAD -DSCOTCH_PTHREAD_NUMBER=2 -DCOMMON_PTHREAD_FILE -DSCOTCH_PTHREAD_MPI -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/scotch-7.0.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DCOMMON_PTHREAD_AFFINITY_LINUX -I../../include -I../libscotch "-DSCOTCH_CODENAME=\"Sankara\"" acpl.c -o acpl -L../../lib -lscotch -lscotcherr -lscotcherrexit -Wl,-z,relro -pthread -lz -lbz2 -llzma -lm -lrt -Wl,-z,relro
mpicc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/scotch-7.0.6/src/scotch=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O3 -fPIC -I. -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_FILE_COMPRESS_BZ2 -DCOMMON_FILE_COMPRESS_LZMA -DSCOTCH_PTHREAD -DCOMMON_PTHREAD -DSCOTCH_PTHREAD_NUMBER=2 -DCOMMON_PTHREAD_FILE -DSCOTCH_PTHREAD_MPI -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/scotch-7.0.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DCOMMON_PTHREAD_AFFINITY_LINUX -I../../include -I../libscotch "-DSCOTCH_CODENAME=\"Sankara\"" amk_ccc.c -o amk_ccc -L../../lib -lscotch -lscotcherr -lscotcherrexit -Wl,-z,relro -pthread -lz -lbz2 -llzma -lm -lrt -Wl,-z,relro
mpicc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/scotch-7.0.6/src/scotch=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O3 -fPIC -I. -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_FILE_COMPRESS_BZ2 -DCOMMON_FILE_COMPRESS_LZMA -DSCOTCH_PTHREAD -DCOMMON_PTHREAD -DSCOTCH_PTHREAD_NUMBER=2 -DCOMMON_PTHREAD_FILE -DSCOTCH_PTHREAD_MPI -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/scotch-7.0.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DCOMMON_PTHREAD_AFFINITY_LINUX -I../../include -I../libscotch "-DSCOTCH_CODENAME=\"Sankara\"" amk_fft2.c -o amk_fft2 -L../../lib -lscotch -lscotcherr -lscotcherrexit -Wl,-z,relro -pthread -lz -lbz2 -llzma -lm -lrt -Wl,-z,relro
mpicc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/scotch-7.0.6/src/scotch=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O3 -fPIC -I. -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_FILE_COMPRESS_BZ2 -DCOMMON_FILE_COMPRESS_LZMA -DSCOTCH_PTHREAD -DCOMMON_PTHREAD -DSCOTCH_PTHREAD_NUMBER=2 -DCOMMON_PTHREAD_FILE -DSCOTCH_PTHREAD_MPI -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/scotch-7.0.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DCOMMON_PTHREAD_AFFINITY_LINUX -I../../include -I../libscotch "-DSCOTCH_CODENAME=\"Sankara\"" amk_grf.c -o amk_grf -L../../lib -lscotch -lscotcherr -lscotcherrexit -Wl,-z,relro -pthread -lz -lbz2 -llzma -lm -lrt -Wl,-z,relro
mpicc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/scotch-7.0.6/src/scotch=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O3 -fPIC -I. -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_FILE_COMPRESS_BZ2 -DCOMMON_FILE_COMPRESS_LZMA -DSCOTCH_PTHREAD -DCOMMON_PTHREAD -DSCOTCH_PTHREAD_NUMBER=2 -DCOMMON_PTHREAD_FILE -DSCOTCH_PTHREAD_MPI -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/scotch-7.0.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DCOMMON_PTHREAD_AFFINITY_LINUX -I../../include -I../libscotch "-DSCOTCH_CODENAME=\"Sankara\"" amk_hy.c -o amk_hy -L../../lib -lscotch -lscotcherr -lscotcherrexit -Wl,-z,relro -pthread -lz -lbz2 -llzma -lm -lrt -Wl,-z,relro
mpicc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/scotch-7.0.6/src/scotch=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O3 -fPIC -I. -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_FILE_COMPRESS_BZ2 -DCOMMON_FILE_COMPRESS_LZMA -DSCOTCH_PTHREAD -DCOMMON_PTHREAD -DSCOTCH_PTHREAD_NUMBER=2 -DCOMMON_PTHREAD_FILE -DSCOTCH_PTHREAD_MPI -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/scotch-7.0.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DCOMMON_PTHREAD_AFFINITY_LINUX -I../../include -I../libscotch "-DSCOTCH_CODENAME=\"Sankara\"" amk_m2.c -o amk_m2 -L../../lib -lscotch -lscotcherr -lscotcherrexit -Wl,-z,relro -pthread -lz -lbz2 -llzma -lm -lrt -Wl,-z,relro
amk_m2.c: In function ‘main’:
amk_m2.c:202:64: error: passing argument 6 of ‘C_domnBipart’ from incompatible pointer type [-Wincompatible-pointer-types]
202 | (typeval == C_METHNESTED) ? archMesh2DomBipart : archMesh2DomBipartO);
In file included from amk_m2.c:86:
amk_m2.h:94:101: note: expected ‘int (*)(void)’ but argument is of type ‘int (*)(const ArchMeshX * const, const ArchMeshXDom * const, ArchMeshXDom * const restrict, ArchMeshXDom * const restrict)’ {aka ‘int (*)(const struct ArchMeshX_ * const, const struct ArchMeshXDom_ * const, struct ArchMeshXDom_ * const restrict, struct ArchMeshXDom_ * const restrict)’}
94 | void C_domnBipart (ArchMesh2 *, ArchMesh2Dom *, Anum, Anum *, Anum *, int (*) ());
| ^~~~~~~~~~
amk_m2.c: At top level:
amk_m2.c:236:1: error: conflicting types for ‘C_domnBipart’; have ‘void(ArchMeshX *, ArchMeshXDom *, Anum, Anum *, Anum *, int (*)(const ArchMeshX * const, const ArchMeshXDom * const, ArchMeshXDom * const, ArchMeshXDom * const))’ {aka ‘void(struct ArchMeshX_ *, struct ArchMeshXDom_ *, int, int *, int *, int (*)(const struct ArchMeshX_ * const, const struct ArchMeshXDom_ * const, struct ArchMeshXDom_ * const, struct ArchMeshXDom_ * const))’}
236 | C_domnBipart (
| ^~~~~~~~~~~~
amk_m2.h:94:29: note: previous declaration of ‘C_domnBipart’ with type ‘void(ArchMeshX *, ArchMeshXDom *, Anum, Anum *, Anum *, int (*)(void))’ {aka ‘void(struct ArchMeshX_ *, struct ArchMeshXDom_ *, int, int *, int *, int (*)(void))’}
94 | void C_domnBipart (ArchMesh2 *, ArchMesh2Dom *, Anum, Anum *, Anum *, int (*) ());
| ^~~~~~~~~~~~
make[4]: *** [Makefile:56: amk_m2] Error 1
make[4]: Leaving directory '/build/reproducible-path/scotch-7.0.6/src/scotch'
make[3]: *** [Makefile:65: scotch] Error 2
make[3]: Leaving directory '/build/reproducible-path/scotch-7.0.6/src/scotch'
make[2]: *** [Makefile:100: scotch] Error 2
make[2]: Leaving directory '/build/reproducible-path/scotch-7.0.6/src'
make[1]: *** [debian/rules:89: override_dh_auto_build] Error 2
make[1]: Leaving directory '/build/reproducible-path/scotch-7.0.6'
make: *** [debian/rules:82: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
More information about the debian-science-maintainers
mailing list