Thread overview
Mir blas keeps giving an error
2 days ago
Marc
2 days ago
Serg Gini
2 days ago
Marc
2 days ago
Marc
2 days ago
Serg Gini
2 days ago
Marc
2 days ago

Using mir-blas is fundamental for implementing linear models in D. However it keeps giving an error, other mir libraries work fine.

I get the following error

/usr/bin/ld: -f may not be used without -shared
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: linker exited with status 1

I would appreciate if anyone can help me setting it up.

2 days ago

On Tuesday, 12 August 2025 at 03:24:33 UTC, Marc wrote:

>

Using mir-blas is fundamental for implementing linear models in D. However it keeps giving an error, other mir libraries work fine.

I get the following error

/usr/bin/ld: -f may not be used without -shared
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: linker exited with status 1

I would appreciate if anyone can help me setting it up.

BLAS can be a tricky-to-install library.
Please provide your OS, dub.json/sdl and check that BLAS is installed.

2 days ago

On Tuesday, 12 August 2025 at 07:13:58 UTC, Serg Gini wrote:

>

BLAS can be a tricky-to-install library.
Please provide your OS, dub.json/sdl and check that BLAS is installed.

The examples dub.sdl is available here: https://github.com/istmarc/mir-examples/blob/main/dub.sdl . I've Archlinux installed with openblas (/usr/lib/libopenblas.so) and lapack (/usr/lib/liblapack.so). I can use them from c++ simply by linking clang++ -lbopenblas main.cxx and both work fine.

2 days ago

I have updated the examples by adding a subconfiguration of mi-blas. Now it works.

2 days ago

On Tuesday, 12 August 2025 at 09:44:07 UTC, Marc wrote:

>

I have updated the examples by adding a subconfiguration of mi-blas. Now it works.

Nice.
I've checked your repos - you probably also could be interested in projects:

2 days ago

On Tuesday, 12 August 2025 at 10:05:59 UTC, Serg Gini wrote:

>

On Tuesday, 12 August 2025 at 09:44:07 UTC,

Nice.
I've checked your repos - you probably also could be interested in projects:

Those are great resources. Thanks a lot for your reply. I started writting a tensor library mainly to extend Eigen c++ library that has an unsupported tensor module. It’s great for numerical stuffs but doesn’t support for example slicing like numpy and Mir except for rows and columns of a matrix. Im not sure about how they approached this so that might be very interesting thing I could check.