Skip to content

loopdev-3 does not build staticly #90

Description

@richardstephens

When building statically, loopdev-3 fails to build because bindgen cannot link libclang dynamically.

26.42 error: failed to run custom build command for `loopdev-3 v0.5.3`
26.42 
26.42 Caused by:
26.42   process didn't exit successfully: `/build/gallium/target/debug/build/loopdev-3-bbfda59809013abc/build-script-build` (exit status: 101)
26.42   --- stderr
26.42 
26.42   thread 'main' (4965) panicked at /usr/local/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bindgen-0.72.1/lib.rs:616:27:
26.42   Unable to find libclang: "the `libclang` shared library at /usr/lib/llvm21/lib/libclang.so.21.1.2 could not be opened: Dynamic loading not supported"
26.42   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

It seems the most popular solution is to implement a command to generate bindings.rs and check in the generated copy. This also has the added benefit of providing a minor build speedup.

I am happy to open a PR with this if this solution is acceptable, or discuss alternatives.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status
In Progress (long term)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions