Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 945714 - [guru] www-apps/zola-0.19.2-r1 fails to compile: warning: onig_sys@69.8.1: regparse.c:588:5: error: initialization of int ()(void) from incompatible pointer type int ()(st_str_end_key , st_str_end_key ) [-Wincompatible-pointer-types]
Summary: [guru] www-apps/zola-0.19.2-r1 fails to compile: warning: onig_sys@69.8.1: re...
Status: CONFIRMED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: GURU project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-02 08:29 UTC by Agostino Sarubbo
Modified: 2024-12-02 09:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,790.06 KB, text/plain)
2024-12-02 08:29 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-12-02 08:29:10 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: www-apps/zola-0.19.2-r1 fails to compile.
Discovered on: amd64 (internal ref: guru_tinderbox)
System: GCC-15-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-15)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0003
Comment 1 Agostino Sarubbo gentoo-dev 2024-12-02 08:29:12 UTC
Created attachment 913043 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-12-02 08:29:12 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


  cargo:warning=ToolExecError: Command "x86_64-pc-linux-gnu-gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/var/tmp/portage/www-apps/zola-0.19.2-r1/work/zola-0.19.2/target/x86_64-unknown-linux-gnu/debug/build/onig_sys-a8faeb272ef18587/out" "-I" "oniguruma/src" "-O2" "-march=x86-64" "-pipe" "-pipe" "-frecord-gcc-switches" "-fno-diagnostics-color" "-fmessage-length=0" "-DHAVE_UNISTD_H=1" "-DHAVE_SYS_TYPES_H=1" "-DHAVE_SYS_TIME_H=1" "-o" "/var/tmp/portage/www-apps/zola-0.19.2-r1/work/zola-0.19.2/target/x86_64-unknown-linux-gnu/debug/build/onig_sys-a8faeb272ef18587/out/c77b18e714869709-regparse.o" "-c" "oniguruma/src/regparse.c" with args x86_64-pc-linux-gnu-gcc did not execute successfully (status code exit status: 1).cargo:warning=oniguruma/src/st.c:38:5: error: initialization of ‘int (*)(void)’ from incompatible pointer type ‘int (*)(long int,  long int)’ [-Wincompatible-pointer-types]
  cargo:warning=ToolExecError: Command "x86_64-pc-linux-gnu-gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/var/tmp/portage/www-apps/zola-0.19.2-r1/work/zola-0.19.2/target/x86_64-unknown-linux-gnu/debug/build/onig_sys-a8faeb272ef18587/out" "-I" "oniguruma/src" "-O2" "-march=x86-64" "-pipe" "-pipe" "-frecord-gcc-switches" "-fno-diagnostics-color" "-fmessage-length=0" "-DHAVE_UNISTD_H=1" "-DHAVE_SYS_TYPES_H=1" "-DHAVE_SYS_TIME_H=1" "-o" "/var/tmp/portage/www-apps/zola-0.19.2-r1/work/zola-0.19.2/target/x86_64-unknown-linux-gnu/debug/build/onig_sys-a8faeb272ef18587/out/c77b18e714869709-st.o" "-c" "oniguruma/src/st.c" with args x86_64-pc-linux-gnu-gcc did not execute successfully (status code exit status: 1).
warning: onig_sys@69.8.1: ToolExecError: Command "x86_64-pc-linux-gnu-gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/var/tmp/portage/www-apps/zola-0.19.2-r1/work/zola-0.19.2/target/x86_64-unknown-linux-gnu/debug/build/onig_sys-a8faeb272ef18587/out" "-I" "oniguruma/src" "-O2" "-march=x86-64" "-pipe" "-pipe" "-frecord-gcc-switches" "-fno-diagnostics-color" "-fmessage-length=0" "-DHAVE_UNISTD_H=1" "-DHAVE_SYS_TYPES_H=1" "-DHAVE_SYS_TIME_H=1" "-o" "/var/tmp/portage/www-apps/zola-0.19.2-r1/work/zola-0.19.2/target/x86_64-unknown-linux-gnu/debug/build/onig_sys-a8faeb272ef18587/out/c77b18e714869709-regparse.o" "-c" "oniguruma/src/regparse.c" with args x86_64-pc-linux-gnu-gcc did not execute successfully (status code exit status: 1).cargo:warning=oniguruma/src/st.c:38:5: error: initialization of ‘int (*)(void)’ from incompatible pointer type ‘int (*)(long int,  long int)’ [-Wincompatible-pointer-types]
warning: onig_sys@69.8.1: ToolExecError: Command "x86_64-pc-linux-gnu-gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/var/tmp/portage/www-apps/zola-0.19.2-r1/work/zola-0.19.2/target/x86_64-unknown-linux-gnu/debug/build/onig_sys-a8faeb272ef18587/out" "-I" "oniguruma/src" "-O2" "-march=x86-64" "-pipe" "-pipe" "-frecord-gcc-switches" "-fno-diagnostics-color" "-fmessage-length=0" "-DHAVE_UNISTD_H=1" "-DHAVE_SYS_TYPES_H=1" "-DHAVE_SYS_TIME_H=1" "-o" "/var/tmp/portage/www-apps/zola-0.19.2-r1/work/zola-0.19.2/target/x86_64-unknown-linux-gnu/debug/build/onig_sys-a8faeb272ef18587/out/c77b18e714869709-st.o" "-c" "oniguruma/src/st.c" with args x86_64-pc-linux-gnu-gcc did not execute successfully (status code exit status: 1).
warning: onig_sys@69.8.1: oniguruma/src/regparse.c:588:5: error: initialization of ‘int (*)(void)’ from incompatible pointer type ‘int (*)(st_str_end_key *, st_str_end_key *)’ [-Wincompatible-pointer-types]
Comment 3 Karl-Johan Karlsson 2024-12-02 09:44:41 UTC
This looks like the same problem as bug 943785.

onig_sys includes an ancient snapshot of oniguruma, which isn't compatible with GCC 15 yet.

To make onig_sys use the system library instead of its included snapshot, depend on dev-libs/oniguruma and compile with "export RUSTONIG_SYSTEM_LIBONIG=1".