Closed
Description
Sometimes linking against 'rlib' ones fails. Latest repro case is:
git clone https://github.com/alexcrichton/rust-compress
cd rust-compress
rustc lib.rs
rustdoc -L. --test lib.rs
Last command output:
running 6 tests
error: could not find dynamic library for: `compress`
error: aborting due to previous error
task 'dc_0' failed at '~Any', /mnt/code/other/rust/src/libsyntax/diagnostic.rs:88
test dc_0 ... FAILED
error: could not find dynamic library for: `compress`
error: aborting due to previous error
task 'bwt_0' failed at '~Any', /mnt/code/other/rust/src/libsyntax/diagnostic.rs:88
test bwt_0 ... FAILED
error: could not find dynamic library for: `compress`
error: aborting due to previous error
task 'entropy::ari_0' failed at '~Any', /mnt/code/other/rust/src/libsyntax/diagnostic.rs:88
test entropy::ari_0 ... FAILED
error: could not find dynamic library for: `compress`
error: aborting due to previous error
task 'flate_0' failed at '~Any', /mnt/code/other/rust/src/libsyntax/diagnostic.rs:88
test flate_0 ... FAILED
error: could not find dynamic library for: `compress`
error: aborting due to previous error
task 'lz4_0' failed at '~Any', /mnt/code/other/rust/src/libsyntax/diagnostic.rs:88
test lz4_0 ... FAILED
error: could not find dynamic library for: `compress`
error: aborting due to previous error
task 'zlib_0' failed at '~Any', /mnt/code/other/rust/src/libsyntax/diagnostic.rs:88
test zlib_0 ... FAILED
failures:
bwt_0
dc_0
entropy::ari_0
flate_0
lz4_0
zlib_0
test result: FAILED. 0 passed; 6 failed; 0 ignored; 0 measured
Changing the crate_type
from 'rlib' to 'dylib' solves it.
Environment:
rustc 0.10-pre (ed885e3 2014-02-05 03:16:35 -0800)
host: x86_64-unknown-linux-gnu
Metadata
Metadata
Assignees
Labels
No labels