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

Rust bindings compilation failure #444

Open
jtcoolen opened this issue Jan 10, 2024 · 0 comments
Open

Rust bindings compilation failure #444

jtcoolen opened this issue Jan 10, 2024 · 0 comments

Comments

@jtcoolen
Copy link

jtcoolen commented Jan 10, 2024

Hello,

I'm getting an error from bindgen after adding hacl as a dependency with cargo add [email protected]:

--- stderr
  mach_build: false
   >>> Building HACL C in /home/julien/.../target/debug/build/hacl-sys-483a2aaa0ce0c20f/out/c
   >>> CMAKE: cd "/home/julien/.../target/debug/build/hacl-sys-483a2aaa0ce0c20f/out/c" && "cmake" "-B" "build" "-G" "Ninja" "-D" "CMAKE_BUILD_TYPE=Release"
   >>> Installing HACL C into /home/julien/.../target/debug/build/hacl-sys-483a2aaa0ce0c20f/out/c/build/installed
  thread 'main' panicked at /home/julien/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.65.1/ir/context.rs:1994:26:
  Non floating-type complex? Type(_Complex _Float16, kind: Complex, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)), Type(_Float16, kind: Float16, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None))

Seems related to rust-lang/rust-bindgen#2500.

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

No branches or pull requests

1 participant