Tests fail because libblas.dll cannot be found
I am configuring and compiling LAPACK 3.8.0 with the following,
Everything compiles and the tests run but fail. Inspecting the error logs revealed that libblas.dll could not be found. In my attempts to debug, I tried,
- adding the path to libblas.dll to LD_LIBRARY_PATH -> no change
- rebuilding LAPACK with -DBLAS_LIBRARIES="-L$BLAS_ROOT/lib -Wl,-rpath,$BLAS_ROOT/lib -lblas" -> no change
- copying libblas.dll to build/bin -> all tests passed
- Code: Select all
mkdir build
cd build
cmake \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=ON \
-DCMAKE_C_COMPILER=/usr/bin/gcc \
-DCMAKE_Fortran_COMPILER=/usr/bin/gfortran \
-DBLAS_LIBRARIES="-L$BLAS_ROOT/lib -lblas" \
../src
make
make test
Everything compiles and the tests run but fail. Inspecting the error logs revealed that libblas.dll could not be found. In my attempts to debug, I tried,
- adding the path to libblas.dll to LD_LIBRARY_PATH -> no change
- rebuilding LAPACK with -DBLAS_LIBRARIES="-L$BLAS_ROOT/lib -Wl,-rpath,$BLAS_ROOT/lib -lblas" -> no change
- copying libblas.dll to build/bin -> all tests passed