Bug#1096373: birdfont: ftbfs with GCC-15
Package: src:birdfont
Version: 2.33.3-1
Severity: important
Tags: sid forky
User: debian-gcc@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/birdfont_2.33.3-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
[...]
build/libbirdgems/fit_cubic.c:557:10: error: too many arguments to function ‘V2SubII’; expected 0, have 2
557 | V2 = V2SubII(d[center], d[center+1]);
| ^~~~~~~ ~~~~~~~~~
build/libbirdgems/fit_cubic.c:53:25: note: declared here
53 | static Vector2 V2SubII();
| ^~~~~~~
build/libbirdgems/fit_cubic.c:560:19: error: too many arguments to function ‘V2Normalize’; expected 0, have 1
560 | tHatCenter = *V2Normalize(&tHatCenter);
| ^~~~~~~~~~~ ~~~~~~~~~~~
build/libbirdgems/GraphicsGems.h:153:30: note: declared here
153 | extern Vector2 *V2Negate(), *V2Normalize(), *V2Scale(), *V2Add(), *V2Sub();
| ^~~~~~~~~~~
build/libbirdgems/fit_cubic.c: In function ‘ChordLengthParameterize’:
build/libbirdgems/fit_cubic.c:570:16: warning: old-style function definition [-Wold-style-definition]
570 | static double *ChordLengthParameterize(d, first, last)
| ^~~~~~~~~~~~~~~~~~~~~~~
build/libbirdgems/fit_cubic.c:592:33: error: too many arguments to function ‘V2DistanceBetween2Points’; expected 0, have 2
592 | V2DistanceBetween2Points(&d[i], &d[i-1]);
| ^~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~
build/libbirdgems/GraphicsGems.h:152:24: note: declared here
152 | extern double V2Dot(), V2DistanceBetween2Points();
| ^~~~~~~~~~~~~~~~~~~~~~~~
build/libbirdgems/fit_cubic.c: In function ‘ComputeMaxError’:
build/libbirdgems/fit_cubic.c:610:15: warning: old-style function definition [-Wold-style-definition]
610 | static double ComputeMaxError(d, first, last, bezCurve, u, splitPoint)
| ^~~~~~~~~~~~~~~
build/libbirdgems/fit_cubic.c:626:21: error: too many arguments to function ‘BezierII’; expected 0, have 3
626 | P = BezierII(3, bezCurve, u[i-first]);
| ^~~~~~~~ ~
build/libbirdgems/fit_cubic.c:461:15: note: declared here
461 | static Point2 BezierII(degree, V, t)
| ^~~~~~~~
build/libbirdgems/fit_cubic.c:627:21: error: too many arguments to function ‘V2SubII’; expected 0, have 2
627 | v = V2SubII(P, d[i]);
| ^~~~~~~ ~
build/libbirdgems/fit_cubic.c:53:25: note: declared here
53 | static Vector2 V2SubII();
| ^~~~~~~
build/libbirdgems/fit_cubic.c:628:24: error: too many arguments to function ‘V2SquaredLength’; expected 0, have 1
628 | dist = V2SquaredLength(&v);
| ^~~~~~~~~~~~~~~ ~~
build/libbirdgems/GraphicsGems.h:151:15: note: declared here
151 | extern double V2SquaredLength(), V2Length();
| ^~~~~~~~~~~~~~~
build/libbirdgems/fit_cubic.c: In function ‘V2AddII’:
build/libbirdgems/fit_cubic.c:636:16: warning: old-style function definition [-Wold-style-definition]
636 | static Vector2 V2AddII(a, b)
| ^~~~~~~
build/libbirdgems/fit_cubic.c: In function ‘V2ScaleIII’:
build/libbirdgems/fit_cubic.c:643:16: warning: old-style function definition [-Wold-style-definition]
643 | static Vector2 V2ScaleIII(v, s)
| ^~~~~~~~~~
build/libbirdgems/fit_cubic.c: In function ‘V2SubII’:
build/libbirdgems/fit_cubic.c:652:16: warning: old-style function definition [-Wold-style-definition]
652 | static Vector2 V2SubII(a, b)
| ^~~~~~~
mkdir -p build/bin
mkdir -p build/libbirdgems
[ -e "build/libbirdgems/placeholder" ] || touch "build/libbirdgems/placeholder"
cp libbirdgems/GraphicsGems.h build/libbirdgems
cp libbirdgems/fit_cubic.c build/libbirdgems
cp libbirdgems/GGVecLib.c build/libbirdgems
valac -C -H build/libbirdgems/birdgems.h --pkg posix --vapidir=./ --basedir=build/libbirdgems/ -X -Wdate-time -X -D_FORTIFY_SOURCE=2 -X -g -X -O2 -X -Werror=implicit-function-declaration -X -ffile-prefix-map=/build/reproducible-path/birdfont-2.33.3=. -X -fstack-protector-strong -X -fstack-clash-protection -X -Wformat -X -Werror=format-security -X -fcf-protection -X -Wl,-z,relro -X -Wl,-z,now --enable-experimental --library libbirdgems libbirdgems/*.vala
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/birdfont-2.33.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC $(pkg-config --cflags glib-2.0) -c build/libbirdgems/birdgems.c -o build/libbirdgems/birdgems.o
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/birdfont-2.33.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC $(pkg-config --cflags glib-2.0) -c build/libbirdgems/fit_cubic.c -o build/libbirdgems/fit_cubic.o
Error: sh -c "gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/birdfont-2.33.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC $(pkg-config --cflags glib-2.0) -c build/libbirdgems/fit_cubic.c -o build/libbirdgems/fit_cubic.o "
make[1]: *** [debian/rules:17: override_dh_auto_build] Error 1
make[1]: Leaving directory '/build/reproducible-path/birdfont-2.33.3'
make: *** [debian/rules:11: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: