rules_rust icon indicating copy to clipboard operation
rules_rust copied to clipboard

rust_bindgen rule requires additional system libraries

Open djmarcin opened this issue 4 years ago • 1 comments

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

djmarcin avatar Dec 15 '20 22:12 djmarcin

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.

UebelAndre avatar Dec 15 '20 22:12 UebelAndre