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

Build Fails on x86_64 from bindgen dependency #43

Open
arjunr2 opened this issue Jul 3, 2024 · 1 comment
Open

Build Fails on x86_64 from bindgen dependency #43

arjunr2 opened this issue Jul 3, 2024 · 1 comment

Comments

@arjunr2
Copy link

arjunr2 commented Jul 3, 2024

Hi,

The build seems to fail on my machine, particularly due to bindgen dependency (0.69.4) for wamr-sys.

The error seems to be in host pointer sizes on the machine

  thread 'main' panicked at /home/arjun/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.69.4/lib.rs:899:13:
  assertion `left == right` failed: "x86_64-unknown-linux-gnu" "x86_64-unknown-linux-gnu"
    left: 4
   right: 8
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Looks like the pointer size for x86_64 was flagged as 4 bytes, not sure why

@AlixANNERAUD
Copy link
Contributor

AlixANNERAUD commented Jul 12, 2024

It seems that bindgen is unable to use the correct version of clang. In my case, it was the installation of the rust toolchain for the ESP32 (espup) that was causing an issue and was writing the LIBCLANG_PATH environment variable (which is used my libclang-sys). By removing ./export-esp.sh from the .bashrc or unset LIBCLANG_PATH, it works, however, this is not very convenient.

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