Skip to content

Compiling fails on GCC 15 for onig_sys (which is a dead repo) #173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
CoffeeVampir3 opened this issue May 15, 2025 · 2 comments
Closed

Compiling fails on GCC 15 for onig_sys (which is a dead repo) #173

CoffeeVampir3 opened this issue May 15, 2025 · 2 comments

Comments

@CoffeeVampir3
Copy link

CoffeeVampir3 commented May 15, 2025

Heya, this is sort of an indirect issue but is causing LLG to not compile with GCC 15 and there's no real support/progress on onig_sys, there's a commit but no traction on the repo:
See: rust-onig/rust-onig#195
And: rust-onig/rust-onig#194

The crux of the issue is that you're depending on essentially a dead repo. This will likely become more of an issue as more distros and systems adopt GCC15.

Cheers

Reference error:

====================[ Build | multi_user_inference | Debug-Nothing ]============
/home/blackroot/clion/bin/cmake/linux/x64/bin/cmake --build /home/blackroot/Desktop/Llama-Agents-MCP/cmake-build-debug-nothing --target multi_user_inference -j 18
[4/21] Performing build step for 'llguidance_ext'
FAILED: llguidance/src/llguidance_ext-stamp/llguidance_ext-build llguidance/source/target/release/libllguidance.a llguidance/source/target/release/llguidance.h /home/blackroot/Desktop/Llama-Agents-MCP/cmake-build-debug-nothing/llguidance/src/llguidance_ext-stamp/llguidance_ext-build /home/blackroot/Desktop/Llama-Agents-MCP/cmake-build-debug-nothing/llguidance/source/target/release/libllguidance.a /home/blackroot/Desktop/Llama-Agents-MCP/cmake-build-debug-nothing/llguidance/source/target/release/llguidance.h 
cd /home/blackroot/Desktop/Llama-Agents-MCP/cmake-build-debug-nothing/llguidance/source && cargo build --release && /home/blackroot/clion/bin/cmake/linux/x64/bin/cmake -E touch /home/blackroot/Desktop/Llama-Agents-MCP/cmake-build-debug-nothing/llguidance/src/llguidance_ext-stamp/llguidance_ext-build
   Compiling serde_derive v1.0.217
   Compiling zerovec-derive v0.10.3
   Compiling displaydoc v0.2.5
   Compiling zerocopy-derive v0.7.35
   Compiling futures-macro v0.3.31
   Compiling icu_provider_macros v1.5.0
   Compiling tokio-macros v2.5.0
   Compiling openssl-macros v0.1.1
   Compiling zerofrom-derive v0.1.5
   Compiling yoke-derive v0.7.5
   Compiling darling_macro v0.20.10
   Compiling ring v0.17.13
   Compiling onig_sys v69.8.1
   Compiling ref-cast-impl v1.0.23
   Compiling bytemuck_derive v1.8.1
   Compiling rustls v0.23.23
   Compiling monostate-impl v0.1.13
   Compiling thiserror-impl v1.0.69
   Compiling strum_macros v0.27.1
   Compiling regex v1.11.1
   Compiling thiserror-impl v2.0.12
   Compiling openssl v0.10.71
   Compiling darling v0.20.10
   Compiling clap_derive v4.5.28
   Compiling derive_builder_core v0.20.2
   Compiling ref-cast v1.0.23
   Compiling num-rational v0.4.2
   Compiling uuid-simd v0.8.0
   Compiling fancy-regex v0.14.0
   Compiling tokio v1.43.0
   Compiling futures-util v0.3.31
   Compiling zerocopy v0.7.35
   Compiling num v0.4.3
   Compiling fraction v0.15.3
   Compiling thiserror v1.0.69
   Compiling derive_builder_macro v0.20.2
   Compiling zerofrom v0.1.5
   Compiling thiserror v2.0.12
   Compiling yoke v0.7.5
   Compiling derive_builder v0.20.2
   Compiling ppv-lite86 v0.2.20
   Compiling zerovec v0.10.4
   Compiling strum v0.27.1
   Compiling clap v4.5.31
   Compiling rand_chacha v0.3.1
   Compiling rand v0.8.5
   Compiling rustls-webpki v0.102.8
   Compiling serde v1.0.217
   Compiling tinystr v0.7.6
   Compiling icu_collections v1.5.0
   Compiling icu_locid v1.5.0
   Compiling native-tls v0.2.13
   Compiling icu_provider v1.5.0
