Tests fail because libblas.dll cannot be found

Post here if you have problem using the CMAKE build process

Tests fail because libblas.dll cannot be found

Postby TidbitSoftware » Tue Aug 13, 2019 8:07 pm

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
TidbitSoftware
 
Posts: 2
Joined: Tue Aug 13, 2019 6:51 pm

Re: Tests fail because libblas.dll cannot be found

Postby admin » Thu Aug 15, 2019 7:56 am

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
admin
Site Admin
 
Posts: 616
Joined: Wed Dec 08, 2004 7:07 pm


Return to CMAKE

Who is online

Users browsing this forum: No registered users and 2 guests

cron