blas
blas copied to clipboard
Linker errors on example program
Hello,
I'm using this crate and the example program fails due to linker issues.
Suggestions?
Sorry, I'm fairly new to Rust.
Hello! From the first look, a backend is missing. The choice of the backend is left up to the end user:
https://github.com/blas-lapack-rs/blas-lapack-rs.github.io/wiki
Does this resolve the issue?
After making the suggested changes:
https://github.com/acgetchell/rust-blas/commit/44fa07562a875a5abc1ecb1a0236bffef16adc30
I still get a pretty long stack trace:
https://gist.github.com/acgetchell/2369212198b92ecc23ec01d0ba5c22b1
ld: warning: object file (../libopenblas_neoversen2p-r0.3.20.a(lapacke_make_complex_double.o)) was built for newer macOS version (11.0) than being linked (10.8)
Looks an issue for macOS with ARM64.
Similar comment exists on OpenBLAS repo https://github.com/xianyi/OpenBLAS/issues/3032#issuecomment-743808777
@termoshtt, but then it should have already been fixed in the latest version of OpenBLAS, or has it not yet been released?
I am working for OpenBLAS 0.3.21 https://github.com/blas-lapack-rs/openblas-src/pull/92, it has been merged to master, but readying to publish.
Could you test the master branch using
[dependencies]
openblas-src = { git = "https://github.com/blas-lapack-rs/openblas-src" }
Thank you for taking care of this!
It failed on Linux and Windows also:
https://github.com/acgetchell/rust-blas/actions/runs/3643382516/jobs/6151553090
https://github.com/acgetchell/rust-blas/actions/runs/3661836469/jobs/6190437030
Thank you @termoshtt , the master branch fixed it for macOS and Linux:
https://github.com/acgetchell/rust-blas/actions/runs/3665391387/jobs/6196433574
https://github.com/acgetchell/rust-blas/actions/runs/3665391387/jobs/6196433524
There still seems to be a vcpkg-related build error on Windows:
https://github.com/acgetchell/rust-blas/actions/runs/3665391387/jobs/6196433625