warning: [email protected]: oniguruma/src/regparse.c: In function 'onig_st_init_strend_table_with_size':
warning: [email protected]: 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]
warning: [email protected]:   588 |     str_end_cmp,
warning: [email protected]:       |     ^~~~~~~~~~~
warning: [email protected]: oniguruma/src/regparse.c:588:5: note: (near initialization for 'hashType.compare')
warning: [email protected]: oniguruma/src/regparse.c:550:1: note: 'str_end_cmp' declared here
warning: [email protected]:   550 | str_end_cmp(st_str_end_key* x, st_str_end_key* y)
warning: [email protected]:       | ^~~~~~~~~~~
warning: [email protected]: oniguruma/src/regparse.c:589:5: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(st_str_end_key *)' [-Wincompatible-pointer-types]
warning: [email protected]:   589 |     str_end_hash,
warning: [email protected]:       |     ^~~~~~~~~~~~
warning: [email protected]: oniguruma/src/regparse.c:589:5: note: (near initialization for 'hashType.hash')
warning: [email protected]: oniguruma/src/regparse.c:571:1: note: 'str_end_hash' declared here
warning: [email protected]:   571 | str_end_hash(st_str_end_key* x)
warning: [email protected]:       | ^~~~~~~~~~~~
warning: [email protected]: oniguruma/src/regparse.c: In function 'onig_st_init_callout_name_table_with_size':
warning: [email protected]: oniguruma/src/regparse.c:678:5: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(st_callout_name_key *, st_callout_name_key *)' [-Wincompatible-pointer-types]
warning: [email protected]:   678 |     callout_name_table_cmp,
warning: [email protected]:       |     ^~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/regparse.c:678:5: note: (near initialization for 'hashType.compare')
warning: [email protected]: oniguruma/src/regparse.c:637:1: note: 'callout_name_table_cmp' declared here
warning: [email protected]:   637 | callout_name_table_cmp(st_callout_name_key* x, st_callout_name_key* y)
warning: [email protected]:       | ^~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/regparse.c:679:5: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(st_callout_name_key *)' [-Wincompatible-pointer-types]
warning: [email protected]:   679 |     callout_name_table_hash,
warning: [email protected]:       |     ^~~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/regparse.c:679:5: note: (near initialization for 'hashType.hash')
warning: [email protected]: oniguruma/src/regparse.c:660:1: note: 'callout_name_table_hash' declared here
warning: [email protected]:   660 | callout_name_table_hash(st_callout_name_key* x)
warning: [email protected]:       | ^~~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/regparse.c: In function 'names_clear':
warning: [email protected]: oniguruma/src/regparse.c:804:24: error: passing argument 2 of 'onig_st_foreach' from incompatible pointer type [-Wincompatible-pointer-types]
warning: [email protected]:   804 |     onig_st_foreach(t, i_free_name_entry, 0);
warning: [email protected]:       |                        ^~~~~~~~~~~~~~~~~
warning: [email protected]:       |                        |
warning: [email protected]:       |                        int (*)(OnigUChar *, NameEntry *, void *) {aka int (*)(unsigned char *, NameEntry *, void *)}
warning: [email protected]: In file included from oniguruma/src/regparse.c:37:
warning: [email protected]: oniguruma/src/st.h:55:31: note: expected 'int (*)(void)' but argument is of type 'int (*)(OnigUChar *, NameEntry *, void *)' {aka 'int (*)(unsigned char *, NameEntry *, void *)'}
warning: [email protected]:    55 | int st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
warning: [email protected]:       |                               ^~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/st.h:35:18: note: in definition of macro '_'
warning: [email protected]:    35 | # define _(args) args
warning: [email protected]:       |                  ^~~~
warning: [email protected]: oniguruma/src/regparse.c:789:1: note: 'i_free_name_entry' declared here
warning: [email protected]:   789 | i_free_name_entry(UChar* key, NameEntry* e, void* arg ARG_UNUSED)
warning: [email protected]:       | ^~~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/regparse.c: In function 'onig_foreach_name':
warning: [email protected]: oniguruma/src/regparse.c:873:24: error: passing argument 2 of 'onig_st_foreach' from incompatible pointer type [-Wincompatible-pointer-types]
warning: [email protected]:   873 |     onig_st_foreach(t, i_names, (HashDataType )&narg);
warning: [email protected]:       |                        ^~~~~~~
warning: [email protected]:       |                        |
warning: [email protected]:       |                        int (*)(OnigUChar *, NameEntry *, INamesArg *) {aka int (*)(unsigned char *, NameEntry *, INamesArg *)}
warning: [email protected]: oniguruma/src/st.h:55:31: note: expected 'int (*)(void)' but argument is of type 'int (*)(OnigUChar *, NameEntry *, INamesArg *)' {aka 'int (*)(unsigned char *, NameEntry *, INamesArg *)'}
warning: [email protected]:    55 | int st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
warning: [email protected]:       |                               ^~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/st.h:35:18: note: in definition of macro '_'
warning: [email protected]:    35 | # define _(args) args
warning: [email protected]:       |                  ^~~~
warning: [email protected]: oniguruma/src/regparse.c:846:1: note: 'i_names' declared here
warning: [email protected]:   846 | i_names(UChar* key ARG_UNUSED, NameEntry* e, INamesArg* arg)
warning: [email protected]:       | ^~~~~~~
warning: [email protected]: oniguruma/src/regparse.c: In function 'onig_renumber_name_table':
warning: [email protected]: oniguruma/src/regparse.c:901:24: error: passing argument 2 of 'onig_st_foreach' from incompatible pointer type [-Wincompatible-pointer-types]
warning: [email protected]:   901 |     onig_st_foreach(t, i_renumber_name, (HashDataType )map);
warning: [email protected]:       |                        ^~~~~~~~~~~~~~~
warning: [email protected]:       |                        |
warning: [email protected]:       |                        int (*)(OnigUChar *, NameEntry *, GroupNumMap *) {aka int (*)(unsigned char *, NameEntry *, GroupNumMap *)}
warning: [email protected]: 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 *)'}
warning: [email protected]:    55 | int st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
warning: [email protected]:       |                               ^~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/st.h:35:18: note: in definition of macro '_'
warning: [email protected]:    35 | # define _(args) args
warning: [email protected]:       |                  ^~~~
warning: [email protected]: oniguruma/src/regparse.c:879:1: note: 'i_renumber_name' declared here
warning: [email protected]:   879 | i_renumber_name(UChar* key ARG_UNUSED, NameEntry* e, GroupNumMap* map)
warning: [email protected]:       | ^~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/regparse.c: In function 'callout_name_table_clear':
warning: [email protected]: oniguruma/src/regparse.c:1386:24: error: passing argument 2 of 'onig_st_foreach' from incompatible pointer type [-Wincompatible-pointer-types]
warning: [email protected]:  1386 |     onig_st_foreach(t, i_free_callout_name_entry, 0);
warning: [email protected]:       |                        ^~~~~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]:       |                        |
warning: [email protected]:       |                        int (*)(st_callout_name_key *, CalloutNameEntry *, void *)
warning: [email protected]: oniguruma/src/st.h:55:31: note: expected 'int (*)(void)' but argument is of type 'int (*)(st_callout_name_key *, CalloutNameEntry *, void *)'
warning: [email protected]:    55 | int st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
warning: [email protected]:       |                               ^~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/st.h:35:18: note: in definition of macro '_'
warning: [email protected]:    35 | # define _(args) args
warning: [email protected]:       |                  ^~~~
warning: [email protected]: oniguruma/src/regparse.c:1370:1: note: 'i_free_callout_name_entry' declared here
warning: [email protected]:  1370 | i_free_callout_name_entry(st_callout_name_key* key, CalloutNameEntry* e,
warning: [email protected]:       | ^~~~~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/regparse.c: In function 'setup_ext_callout_list_values':
warning: [email protected]: oniguruma/src/regparse.c:1884:56: error: passing argument 2 of 'onig_st_foreach' from incompatible pointer type [-Wincompatible-pointer-types]
warning: [email protected]:  1884 |     onig_st_foreach((CalloutTagTable *)ext->tag_table, i_callout_callout_list_set,
warning: [email protected]:       |                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]:       |                                                        |
warning: [email protected]:       |                                                        int (*)(OnigUChar *, CalloutTagVal,  void *) {aka int (*)(unsigned char *, long int,  void *)}
warning: [email protected]: 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 *)'}
warning: [email protected]:    55 | int st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
warning: [email protected]:       |                               ^~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/st.h:35:18: note: in definition of macro '_'
warning: [email protected]:    35 | # define _(args) args
warning: [email protected]:       |                  ^~~~
warning: [email protected]: oniguruma/src/regparse.c:1866:1: note: 'i_callout_callout_list_set' declared here
warning: [email protected]:  1866 | i_callout_callout_list_set(UChar* key, CalloutTagVal e, void* arg)
warning: [email protected]:       | ^~~~~~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/regparse.c: In function 'callout_tag_table_clear':
warning: [email protected]: oniguruma/src/regparse.c:1932:24: error: passing argument 2 of 'onig_st_foreach' from incompatible pointer type [-Wincompatible-pointer-types]
warning: [email protected]:  1932 |     onig_st_foreach(t, i_free_callout_tag_entry, 0);
warning: [email protected]:       |                        ^~~~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]:       |                        |
warning: [email protected]:       |                        int (*)(OnigUChar *, CalloutTagVal,  void *) {aka int (*)(unsigned char *, long int,  void *)}
warning: [email protected]: 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 *)'}
warning: [email protected]:    55 | int st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
warning: [email protected]:       |                               ^~~~~~~~~~~~~~~~
warning: [email protected]: oniguruma/src/st.h:35:18: note: in definition of macro '_'
warning: [email protected]:    35 | # define _(args) args
warning: [email protected]:       |                  ^~~~
warning: [email protected]: oniguruma/src/regparse.c:1922:1: note: 'i_free_callout_tag_entry' declared here
warning: [email protected]:  1922 | i_free_callout_tag_entry(UChar* key, CalloutTagVal e, void* arg ARG_UNUSED)
warning: [email protected]:       | ^~~~~~~~~~~~~~~~~~~~~~~~
error: failed to run custom build command for `onig_sys v69.8.1`

