bazelbuild / rules_rust

Rust rules for Bazel
https://bazelbuild.github.io/rules_rust/
Apache License 2.0
644 stars 402 forks source link

rust_bindgen rule requires additional system libraries #535

Open djmarcin opened 3 years ago

djmarcin commented 3 years ago

After trying to use the rust_bindgen rule for the first time, it fails because it cannot find the libtinfo.so.5 library. This can be resolved by installing the libtinfo5 package on ubuntu. Should it be included in the default toolchain?

thread 'main' panicked at 'Unable to find libclang: "the `libclang` shared library at bazel-out/host/bin/_solib_k8/_U@bindgen_Uclang_Ulinux_S_S_Clibclang.so___Ubindgen_Uclang_Ulinux_Slib/libclang.so could not be opened: libtinfo.so.5: cannot open shared object file: No such file or directory"', external/rules_rust_bindgen__bindgen__0_55_1/src/lib.rs:1896:31
UebelAndre commented 3 years ago

I would say so, yeah

edit: Sorry, to be clear, I agree it should be in the toolchain but I wouldn't be super surprised if it wasn't.