rust-math / intel-mkl-src

Redistribute Intel MKL as a crate
Other
81 stars 22 forks source link

Test pkg-config on container #15

Closed termoshtt closed 5 years ago

termoshtt commented 5 years ago

Testing #12 on a mkl-installed container

dockerhub: https://cloud.docker.com/u/rustmath/repository/docker/rustmath/mkl

termoshtt commented 5 years ago
     Running `/__w/1/s/target/debug/deps/link-318d10df940f251f`
/__w/1/s/target/debug/deps/link-318d10df940f251f: error while loading shared libraries: libmkl_intel_lp64.so: cannot open shared object file: No such file or directory
error: test failed, to rerun pass '--test link'

we need some link option

termoshtt commented 5 years ago

Without pkg-config, the downloaded shared libraries are found by the executable due to cargo run sets LD_LIBRARY_PATH https://github.com/rust-lang/cargo/issues/4879

termoshtt commented 5 years ago

RPATH could be a better way to set default search path for executable, but it will be hard because cargo does not support RPATH. I will add an explanation for it, and merge this PR.