You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
openblas_set_threads_callback_function missing prefix/suffix in shared library when SYMBOLPREFIX/SYMBOLSUFFIX are set in Makefile #5593
An undefined reference linking error was detected during testing. This error arises because the symbol prefix/suffix for the function openblas_set_threads_callback_function in the dynamic library is missing after SYMBOLPREFIX or SYMBOLSUFFIX is defined (this feature was introduced by PR #4577). When SYMBOLPREFIX or SYMBOLSUFFIX is configured in the Makefile, the function signature of SYMBOLPREFIX_openblas_set_threads_callback_function_SYMBOLSUFFIX in the header file cblas.h is modified (with the configured prefix/suffix added), but the function name in the dynamic link library remains unmodified, resulting in an undefined reference.
Steps to Reproduce
Set SYMBOLPREFIX or SYMBOLSUFFIX in the Makefile (e.g., SYMBOLSUFFIX=_smp).
Compile the OpenBLAS dynamic library.
Compile and link the following test code against the compiled library:
Trigger the linking error: undefined reference to `openblas_set_threads_callback_function_smp'
Root Cause
openblas_set_threads_callback_function is not included in the exports/gensymbol and exports/gensymbol.py files. As a result, the symbol generation script does not apply the SYMBOLPREFIX/SYMBOLSUFFIX configured in the Makefile to the openblas_set_threads_callback_function when processing the dynamic library.
Related PR
The original PR that introduced the openblas_set_threads_callback_function feature: #4577
Activity
lujiaweics commentedon Jan 5, 2026
fix this bug in PR: #5594