Replies: 3 comments 4 replies
-
So, the "workaround" I implemented was to add in the top-level
right before BLAS and LAPACK subdirectories are sourced. However, I strongly doubt this is the way to make it work. |
Beta Was this translation helpful? Give feedback.
-
I'm fairly sure the trailing underscore is a platform default for gfortran on Linux, and the compiler cannot guess what you might want to link against the library in the future, regardless whether you built CBLAS/LAPACKE or not ? |
Beta Was this translation helpful? Give feedback.
-
OK, this is now getting even more confusing and weird. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
so this is getting me quite puzzled.
I've already built LAPACK from source many times, on different platforms, including Windows.
I have now switched to another Linux machine, with gfortran
GNU Fortran (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
.This is the generation script:
Everything builds correctly, except that I notice that in both BLAS and LAPACK object files, symbols names have a trailing
_
.This was a convention adopted by gfortran when it came to Fortran-C interop before this was standardised, with the
bind()
method.However, the issue here is that neither BLAS or LAPACK are to be linked with C interface, since that is for CBLAS and LAPACKE, which are not built. Also, I see that there is also in fact among the preprocessing options, the case where symbols are exported without the trailing
_
.So, I cannot figure out why is this happening.
Beta Was this translation helpful? Give feedback.
All reactions