blas icon indicating copy to clipboard operation
blas copied to clipboard

Linker errors on example program

Open acgetchell opened this issue 2 years ago • 9 comments
trafficstars

Hello,

I'm using this crate and the example program fails due to linker issues.

Suggestions?

Sorry, I'm fairly new to Rust.

acgetchell avatar Dec 07 '22 22:12 acgetchell

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?

IvanUkhov avatar Dec 08 '22 08:12 IvanUkhov

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

acgetchell avatar Dec 10 '22 00:12 acgetchell

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.

termoshtt avatar Dec 10 '22 05:12 termoshtt

Similar comment exists on OpenBLAS repo https://github.com/xianyi/OpenBLAS/issues/3032#issuecomment-743808777

termoshtt avatar Dec 10 '22 06:12 termoshtt

@termoshtt, but then it should have already been fixed in the latest version of OpenBLAS, or has it not yet been released?

IvanUkhov avatar Dec 10 '22 12:12 IvanUkhov

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" }

termoshtt avatar Dec 10 '22 12:12 termoshtt

Thank you for taking care of this!

IvanUkhov avatar Dec 10 '22 13:12 IvanUkhov

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

acgetchell avatar Dec 10 '22 17:12 acgetchell

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

acgetchell avatar Dec 10 '22 18:12 acgetchell