You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the failing command directly doesn't help, but (after taking a closer look at the error message) I realized that Rust doesn't know whether to use the std crate from it's own (nightly) installation (/home/alexander/.local/share/multirust/toolchains/nightly/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-18402db3.so), or the one globally installed on the system (/usr/lib/x86_64-linux-gnu/libstd-35c36e89.so). This is because cargo tells it to look for libraries in /lib/x86_64-linux-gnu (which in turn is a symlink to /usr/lib/x86_64-linux-gnu), so that it may find the required libclang.so.1.
This problem can be fixed by adding the native kind specifier to -L /lib/x86_64-linux-gnu (i.e.: -L native=/lib/x86_64-linux-gnu).
The text was updated successfully, but these errors were encountered:
Thanks for the report! This is likely caused by some dependencies' build script not indicating that native= should be prepended on the search path for the system directory. Once you take care of that though it should be good to go!
native={} instead of {} breaks finding libclang on OS X when running cargo run in rust-bindgen. Can anyone explain in a clear way what's the difference between the two? I couldn't find it documented anywhere.
I tried to compile a development version of
rust-bindgen
, when it reported a build failure:Running the failing command directly doesn't help, but (after taking a closer look at the error message) I realized that Rust doesn't know whether to use the
std
crate from it's own (nightly) installation (/home/alexander/.local/share/multirust/toolchains/nightly/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-18402db3.so), or the one globally installed on the system (/usr/lib/x86_64-linux-gnu/libstd-35c36e89.so). This is becausecargo
tells it to look for libraries in/lib/x86_64-linux-gnu
(which in turn is a symlink to/usr/lib/x86_64-linux-gnu
), so that it may find the requiredlibclang.so.1
.This problem can be fixed by adding the
native
kind specifier to-L /lib/x86_64-linux-gnu
(i.e.:-L native=/lib/x86_64-linux-gnu
).The text was updated successfully, but these errors were encountered: