#1096709 git-delta: ftbfs with GCC-15

#1096709#5
Date:
2025-02-17 17:15:53 UTC
From:
To:
[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/git-delta_0.18.2-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

[...]
  cargo:warning=oniguruma/src/st.c:538:1: warning: old-style function definition [-Wold-style-definition]
  cargo:warning=  538 | strhash(string)
  cargo:warning=      | ^~~~~~~
  cargo:warning=oniguruma/src/st.c: In function ‘numcmp’:
  cargo:warning=oniguruma/src/st.c:577:1: warning: old-style function definition [-Wold-style-definition]
  cargo:warning=  577 | numcmp(x, y)
  cargo:warning=      | ^~~~~~
  cargo:warning=oniguruma/src/st.c: In function ‘numhash’:
  cargo:warning=oniguruma/src/st.c:584:1: warning: old-style function definition [-Wold-style-definition]
  cargo:warning=  584 | numhash(n)
  cargo:warning=      | ^~~~~~~

  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 1
  cargo:warning=ToolExecError: Command "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/build/reproducible-path/git-delta-0.18.2/target/x86_64-unknown-linux-gnu/release/build/onig_sys-c58d56f6a6db3b40/out" "-I" "oniguruma/src" "-g" "-Werror=implicit-function-declaration" "-ffile-prefix-map=/build/reproducible-path/git-delta-0.18.2=." "-fstack-protector-strong" "-fstack-clash-protection" "-Wformat" "-Werror=format-security" "-fcf-protection" "-Wall" "-pedantic" "-DHAVE_UNISTD_H=1" "-DHAVE_SYS_TYPES_H=1" "-DHAVE_SYS_TIME_H=1" "-o" "/build/reproducible-path/git-delta-0.18.2/target/x86_64-unknown-linux-gnu/release/build/onig_sys-c58d56f6a6db3b40/out/c77b18e714869709-st.o" "-c" "oniguruma/src/st.c" with args cc did not execute successfully (status code exit status: 1).
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0
  exit status: 0