ndarray-vision
ndarray-vision copied to clipboard
Error: linking with `link.exe` failed: exit code: 1120
Hi ,
I copy & paste the Example code provided in here and then did cargo run
.
Found Following Error error: linking with link.exe failed: exit code: 1120
MY Cargo.toml
Error Screen Shot
Here is the complete error Log nd-array-vision-error.txt
Rust Version - rustc 1.57.0 (f1edd0429 2021-11-29) Cargo Version - cargo 1.57.0 (b2e52d7ca 2021-10-21) Operating System -Windows, version 10.0.19042 X64
I would greatly appreciate your assistance if I am missing something.
So it looks like you need to select a blas backend for ndarray-linalg
(or disable the transform feature which is the only module that pulls it in).
You should be able to do this (provided I'm correct about cargo feature resolution by adding one of the following features to ndarray-vision: ndarray-linalg/netlib
, ndarray-linalg/openblas
, ndarray-linalg/intel-mkl
. You can also add -static
or -system
as a suffix to any of those options if you want to statically link or have a system version installed already.
I think before I had intelmkl as default but it caused issue for some users on different operating systems - though maybe there's some benefit to adding them as top level features for ndarray-vision and documenting more (I'll do it or a PR would be appreciated :grin: )
Definitely I will Raise a PR.
Hi I am testing your Suggestion , But Faceing This new Error
Complete log is here nd-array-vision-error.txt
this is the PR I submited.
here is the code base for testing the PR
my Cargo.toml
[dependencies]
ndarray = "0.15.4"
ndarray-vision = { git = "https://github.com/RahulDas-dev/ndarray-vision", branch = "master", features=["intel-mkl"] }
Ah if you look at the ndarray-vision Cargo.toml there's this part in dev dependencies for the same Ok error, it seems anyhow is part of the public API and had some sort of breaking change:
# it is a dependency of intel-mkl-tool, we pin it to temporary solve
# https://github.com/rust-math/intel-mkl-src/issues/68
anyhow = "<1.0.49"
Also I saw the PR, I'll try and find some time to have a look later today :smile:
Thanks ,
It worked I added anyhow = "<1.0.49"
in my Cargo.toml
for the time being ,
Here is the Latest code for testing.