bazelbuild / bazelbuild/rules_rust

rust_bindgen rule requires additional system libraries

Open
#535 1 comment 0 reactions 0 assignees View on GitHub
bindgen bug needs-triage
Dominant language
Starlark
Stars
843
Forks
651
Avg merge
2d 18h
Merged PRs (30d)
15

Description

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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.