Skip to content

Commit 26a811f

Browse files
committed
Fix openblas related errors in configuration
When running the configuration, two issues can arise: 1. The script searches for the OpenBLAS libraries in ./tools/OpenBLAS/install yet the default scripts lead to this being created in ./tools/extras/OpenBLAS/install 2. When compiling statically, the flag for -lgfortran is added without space, leading to the configuration trying to link -l:libopenblas.a-lgfortran as one string
1 parent f400766 commit 26a811f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,7 +1351,7 @@ or try another math library, e.g. --mathlib=OPENBLAS (Kaldi may be slower)."
13511351
# --openblas-root fails fatally if the path does not exist, so we trust
13521352
# that if set, the variable contains the existing path, converted to
13531353
# absolute form).
1354-
OPENBLASROOT="$(rel2abs ../tools/OpenBLAS/install)" ||
1354+
OPENBLASROOT="$(rel2abs ../tools/extras/OpenBLAS/install)" ||
13551355
Die "OpenBLAS not found in '../tools/OpenBLAS/install'.
13561356
** This is the only place we look for it. The best option is to build OpenBLAS
13571357
** tuned for your system and CPU. To do that, run the following commands:
@@ -1389,7 +1389,7 @@ or try another math library, e.g. --mathlib=OPENBLAS (Kaldi may be slower)."
13891389
OPENBLASLIBS="-L$OPENBLASLIBDIR -l:libopenblas.a"
13901390
# No Fortran for OpenBLAS
13911391
if [[ "$HOST" != WASM ]]; then
1392-
OPENBLASLIBS+="-lgfortran"
1392+
OPENBLASLIBS+=" -lgfortran"
13931393
fi
13941394
else
13951395
if [ -f $OPENBLASROOT/lib/libopenblas.so ]; then

0 commit comments

Comments
 (0)