Bug#1097228: libmath-cephes-perl: ftbfs with GCC-15

Matthias Klose doko at debian.org
Mon Feb 17 17:32:29 GMT 2025


Package: src:libmath-cephes-perl
Version: 0.5305-6
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/libmath-cephes-perl_0.5305-6_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

[...]
   dh_auto_build
	make -j8
make[1]: Entering directory '/build/reproducible-path/libmath-cephes-perl-0.5305'
cd /build/reproducible-path/libmath-cephes-perl-0.5305/libmd && make static
make[2]: Entering directory '/build/reproducible-path/libmath-cephes-perl-0.5305/libmd'
x86_64-linux-gnu-gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -fno-builtin  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libmath-cephes-perl-0.5305=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -DVERSION=\"0.5305\" -DXS_VERSION=\"0.5305\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE"   acosh.c
Running Mkbootstrap for Cephes ()
x86_64-linux-gnu-gcc -c  -I/build/reproducible-path/libmath-cephes-perl-0.5305/libmd -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libmath-cephes-perl-0.5305=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -DVERSION=\"0.5305\" -DXS_VERSION=\"0.5305\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE"   Cephes_wrap.c
x86_64-linux-gnu-gcc -c  -I/build/reproducible-path/libmath-cephes-perl-0.5305/libmd -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libmath-cephes-perl-0.5305=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -DVERSION=\"0.5305\" -DXS_VERSION=\"0.5305\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE"   arrays.c
x86_64-linux-gnu-gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -fno-builtin  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libmath-cephes-perl-0.5305=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -DVERSION=\"0.5305\" -DXS_VERSION=\"0.5305\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE"   airy.c
x86_64-linux-gnu-gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -fno-builtin  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libmath-cephes-perl-0.5305=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -DVERSION=\"0.5305\" -DXS_VERSION=\"0.5305\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE"   arcdot.c
acosh.c: In function ‘md_acosh’:
acosh.c:137:8: warning: old-style function definition [-Wold-style-definition]
  137 | double md_acosh(x)
      |        ^~~~~~~~
acosh.c:144:9: error: too many arguments to function ‘mtherr’; expected 0, have 2
  144 |         mtherr( "md_acosh", DOMAIN );
      |         ^~~~~~  ~~~~~~~~~~
In file included from acosh.c:54:
mconf.h:137:5: note: declared here
  137 | int mtherr();
      |     ^~~~~~
x86_64-linux-gnu-gcc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -fno-builtin  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libmath-cephes-perl-0.5305=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -DVERSION=\"0.5305\" -DXS_VERSION=\"0.5305\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE"   asin.c
airy.c: In function ‘airy’:
airy.c:838:5: warning: old-style function definition [-Wold-style-definition]
  838 | int airy( x, ai, aip, bi, bip )
      |     ^~~~
make[2]: *** [Makefile:529: acosh.o] Error 1
make[2]: *** Waiting for unfinished jobs....
arcdot.c: In function ‘arcdot’:
arcdot.c:72:8: warning: old-style function definition [-Wold-style-definition]
   72 | double arcdot(p,q)
      |        ^~~~~~
chmod 644 "Cephes.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Cephes.bs blib/arch/auto/Math/Cephes/Cephes.bs 644
cp lib/Math/Cephes/Fraction.pm blib/lib/Math/Cephes/Fraction.pm
cp lib/Math/Cephes/Polynomial.pm blib/lib/Math/Cephes/Polynomial.pm
cp lib/Math/Cephes/Complex.pm blib/lib/Math/Cephes/Complex.pm
cp lib/Math/Cephes.pm blib/lib/Math/Cephes.pm
cp lib/Math/Cephes.pod blib/lib/Math/Cephes.pod
cp lib/Math/Cephes/Matrix.pm blib/lib/Math/Cephes/Matrix.pm
asin.c: In function ‘md_asin’:
asin.c:255:8: warning: old-style function definition [-Wold-style-definition]
  255 | double md_asin(x)
      |        ^~~~~~~
asin.c:274:9: error: too many arguments to function ‘mtherr’; expected 0, have 2
  274 |         mtherr( "md_asin", DOMAIN );
      |         ^~~~~~  ~~~~~~~~~
In file included from asin.c:91:
mconf.h:137:5: note: declared here
  137 | int mtherr();
      |     ^~~~~~
asin.c: In function ‘md_acos’:
asin.c:306:8: warning: old-style function definition [-Wold-style-definition]
  306 | double md_acos(x)
      |        ^~~~~~~
asin.c:313:9: error: too many arguments to function ‘mtherr’; expected 0, have 2
  313 |         mtherr( "md_acos", DOMAIN );
      |         ^~~~~~  ~~~~~~~~~
mconf.h:137:5: note: declared here
  137 | int mtherr();
      |     ^~~~~~
make[2]: *** [Makefile:529: asin.o] Error 1
make[2]: Leaving directory '/build/reproducible-path/libmath-cephes-perl-0.5305/libmd'
make[1]: *** [Makefile:1128: /build/reproducible-path/libmath-cephes-perl-0.5305/libmd/libmd.a] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/build/reproducible-path/libmath-cephes-perl-0.5305'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the pkg-perl-maintainers mailing list