Caused by:
  process didn't exit successfully: `/home/blackroot/Desktop/Llama-Agents-MCP/cmake-build-debug-nothing/llguidance/source/target/release/build/onig_sys-d4e5b07ee5e6d1fd/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=RUSTONIG_DYNAMIC_LIBONIG
  cargo:rerun-if-env-changed=RUSTONIG_STATIC_LIBONIG
  cargo:rerun-if-env-changed=RUSTONIG_SYSTEM_LIBONIG
  OUT_DIR = Some(/home/blackroot/Desktop/Llama-Agents-MCP/cmake-build-debug-nothing/llguidance/source/target/release/build/onig_sys-a0409c56b40786a9/out)
  OPT_LEVEL = Some(3)
  TARGET = Some(x86_64-unknown-linux-gnu)
  HOST = Some(x86_64-unknown-linux-gnu)
  cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu
  CC_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu
  CC_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  RUSTC_WRAPPER = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some(true)
  CARGO_CFG_TARGET_FEATURE = Some(fxsr,sse,sse2,x87)
  cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
  CFLAGS_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
  CFLAGS_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  CARGO_ENCODED_RUSTFLAGS = Some()
  cargo:warning=oniguruma/src/regparse.c: In function 'onig_st_init_strend_table_with_size':
  cargo:warning=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]
  cargo:warning=  588 |     str_end_cmp,
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=oniguruma/src/regparse.c:588:5: note: (near initialization for 'hashType.compare')
  cargo:warning=oniguruma/src/regparse.c:550:1: note: 'str_end_cmp' declared here
  cargo:warning=  550 | str_end_cmp(st_str_end_key* x, st_str_end_key* y)
  cargo:warning=      | ^~~~~~~~~~~
  cargo:warning=oniguruma/src/regparse.c:589:5: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(st_str_end_key *)' [-Wincompatible-pointer-types]
  cargo:warning=  589 |     str_end_hash,
  cargo:warning=      |     ^~~~~~~~~~~~
  cargo:warning=oniguruma/src/regparse.c:589:5: note: (near initialization for 'hashType.hash')
  cargo:warning=oniguruma/src/regparse.c:571:1: note: 'str_end_hash' declared here
  cargo:warning=  571 | str_end_hash(st_str_end_key* x)
  cargo:warning=      | ^~~~~~~~~~~~
  cargo:warning=oniguruma/src/regparse.c: In function 'onig_st_init_callout_name_table_with_size':
  cargo:warning=oniguruma/src/regparse.c:678:5: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(st_callout_name_key *, st_callout_name_key *)' [-Wincompatible-pointer-types]
  cargo:warning=  678 |     callout_name_table_cmp,
  cargo:warning=      |     ^~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=oniguruma/src/regparse.c:678:5: note: (near initialization for 'hashType.compare')
  cargo:warning=oniguruma/src/regparse.c:637:1: note: 'callout_name_table_cmp' declared here
  cargo:warning=  637 | callout_name_table_cmp(st_callout_name_key* x, st_callout_name_key* y)
  cargo:warning=      | ^~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=oniguruma/src/regparse.c:679:5: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(st_callout_name_key *)' [-Wincompatible-pointer-types]
  cargo:warning=  679 |     callout_name_table_hash,
  cargo:warning=      |     ^~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=oniguruma/src/regparse.c:679:5: note: (near initialization for 'hashType.hash')
  cargo:warning=oniguruma/src/regparse.c:660:1: note: 'callout_name_table_hash' declared here
  cargo:warning=  660 | callout_name_table_hash(st_callout_name_key* x)
  cargo:warning=      | ^~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=oniguruma/src/regparse.c: In function 'names_clear':
  cargo:warning=oniguruma/src/regparse.c:804:24: error: passing argument 2 of 'onig_st_foreach' from incompatible pointer type [-Wincompatible-pointer-types]
  cargo:warning=  804 |     onig_st_foreach(t, i_free_name_entry, 0);
  cargo:warning=      |                        ^~~~~~~~~~~~~~~~~
  cargo:warning=      |                        |
  cargo:warning=      |                        int (*)(OnigUChar *, NameEntry *, void *) {aka int (*)(unsigned char *, NameEntry *, void *)}
  cargo:warning=In file included from oniguruma/src/regparse.c:37:
  cargo:warning=oniguruma/src/st.h:55:31: note: expected 'int (*)(void)' but argument is of type 'int (*)(OnigUChar *, NameEntry *, void *)' {aka 'int (*)(unsigned char *, NameEntry *, 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:789:1: note: 'i_free_name_entry' declared here
  cargo:warning=  789 | i_free_name_entry(UChar* key, NameEntry* e, void* arg ARG_UNUSED)
  cargo:warning=      | ^~~~~~~~~~~~~~~~~
  cargo:warning=oniguruma/src/regparse.c: In function 'onig_foreach_name':
  cargo:warning=oniguruma/src/regparse.c:873:24: error: passing argument 2 of 'onig_st_foreach' from incompatible pointer type [-Wincompatible-pointer-types]
  cargo:warning=  873 |     onig_st_foreach(t, i_names, (HashDataType )&narg);
  cargo:warning=      |                        ^~~~~~~
  cargo:warning=      |                        |
  cargo:warning=      |                        int (*)(OnigUChar *, NameEntry *, INamesArg *) {aka int (*)(unsigned char *, NameEntry *, INamesArg *)}
  cargo:warning=oniguruma/src/st.h:55:31: note: expected 'int (*)(void)' but argument is of type 'int (*)(OnigUChar *, NameEntry *, INamesArg *)' {aka 'int (*)(unsigned char *, NameEntry *, INamesArg *)'}
  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:846:1: note: 'i_names' declared here
  cargo:warning=  846 | i_names(UChar* key ARG_UNUSED, NameEntry* e, INamesArg* arg)
  cargo:warning=      | ^~~~~~~
  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 in cc-rs: Command LC_ALL="C" "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-I" "/home/blackroot/Desktop/Llama-Agents-MCP/cmake-build-debug-nothing/llguidance/source/target/release/build/onig_sys-a0409c56b40786a9/out" "-I" "oniguruma/src" "-DHAVE_UNISTD_H=1" "-DHAVE_SYS_TYPES_H=1" "-DHAVE_SYS_TIME_H=1" "-o" "/home/blackroot/Desktop/Llama-Agents-MCP/cmake-build-debug-nothing/llguidance/source/target/release/build/onig_sys-a0409c56b40786a9/out/a445302c6d3dcb51-regparse.o" "-c" "oniguruma/src/regparse.c" with args cc did not execute successfully (status code exit status: 1).


warning: build failed, waiting for other jobs to finish...
ninja: build stopped: subcommand failed.
@CoffeeVampir3 CoffeeVampir3 changed the title Compiling fails due to onig_sys on GCC15 (which is a dead repo) Compiling fails on GCC 15 for onig_sys (which is a dead repo) May 15, 2025
@mmoskal
Copy link
Member

mmoskal commented May 15, 2025

Does main work for you after #172 ? I guess I just need a release?

@mmoskal
Copy link
Member

mmoskal commented May 15, 2025

0.7.20 is cooking now, with MSRV 1.80 and this no-Onig thing. Re-open if needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants