I'm building from source on Ubuntu with GCC (from apt install build-essential) and CMake, the compilation runs fine, these are my build flags:
cmake -S . -B build -G "Ninja" \
-DDYNAMIC_ARCH=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF \
-DBUILD_STATIC_LIBS=ON \
-DNOFORTRAN=ON \
-DTARGET=NEHALEM
Everything compiles fine, until I try to use it with:
find_package(BLAS REQUIRED)
find_package(LAPACK REQUIRED)
In version OpenBLAS-0.3.21 find BLAS works, but find LAPACK fails its /usr/bin/cc -DCHECK_FUNCTION_EXISTS=cheev_ -g check with error:
OpenBLAS/lib/libopenblas.a(cheev.c.o): in function `cheev_':
cheev.c:(.text+0x50b): undefined reference to `sqrtf'
In version OpenBLAS-0.3.34, find BLAS also fails, with similar errors.
I get no errors during compilation, only when CMake's find_package does its function check. I have compiled and used OpenBLAS successfully in the past but I used Clang as the compiler, this time I'm using GCC 11.4 and I can't seem to get it to work.
What's strange to me is that find_package(BLAS) works on 0.3.21 and doesn't on 0.3.34.
I'm building from source on Ubuntu with GCC (from
apt install build-essential) and CMake, the compilation runs fine, these are my build flags:Everything compiles fine, until I try to use it with:
In version
OpenBLAS-0.3.21find BLAS works, but find LAPACK fails its/usr/bin/cc -DCHECK_FUNCTION_EXISTS=cheev_ -gcheck with error:In version
OpenBLAS-0.3.34, find BLAS also fails, with similar errors.I get no errors during compilation, only when CMake's
find_packagedoes its function check. I have compiled and used OpenBLAS successfully in the past but I used Clang as the compiler, this time I'm using GCC 11.4 and I can't seem to get it to work.What's strange to me is that
find_package(BLAS)works on 0.3.21 and doesn't on 0.3.34.