[Pkg-rust-maintainers] Bug#1097828: rust-comrak: ftbfs with GCC-15
Matthias Klose
doko at debian.org
Mon Feb 17 17:51:41 GMT 2025
Package: src:rust-comrak
Version: 0.29.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-comrak_0.29.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/regparse.c: In function ‘onig_renumber_name_table’:
cargo:warning=oniguruma/src/regparse.c:901:24: error: passing argument 2 of ‘onig_st_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
cargo:warning= 901 | onig_st_foreach(t, i_renumber_name, (HashDataType )map);
cargo:warning= | ^~~~~~~~~~~~~~~
cargo:warning= | |
cargo:warning= | int (*)(OnigUChar *, NameEntry *, GroupNumMap *) {aka int (*)(unsigned char *, NameEntry *, GroupNumMap *)}
cargo:warning=oniguruma/src/st.h:55:31: note: expected ‘int (*)(void)’ but argument is of type ‘int (*)(OnigUChar *, NameEntry *, GroupNumMap *)’ {aka ‘int (*)(unsigned char *, NameEntry *, GroupNumMap *)’}
cargo:warning= 55 | int st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
cargo:warning= | ^~~~~~~~~~~~~~~~
cargo:warning=oniguruma/src/st.h:35:18: note: in definition of macro ‘_’
cargo:warning= 35 | # define _(args) args
cargo:warning= | ^~~~
cargo:warning=oniguruma/src/regparse.c:879:1: note: ‘i_renumber_name’ declared here
cargo:warning= 879 | i_renumber_name(UChar* key ARG_UNUSED, NameEntry* e, GroupNumMap* map)
cargo:warning= | ^~~~~~~~~~~~~~~
cargo:warning=oniguruma/src/regparse.c: In function ‘callout_name_table_clear’:
cargo:warning=oniguruma/src/regparse.c:1386:24: error: passing argument 2 of ‘onig_st_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
cargo:warning= 1386 | onig_st_foreach(t, i_free_callout_name_entry, 0);
cargo:warning= | ^~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning= | |
cargo:warning= | int (*)(st_callout_name_key *, CalloutNameEntry *, void *)
cargo:warning=oniguruma/src/st.h:55:31: note: expected ‘int (*)(void)’ but argument is of type ‘int (*)(st_callout_name_key *, CalloutNameEntry *, void *)’
cargo:warning= 55 | int st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
cargo:warning= | ^~~~~~~~~~~~~~~~
cargo:warning=oniguruma/src/st.h:35:18: note: in definition of macro ‘_’
cargo:warning= 35 | # define _(args) args
cargo:warning= | ^~~~
cargo:warning=oniguruma/src/regparse.c:1370:1: note: ‘i_free_callout_name_entry’ declared here
cargo:warning= 1370 | i_free_callout_name_entry(st_callout_name_key* key, CalloutNameEntry* e,
cargo:warning= | ^~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=oniguruma/src/regparse.c: In function ‘setup_ext_callout_list_values’:
cargo:warning=oniguruma/src/regparse.c:1884:56: error: passing argument 2 of ‘onig_st_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
cargo:warning= 1884 | onig_st_foreach((CalloutTagTable *)ext->tag_table, i_callout_callout_list_set,
cargo:warning= | ^~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning= | |
cargo:warning= | int (*)(OnigUChar *, CalloutTagVal, void *) {aka int (*)(unsigned char *, long int, void *)}
cargo:warning=oniguruma/src/st.h:55:31: note: expected ‘int (*)(void)’ but argument is of type ‘int (*)(OnigUChar *, CalloutTagVal, void *)’ {aka ‘int (*)(unsigned char *, long int, void *)’}
cargo:warning= 55 | int st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
cargo:warning= | ^~~~~~~~~~~~~~~~
cargo:warning=oniguruma/src/st.h:35:18: note: in definition of macro ‘_’
cargo:warning= 35 | # define _(args) args
cargo:warning= | ^~~~
cargo:warning=oniguruma/src/regparse.c:1866:1: note: ‘i_callout_callout_list_set’ declared here
cargo:warning= 1866 | i_callout_callout_list_set(UChar* key, CalloutTagVal e, void* arg)
cargo:warning= | ^~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=oniguruma/src/regparse.c: In function ‘callout_tag_table_clear’:
cargo:warning=oniguruma/src/regparse.c:1932:24: error: passing argument 2 of ‘onig_st_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
cargo:warning= 1932 | onig_st_foreach(t, i_free_callout_tag_entry, 0);
cargo:warning= | ^~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning= | |
cargo:warning= | int (*)(OnigUChar *, CalloutTagVal, void *) {aka int (*)(unsigned char *, long int, void *)}
cargo:warning=oniguruma/src/st.h:55:31: note: expected ‘int (*)(void)’ but argument is of type ‘int (*)(OnigUChar *, CalloutTagVal, void *)’ {aka ‘int (*)(unsigned char *, long int, void *)’}
cargo:warning= 55 | int st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
cargo:warning= | ^~~~~~~~~~~~~~~~
cargo:warning=oniguruma/src/st.h:35:18: note: in definition of macro ‘_’
cargo:warning= 35 | # define _(args) args
cargo:warning= | ^~~~
cargo:warning=oniguruma/src/regparse.c:1922:1: note: ‘i_free_callout_tag_entry’ declared here
cargo:warning= 1922 | i_free_callout_tag_entry(UChar* key, CalloutTagVal e, void* arg ARG_UNUSED)
cargo:warning= | ^~~~~~~~~~~~~~~~~~~~~~~~
--- stderr
error occurred: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-I" "/build/reproducible-path/rust-comrak-0.29.0/target/x86_64-unknown-linux-gnu/debug/build/onig_sys-61d9fd24ec5e6a44/out" "-I" "oniguruma/src" "-g" "-O2" "-Werror=implicit-function-declaration" "-ffile-prefix-map=/build/reproducible-path/rust-comrak-0.29.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-comrak-0.29.0/target/x86_64-unknown-linux-gnu/debug/build/onig_sys-61d9fd24ec5e6a44/out/c77b18e714869709-regparse.o" "-c" "oniguruma/src/regparse.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:3: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
More information about the Pkg-rust-maintainers
mailing list