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
Can't find -lgfortran while installing OpenBLAS from source #604
@tcfuji: If you run into this problem, there is something wrong with your fortran compiler environment (probably missing a seperate gfortran-devel or libgfortran-dev package). NO_LAPACK makes sense as a workaround when it is clear that the only project you need openblas for does not require any of the lapack functions (the only components you would need a working fortran compiler for).
For those who do need Lapack, Just a rejoinder. I finally got OpenBLAS to build today, 10/04/2025, by changing two rules in Makefile.rule to
CC = gcc-12
FC = gfortran-12
It seems that it's cc that couldn't find libgfortran.
Activity
xianyi commentedon Jul 23, 2015
@AmNotGod , I think you don't need LAPACK functions. Thus, please
make NO_LAPACK=1without link-lgfortran.AmNotGod commentedon Jul 24, 2015
It is really helpful. I have solved my problem, thank you so much!
tcfuji commentedon Feb 17, 2016
Ran into this problem too. Should
NO_LAPACK=1be the default?martin-frbg commentedon Feb 20, 2016
@tcfuji: If you run into this problem, there is something wrong with your fortran compiler environment (probably missing a seperate gfortran-devel or libgfortran-dev package). NO_LAPACK makes sense as a workaround when it is clear that the only project you need openblas for does not require any of the lapack functions (the only components you would need a working fortran compiler for).
nardis-miles commentedon Oct 4, 2025
For those who do need Lapack, Just a rejoinder. I finally got OpenBLAS to build today, 10/04/2025, by changing two rules in Makefile.rule to
CC = gcc-12
FC = gfortran-12
It seems that it's cc that couldn't find libgfortran.