[Pkg-rust-maintainers] Bug#1097827: rust-bat: ftbfs with GCC-15

Matthias Klose doko at debian.org
Mon Feb 17 17:51:39 GMT 2025


Package: src:rust-bat
Version: 0.24.0-2
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/rust-bat_0.24.0-2_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: In function ‘strhash’:
  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: 1
  cargo:warning=ToolExecError: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-I" "/build/reproducible-path/rust-bat-0.24.0/target/x86_64-unknown-linux-gnu/debug/build/onig_sys-a96c511319037612/out" "-I" "oniguruma/src" "-g" "-O2" "-Werror=implicit-function-declaration" "-ffile-prefix-map=/build/reproducible-path/rust-bat-0.24.0=." "-fstack-protector-strong" "-fstack-clash-protection" "-Wformat" "-Werror=format-security" "-fcf-protection" "-DHAVE_UNISTD_H=1" "-DHAVE_SYS_TYPES_H=1" "-DHAVE_SYS_TIME_H=1" "-o" "/build/reproducible-path/rust-bat-0.24.0/target/x86_64-unknown-linux-gnu/debug/build/onig_sys-a96c511319037612/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
  exit status: 0
  exit status: 0
  exit status: 0

  --- stderr


  error occurred: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-I" "/build/reproducible-path/rust-bat-0.24.0/target/x86_64-unknown-linux-gnu/debug/build/onig_sys-a96c511319037612/out" "-I" "oniguruma/src" "-g" "-O2" "-Werror=implicit-function-declaration" "-ffile-prefix-map=/build/reproducible-path/rust-bat-0.24.0=." "-fstack-protector-strong" "-fstack-clash-protection" "-Wformat" "-Werror=format-security" "-fcf-protection" "-DHAVE_UNISTD_H=1" "-DHAVE_SYS_TYPES_H=1" "-DHAVE_SYS_TIME_H=1" "-o" "/build/reproducible-path/rust-bat-0.24.0/target/x86_64-unknown-linux-gnu/debug/build/onig_sys-a96c511319037612/out/c77b18e714869709-st.o" "-c" "oniguruma/src/st.c" with args cc did not execute successfully (status code exit status: 1).


dh_auto_test: error: /usr/share/cargo/bin/cargo build returned exit code 101
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-rust-maintainers mailing list