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

Failure to compile with libclang 1.10 (default on ubuntu 20.04) #3169

Open
jalil-salame opened this issue Mar 6, 2025 · 0 comments
Open

Comments

@jalil-salame
Copy link

jalil-salame commented Mar 6, 2025

bindgen works with versions <0.71.0 on ubuntu 20.04 with libclang 1.10, but fails with the following error, when upgrading:

error: linking with `cc` failed: exit status: 1
  |
  = note: [args ommitted]
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: /usr/bin/ld: /home/ubuntu/Work/scone/target/release/deps/libbindgen-a3850525c18e938f.rlib(bindgen-a3850525c18e938f.bindgen.b6c67aa9f76b572c-cgu.09.rcgu.o): in function `bindgen::clang::Type::atomic_value_type':
          bindgen.b6c67aa9f76b572c-cgu.09:(.text._ZN7bindgen5clang4Type17atomic_value_type17hb225d9a718e76c71E+0x4d): undefined reference to `clang_Type_getValueType'
          collect2: error: ld returned 1 exit status

  = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link
  = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)

Proposed fix: Explicitly report lack of support for libclang <11 (20.04 is EOL in April so it shouldn't be a problem)

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