Closed
Description
Running tests for the tensorflow-sys
crate fails on nightly, even though it works on stable.
This is using the pre-built binary, so libtensorflow.so
is located in tensorflow-sys/target/libtensorflow-cpu-linux-x86_64-1.0.0/lib/libtensorflow.so
.
(~/tensorflow_rust.git/tensorflow-sys)
-> cargo +nightly test -vv
Fresh lazy_static v0.2.4
Fresh gcc v0.3.43
Fresh openssl-probe v0.1.0
Fresh regex-syntax v0.3.9
Fresh libc v0.2.21
Fresh filetime v0.1.10
Fresh memchr v0.1.11
Fresh aho-corasick v0.5.3
Fresh utf8-ranges v0.1.3
Fresh winapi-build v0.1.1
Fresh pkg-config v0.3.9
Fresh winapi v0.2.8
Fresh kernel32-sys v0.2.2
Fresh thread-id v2.0.0
Fresh thread_local v0.2.7
Fresh regex v0.1.80
Fresh xattr v0.1.11
Fresh tar v0.4.10
Fresh miniz-sys v0.1.9
Fresh flate2 v0.2.17
Fresh libz-sys v1.0.13
Fresh openssl-sys v0.9.8
Fresh curl-sys v0.3.10
Fresh semver-parser v0.6.2
Fresh semver v0.5.1
Fresh curl v0.4.6
Fresh tensorflow-sys v0.7.0 (file:///home/nbigaouette/tensorflow_rust.git/tensorflow-sys)
Finished dev [unoptimized + debuginfo] target(s) in 0.1 secs
Running `/home/nbigaouette/tensorflow_rust.git/target/debug/deps/lib-b2190e536168b674`
/home/nbigaouette/tensorflow_rust.git/target/debug/deps/lib-b2190e536168b674: error while loading shared libraries: libtensorflow.so: cannot open shared object file: No such file or directory
error: test failed
Running the test passes using the stable 1.16:
(~/tensorflow_rust.git/tensorflow-sys)
-> cargo test -vv
Fresh gcc v0.3.43
Fresh regex-syntax v0.3.9
Fresh winapi-build v0.1.1
Fresh utf8-ranges v0.1.3
Fresh pkg-config v0.3.9
Fresh libc v0.2.21
Fresh openssl-probe v0.1.0
Fresh xattr v0.1.11
Fresh miniz-sys v0.1.9
Fresh filetime v0.1.10
Fresh memchr v0.1.11
Fresh tar v0.4.10
Fresh libz-sys v1.0.13
Fresh flate2 v0.2.17
Fresh winapi v0.2.8
Fresh lazy_static v0.2.4
Fresh kernel32-sys v0.2.2
Fresh aho-corasick v0.5.3
Fresh thread-id v2.0.0
Fresh openssl-sys v0.9.8
Fresh thread_local v0.2.7
Fresh regex v0.1.80
Fresh semver-parser v0.6.2
Fresh semver v0.5.1
Fresh curl-sys v0.3.10
Fresh curl v0.4.6
Fresh tensorflow-sys v0.7.0 (file:///home/nbigaouette/tensorflow_rust.git/tensorflow-sys)
Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
Running `/home/nbigaouette/tensorflow_rust.git/target/debug/deps/lib-b2190e536168b674`
running 1 test
test linkage ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured
Running `/home/nbigaouette/tensorflow_rust.git/target/debug/deps/tensorflow_sys-dde201bfdb2eb731`
running 4 tests
test bindgen_test_layout_TF_Buffer ... ok
test bindgen_test_layout_TF_AttrMetadata ... ok
test bindgen_test_layout_TF_Output ... ok
test bindgen_test_layout_TF_Input ... ok
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured
Doc-tests tensorflow-sys
Running `rustdoc --test /home/nbigaouette/tensorflow_rust.git/tensorflow-sys/src/lib.rs --crate-name tensorflow_sys -L dependency=/home/nbigaouette/tensorflow_rust.git/target/
debug/deps -L native=/home/nbigaouette/tensorflow_rust.git/target/debug/build/miniz-sys-18005000ddedadf4/out -L native=/home/nbigaouette/tensorflow_rust.git/tensorflow-sys/target/l
ibtensorflow-cpu-linux-x86_64-1.0.0/lib -L native=/usr/lib --extern libc=/home/nbigaouette/tensorflow_rust.git/target/debug/deps/liblibc-5dc7b85e748840b4.rlib --extern tensorflow_sys=/home/nbigaou
ette/tensorflow_rust.git/target/debug/deps/libtensorflow_sys-abb7df69fd313205.rlib`
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
Could this be related to rust-lang/cargo#2478 ? In that case using cargo:rustc-link-search=native={}
instead of cargo:rustc-link-search={}
should fix this. Unfortunately, it doesn't.
I'm not sure how to fix this...
This is on master (8bd62df).
Metadata
Metadata
Assignees
Labels
No labels