[Pkg-rust-maintainers] Bug#886651: Bug#886651: cargo: Missing dependency on llvm to get llvm-config

Luca BRUNO lucab at debian.org
Mon Jan 8 14:37:57 UTC 2018


On Monday, January 8, 2018 3:26:07 PM UTC Sylvestre Ledru wrote:

> Trying to build https://github.com/marco-c/grcov/ using cargo
> $ cargo build
> 
> It is failing on:
> 
>    Compiling rust-crypto v0.2.36
> error: failed to run custom build command for `grcov v0.1.31
> (file:///home/sylvestre/dev/mozilla/grcov)` process didn't exit
> successfully:
> `/home/sylvestre/dev/mozilla/grcov/target/debug/build/grcov-c8b56ee863ef452
> a/build-script-build` (exit code: 101) --- stderr
> thread 'main' panicked at 'Error while running llvm-config: Error { repr: Os
> { code: 2, message: "No such file or directory" } }',
> /checkout/src/libcore/result.rs:906:4 note: Run with `RUST_BACKTRACE=1` for
> a backtrace.
> 
> Installing the llvm package which provides llvm-config was enough to fix my
> issue.

This come from here, though:
https://github.com/marco-c/grcov/blob/v0.1.31/build.rs#L6

So it should be a build-dep of your grcov package, not cargo itself.

Ciao, Luca

-- 
"If you build a wall, think of what you leave outside it" - Italo Calvino
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-rust-maintainers/attachments/20180108/0b861954/attachment-0002.sig>


More information about the Pkg-rust-maintainers mailing list