Skip to content
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

Can not compile using LLVM 18 due to old version of bindgen #11

Open
varadiz opened this issue Jun 18, 2024 · 1 comment
Open

Can not compile using LLVM 18 due to old version of bindgen #11

varadiz opened this issue Jun 18, 2024 · 1 comment

Comments

@varadiz
Copy link

varadiz commented Jun 18, 2024

Compile error

I get the following error on build

Compiling ta-lib-wrapper v0.2.0
error: failed to run custom build command for `ta-lib-wrapper v0.2.0`

Caused by:
  process didn't exit successfully: `/[masked]/target/debug/build/ta-lib-wrapper-f988d2d81e18d3e8/build-script-build` (exit status: 101)
  --- stdout
  cargo:rustc-link-lib=ta_lib

  --- stderr
  thread 'main' panicked at /[masked]/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.51.1/src/ir/context.rs:891:9:
  "__mbstate_t_union_(unnamed_at_/usr/include/x86_64-linux-gnu/bits/types/__mbstate_t_h_16_3)" is not a valid Ident
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I am on Ubuntu, Here is some extra info:

rustc --version
$ rustc 1.78.0

llvm-config  --version
$ 18.1.3

Research

I found these discussions useful:

rust-lang/rust-bindgen#2700

https://stackoverflow.com/questions/76443280/rust-bindgen-causes-a-is-not-a-valid-ident-error-on-build

rust-lang/rust-bindgen#2312

I seems to be an issue with newer versions of llvm and older versions of bindgen.
It appears that latest vesion of bindgen works.

@varadiz
Copy link
Author

varadiz commented Jun 18, 2024

Seems similar to this PR
#7

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

1 participant