Skip to content

fix(cmake): verify CBLAS symbols link, not just that cblas.h exists - #257

Merged
cjpais merged 1 commit into
mainfrom
fix/cblas-link-check
Nov 11, 2026
Merged

cjpais merged 1 commit into
mainfrom
fix/cblas-link-check

Conversation

@cjpais

@cjpais cjpais commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

No description provided.

find_package(BLAS) can pick a Fortran-only BLAS (Netlib libblas on
Arch/Fedora) while cblas.h comes from a separate cblas package. A shared
libtranscribe then links with cblas_* unresolved and dies at runtime with
'undefined symbol: cblas_sgemm' (cjpais/Handy#2274).

Check that cblas_sgemm/cblas_sgemv actually link against BLAS_LIBRARIES;
if not, try the separate libcblas, otherwise fall back to the scalar path
with a configure warning. Also look for cblas.h under include/openblas/,
where Arch and Fedora put it, so those OpenBLAS installs stop silently
falling back to the scalar decoder.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant