Page 1 of 1

Tests fail because libblas.dll cannot be found

PostPosted: Tue Aug 13, 2019 8:07 pm
by TidbitSoftware
I am configuring and compiling LAPACK 3.8.0 with the following,

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

Re: Tests fail because libblas.dll cannot be found

PostPosted: Thu Aug 15, 2019 7:56 am
by admin
yes indeed dll have to be copied into the folder of the executable..
this looks like this could be done in the make script.
Thank you for reporting the issue.
Julie