Bug#1097891: sketch: ftbfs with GCC-15

Matthias Klose doko at debian.org
Mon Feb 17 17:53:45 GMT 2025


Package: src:sketch
Version: 1:0.3.7-12
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/sketch_0.3.7-12_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

[...]
rm -rf Debug Release
cd Doc; rm -f \
                sketch.ps sketch.dvi \
	sketch.aux sketch.cp sketch.cps sketch.fn sketch.ky \
	sketch.log sketch.op sketch.ops sketch.pg \
	sketch.sx sketch.sxs sketch.tmp sketch.toc sketch.tp \
	sketch.vr texput.log ex*\.pdf ex*\.eps ex*\.tex ex*\.txt \
	\#*\# *~
cd Data; rm -f *~ \#*\#
make[2]: Leaving directory '/build/reproducible-path/sketch-0.3.7'
make[1]: Leaving directory '/build/reproducible-path/sketch-0.3.7'
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/build/reproducible-path/sketch-0.3.7'
perl makever.pl
not generating web page
make[1]: Leaving directory '/build/reproducible-path/sketch-0.3.7'
   debian/rules override_dh_auto_build
make[1]: Entering directory '/build/reproducible-path/sketch-0.3.7'
dh_auto_build
	make -j8
make[2]: Entering directory '/build/reproducible-path/sketch-0.3.7'
gcc -O1 -g -Wall -Wall -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2  -c -o bsp.o bsp.c
gcc -O1 -g -Wall -Wall -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2  -c -o cmdline.o cmdline.c
gcc -O1 -g -Wall -Wall -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2  -c -o emit.o emit.c
gcc -O1 -g -Wall -Wall -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2  -c -o error.o error.c
gcc -O1 -g -Wall -Wall -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2  -c -o expr.o expr.c
gcc -O1 -g -Wall -Wall -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2  -c -o geometry.o geometry.c
gcc -O1 -g -Wall -Wall -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2  -c -o geomio.o geomio.c
gcc -O1 -g -Wall -Wall -g -O2 -Wdate-time -D_FORTIFY_SOURCE=2  -c -o global.o global.c
In file included from cmdline.c:24:
memutil.h:28:13: error: ‘bool’ cannot be defined via ‘typedef’
   28 | typedef int bool;
      |             ^~~~
memutil.h:28:13: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
memutil.h:28:1: warning: useless type name in empty declaration
   28 | typedef int bool;
      | ^~~~~~~
make[2]: *** [<builtin>: cmdline.o] Error 1
make[2]: *** Waiting for unfinished jobs....
expr.c: In function ‘to_integer’:
expr.c:374:12: warning: variable ‘frac_part’ set but not used [-Wunused-but-set-variable]
  374 |     double frac_part, int_part;
      |            ^~~~~~~~~
In file included from geometry.c:27:
memutil.h:28:13: error: ‘bool’ cannot be defined via ‘typedef’
   28 | typedef int bool;
      |             ^~~~
memutil.h:28:13: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
memutil.h:28:1: warning: useless type name in empty declaration
   28 | typedef int bool;
      | ^~~~~~~
geometry.c:338:44: warning: argument 2 of type ‘FLOAT[3]’ {aka ‘double[3]’} with mismatched bound [-Warray-parameter=]
  338 | void fold_max_pt_2d(POINT_2D max, POINT_3D new_pt)
      |                                   ~~~~~~~~~^~~~~~
In file included from geometry.c:25:
geometry.h:164:44: note: previously declared as ‘FLOAT[2]’ {aka ‘double[2]’}
  164 | void fold_max_pt_2d(POINT_2D max, POINT_2D new_pt);
      |                                   ~~~~~~~~~^~~~~~
make[2]: *** [<builtin>: geometry.o] Error 1
make[2]: Leaving directory '/build/reproducible-path/sketch-0.3.7'
dh_auto_build: error: make -j8 returned exit code 2
make[1]: *** [debian/rules:27: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/sketch-0.3.7'
make: *** [debian/rules:21: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the debian-science-maintainers mailing list