[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/gmp_6.3.0+dfsg-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 [...] ./lib/autoconf/general.m4:399: AC_FD_CC is expanded from... acinclude.m4:1648: GMP_TRY_ASSEMBLE is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... acinclude.m4:2163: GMP_ASM_COFF_TYPE is expanded from... configure.ac:3851: the top level configure.ac:3856: warning: The macro 'AC_FD_CC' is obsolete. configure.ac:3856: You should run autoupdate. ./lib/autoconf/general.m4:399: AC_FD_CC is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... acinclude.m4:2363: GMP_ASM_X86_GOT_UNDERSCORE is expanded from... configure.ac:3856: the top level configure.ac:3857: warning: The macro 'AC_FD_CC' is obsolete. configure.ac:3857: You should run autoupdate. ./lib/autoconf/general.m4:399: AC_FD_CC is expanded from... acinclude.m4:1648: GMP_TRY_ASSEMBLE is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... acinclude.m4:2587: GMP_ASM_X86_SHLDL_CL is expanded from... configure.ac:3857: the top level configure.ac:3859: warning: The macro 'AC_FD_CC' is obsolete. configure.ac:3859: You should run autoupdate. ./lib/autoconf/general.m4:399: AC_FD_CC is expanded from... acinclude.m4:2717: GMP_ASM_X86_MCOUNT is expanded from... configure.ac:3859: the top level configure.ac:4062: warning: AC_PROG_LEX without either yywrap or noyywrap is obsolete ./lib/autoconf/programs.m4:743: _AC_PROG_LEX is expanded from... ./lib/autoconf/programs.m4:736: AC_PROG_LEX is expanded from... aclocal.m4:9579: AM_PROG_LEX is expanded from... configure.ac:4062: the top level configure.ac:4073: warning: AC_OUTPUT should be used without arguments. configure.ac:4073: You should run autoupdate. configure.ac:2534: installing './compile' configure.ac:81: installing './missing' mkdir -p build cd build && ../configure --prefix=/usr --enable-cxx --disable-fat --build x86_64-linux-gnu --libdir=/usr/lib/x86_64-linux-gnu \ AR=ar CC="x86_64-linux-gnu-gcc" CFLAGS="-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gmp-6.3.0+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O3" \ CXX="x86_64-linux-gnu-g++" CXXFLAGS="-g -O2 -ffile-prefix-map=/build/reproducible-path/gmp-6.3.0+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection" ASMFLAGS="--debug-prefix-map=/build/reproducible-path/gmp-6.3.0+dfsg=." checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether sleep supports fractional seconds... yes checking filesystem timestamp resolution... 0.01 checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking xargs -n works... yes checking whether to enable maintainer-specific portions of Makefiles... no checking ABI=64 checking whether x86_64-linux-gnu-gcc is gcc... yes checking compiler x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gmp-6.3.0+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O3 -Wdate-time -D_FORTIFY_SOURCE=2... no, long long reliability test 1 checking ABI=x32 checking whether x86_64-linux-gnu-gcc is gcc... yes checking compiler x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gmp-6.3.0+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O3 -Wdate-time -D_FORTIFY_SOURCE=2... no, long long reliability test 1 checking ABI=32 checking whether x86_64-linux-gnu-gcc is gcc... yes checking compiler x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gmp-6.3.0+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O3 -Wdate-time -D_FORTIFY_SOURCE=2... no, long long reliability test 1 configure: error: could not find a working compiler, see config.log for details make: *** [debian/rules:73: configure-stamp] Error 1 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Control: tags 1096730 upstream fixed-upstream This was fixed upstream by the following commits: changeset: 18484:d66d66d82dbb user: Marc Glisse <marc.glisse@inria.fr> date: Tue Apr 01 15:25:46 2025 +0200 summary: Add parameter names to function prototype changeset: 18477:8e7bb4ae7a18 user: Marc Glisse <marc.glisse@inria.fr> date: Wed Jan 29 22:38:02 2025 +0100 summary: Complete function prototype in acinclude.m4 for C23 compatibility The 18477 one does--- a/acinclude.m4 Wed Dec 04 18:26:27 2024 +0100 +++ b/acinclude.m4 Wed Jan 29 22:38:02 2025 +0100 @@ -609,7 +609,7 @@ #if defined (__GNUC__) && ! defined (__cplusplus) typedef unsigned long long t1;typedef t1*t2; -void g(){} +void g(int,t1 const*,t1,t2,t1 const*,int){} void h(){} static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0) {t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;} but old compilers do not support parameter name omission. So, for compatibility with all compilers, the 18484 commit added parameter names:--- a/acinclude.m4 Mon Feb 03 17:52:54 2025 +0100 +++ b/acinclude.m4 Tue Apr 01 15:25:46 2025 +0200 @@ -609,7 +609,7 @@ #if defined (__GNUC__) && ! defined (__cplusplus) typedef unsigned long long t1;typedef t1*t2; -void g(int,t1 const*,t1,t2,t1 const*,int){} +void g(int a,t1 const*b,t1 c,t2 d,t1 const*e,int f){} void h(){} static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0) {t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
Hi. I've applied the changes, checked that they work, and made a team upload. Thanks a lot!
We believe that the bug you reported is fixed in the latest version of
gmp, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1096730@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Santiago Vila <sanvila@debian.org> (supplier of updated gmp package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 22 Aug 2025 23:10:00 +0200
Source: gmp
Architecture: source
Version: 2:6.3.0+dfsg-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Changed-By: Santiago Vila <sanvila@debian.org>
Closes: 1096730
Changes:
gmp (2:6.3.0+dfsg-4) unstable; urgency=medium
.
* Team upload.
* Apply upstream fix to build with gcc-15. Closes: #1096730.
Thanks a lot to Vincent Lefevre <vincent@vinc17.net>.
Checksums-Sha1:
909e62579855d021e9955e8888e97d297a324c9e 1885 gmp_6.3.0+dfsg-4.dsc
d6cf55dbcbcd3ab023bed5790086f7bde29d910e 20388 gmp_6.3.0+dfsg-4.debian.tar.xz
37fe53635c7dfa5cbe5bc8dff74ddda6c6342e4b 4944 gmp_6.3.0+dfsg-4_source.buildinfo
Checksums-Sha256:
beebf77e69eb441211213fd124e933a6bb923c156db224be78abe5197e3ba754 1885 gmp_6.3.0+dfsg-4.dsc
5ff61b218818ac4d1e5b690971cb4fb3eebfa073f326f51dd43f76331563a6d2 20388 gmp_6.3.0+dfsg-4.debian.tar.xz
39ce453517a1a2a38b7825fd29628726f9a0729ec4074f618b8a9b35825dcec9 4944 gmp_6.3.0+dfsg-4_source.buildinfo
Files:
fd0f1b4669668947d032f013ee3aacd2 1885 libs optional gmp_6.3.0+dfsg-4.dsc
9a3af38ccbbf4fa146f4c7de267299ff 20388 libs optional gmp_6.3.0+dfsg-4.debian.tar.xz
c518748de0c2b4d5ecd99e71a88ac4ac 4944 libs optional gmp_6.3.0+dfsg-4_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEE1Uw7+v+wQt44LaXXQc5/C58bizIFAmio4UgACgkQQc5/C58b
izIpBgf/VPi1mFtmQyu5d8k5QNQJcBLIbjTMt3U7q47AA7XQ/T320kw3Xh8SrHLk
njxms7hzenNUKruh3Gmk9QD3Vq83pgqaYkWKOKQmSZpZ5TlEsa6E6rWoI8h/Cm5+
PGxgPOMaDzAXLKsXIwvlMls2osjdomOwysGJB3toScEAuJSFwg/C9VeGCQik7MiS
0fL0MjDF9swp72ikbpT2bgVgXghbJWwdTTMftAJ3sIPNcU+EBZqPbbxmVbLs1Wzx
OdRQijF0QCU5CGU6pV+t/0QOHKRfb8CtH3IGq+3xLvJ5+mwxOFdIg07m8vuhnqSb
YZU/cWpqEUgvoH54ZpE7pLJfCDlcRQ==
=hdRt
-----END PGP SIGNATURE-----