Subject: argyll: ftbfs with GCC-15

From: Matthias Klose <[email-masked]>
Date: Mon, 17 Feb 2025 17:03:40 +0000

Package: src:argyll
Version: 3.1.0+repack-1.1
Severity: important
Tags: sid forky
User: [email-masked]
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/argyll_3.1.0+repack-1.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 -j8 clean
make[1]: Entering directory '/build/reproducible-path/argyll-3.1.0+repack'
jam -fJambase clean
zlib/Jamfile: No such file or directory
We're on a 64 bit host 
Argyll Jamtop has been read 
DESTDIR = '.', PREFIX = '', REFSUBDIR = 'ref' 
Using system TIFF library 
Using system JPEG library 
Using system PNG library 
Using system Z library 
Using system SSL library 
HOME =  /sbuild-nonexistent 
PWD =  
...found 2 target(s)...
...updating 1 target(s)...
Clean clean 
...updated 1 target(s)...
make[1]: Leaving directory '/build/reproducible-path/argyll-3.1.0+repack'
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
   debian/rules override_dh_auto_build
make[1]: Entering directory '/build/reproducible-path/argyll-3.1.0+repack'
find /build/reproducible-path/argyll-3.1.0+repack -name "*" | xargs chmod -R -x+X
chmod a+x /build/reproducible-path/argyll-3.1.0+repack/debian/rules
jam -q -fJambase -j8 -sPREFIX=/usr -sDESTDIR=/build/reproducible-path/argyll-3.1.0+repack/debian/tmp  -sREFSUBDIR=share/color/argyll/ref all
zlib/Jamfile: No such file or directory
We're on a 64 bit host 
Argyll Jamtop has been read 
DESTDIR = '/build/reproducible-path/argyll-3.1.0+repack/debian/tmp', PREFIX = '/usr', REFSUBDIR = 'share/color/argyll/ref' 
Using system TIFF library 
Using system JPEG library 
Using system PNG library 
Using system Z library 
Using system SSL library 
HOME =  /sbuild-nonexistent 
PWD =  
...patience...
...found 1084 target(s)...
...updating 424 target(s)...
GenFileNND1 compiledate.h 
Cc_ numlib/numsup.o 
Cc_ numlib/dnsq.o 
Cc_ numlib/powell.o 
Cc_ numlib/dhsx.o 
Cc_ numlib/varmet.o 
Cc_ numlib/ludecomp.o 
Cc_ numlib/svd.o 
Cc_ numlib/zbrent.o 
numlib/dnsq.c:18:18: error: ‘bool’ cannot be defined via ‘typedef’
   18 | typedef long int bool;
      |                  ^~~~
numlib/dnsq.c:18:18: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
numlib/dnsq.c:18:1: warning: useless type name in empty declaration
   18 | typedef long int bool;
      | ^~~~~~~

	cc -c -o numlib/dnsq.o -Wdate-time -D_FORTIFY_SOURCE=2 -g -DUNIX -D_THREAD_SAFE -pipe -fPIC -m64 -O2 -DARGYLLCMS -DALLINSTS -Inumlib -Ih -Iplot -I/usr/local/include numlib/dnsq.c

...failed Cc_ numlib/dnsq.o ...
...failed updating 1 target(s)...
...updated 8 target(s)...
make[1]: *** [debian/rules:24: override_dh_auto_build] Error 1
make[1]: Leaving directory '/build/reproducible-path/argyll-3.1.0+repack'
make: *** [debian/rules:19: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2