FS#59046 - [openblas] undefined reference to `cblas_dnrm2'
Attached to Project:
Community Packages
Opened by freyr (freyr) - Sunday, 17 June 2018, 18:58 GMT
Last edited by Jelle van der Waa (jelly) - Sunday, 03 September 2023, 09:15 GMT
Opened by freyr (freyr) - Sunday, 17 June 2018, 18:58 GMT
Last edited by Jelle van der Waa (jelly) - Sunday, 03 September 2023, 09:15 GMT
|
Details
Description:
openblas package includes cblas implementation as well, so a vanilla libopenblas library also contains cblas_* symbols. In the current openblas package libopenblas does not include any of cblas_* symbols, so my simple test program (which is expected to be linked against -lopenblas) fails to compile, emitting "undefined reference to `cblas_dnrm2'". This package from aur works perfectly fine for me, libopenblas.so contains cblas_* symbols as well: https://aur.archlinux.org/packages/openblas-lapack/ |
This task depends upon
Closed by Jelle van der Waa (jelly)
Sunday, 03 September 2023, 09:15 GMT
Reason for closing: No response
Sunday, 03 September 2023, 09:15 GMT
Reason for closing: No response
If I understand, with this setup if you want to link cblas functions you have to do both gcc -lopenblas and -lcblas. This contradicts the openblas documentation which says you only need to do -lopenblas to get the cblas functions.
This breaks a lot of project's build code. For instance, this has broken numpy builds which expect to only have to link `-openblas` to get access the the cblas functions. It breaks the openblas examples too.