forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 426
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
rustavailable
error is not helpful when clang isn't installed
#960
Labels
• kbuild
Related to building the kernel, `make`, `Kbuild`, `Kconfig` options...
Comments
wedsonaf
changed the title
Feb 10, 2023
rustavailable
error in not helpful when clang isn't installrustavailable
error is not helpful when clang isn't installed
https://lore.kernel.org/rust-for-linux/20230109204520.539080-3-ojeda@kernel.org/ should fix that (the patch series will have a v2) |
ojeda
added
• kbuild
Related to building the kernel, `make`, `Kbuild`, `Kconfig` options...
and removed
• bug
Related to runtime bugs, panics, warnings...
labels
Feb 17, 2023
This is #934, so closing too. |
For reference, without Clang installed, this now gives: ***
*** Running 'bindgen' to check the libclang version (used by the Rust
*** bindings generator) failed with code 101. This may be caused by
*** a failure to locate libclang. See output and docs below for details:
***
thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['libclang.so', 'libclang-*.so', 'libclang.so.*', 'libclang-*.so.*'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.56.0/src/lib.rs:1922:31
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
***
***
*** Please see Documentation/rust/quick-start.rst for details
*** on how to set up the Rust support.
*** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I ran
make LLVM=1 rustavailable
on a new system and got a hepful (as expected) message complaining about by myrustc
version, but after fixing that, it failed as follows:The problem turned out to be that I didn't have a
clang
installed. After installing it, the message became helpful again (having to do with missing source code forcore
).The text was updated successfully, but these errors were encountered: