FindLAPACK cannot find statically built generic lapack library (lapack-reference)
error:
FAILED: cmTC_cef99
: && /usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=cheev_ CMakeFiles/cmTC_cef99.dir/CheckFunctionExists.c.o -o cmTC_cef99 /mnt/e/qt_zstd/installed/x64-linux/debug/lib/liblapack.a /mnt/e/qt_zstd/installed/x64-linux/debug/lib/libopenblas.a -lpthread && :
/usr/bin/ld: /mnt/e/qt_zstd/installed/x64-linux/debug/lib/liblapack.a(clanhe.f.o): in function `clanhe_':
/mnt/e/qt_zstd/buildtrees/lapack-reference/src/v3.8.0-954f10683f.clean/SRC/clanhe.f:173: undefined reference to `cabsf'
/usr/bin/ld: /mnt/e/qt_zstd/buildtrees/lapack-reference/src/v3.8.0-954f10683f.clean/SRC/clanhe.f:184: undefined reference to `cabsf'
/usr/bin/ld: /mnt/e/qt_zstd/buildtrees/lapack-reference/src/v3.8.0-954f10683f.clean/SRC/clanhe.f:199: undefined reference to `cabsf'
/usr/bin/ld: /mnt/e/qt_zstd/buildtrees/lapack-reference/src/v3.8.0-954f10683f.clean/SRC/clanhe.f:216: undefined reference to `cabsf'
/usr/bin/ld: /mnt/e/qt_zstd/installed/x64-linux/debug/lib/liblapack.a(slartg.f.o): in function `slartg_':
/mnt/e/qt_zstd/buildtrees/lapack-reference/src/v3.8.0-954f10683f.clean/SRC/slartg.f:143: undefined reference to `logf'
/usr/bin/ld: /mnt/e/qt_zstd/buildtrees/lapack-reference/src/v3.8.0-954f10683f.clean/SRC/slartg.f:143: undefined reference to `logf'
/usr/bin/ld: /mnt/e/qt_zstd/installed/x64-linux/debug/lib/liblapack.a(iparmq.f.o): in function `iparmq_':
/mnt/e/qt_zstd/buildtrees/lapack-reference/src/v3.8.0-954f10683f.clean/SRC/iparmq.f:266: undefined reference to `logf'
/usr/bin/ld: /mnt/e/qt_zstd/buildtrees/lapack-reference/src/v3.8.0-954f10683f.clean/SRC/iparmq.f:266: undefined reference to `lroundf'
/usr/bin/ld: /mnt/e/qt_zstd/installed/x64-linux/debug/lib/liblapack.a(xerbla.f.o): in function `xerbla_':
/mnt/e/qt_zstd/buildtrees/lapack-reference/src/v3.8.0-954f10683f.clean/SRC/xerbla.f:90: undefined reference to `_gfortran_st_write'
/usr/bin/ld: /mnt/e/qt_zstd/buildtrees/lapack-reference/src/v3.8.0-954f10683f.clean/SRC/xerbla.f:90: undefined reference to `_gfortran_string_len_trim'
/usr/bin/ld: /mnt/e/qt_zstd/buildtrees/lapack-reference/src/v3.8.0-954f10683f.clean/SRC/xerbla.f:90: undefined reference to `_gfortran_transfer_character_write'
/usr/bin/ld: /mnt/e/qt_zstd/buildtrees/lapack-reference/src/v3.8.0-954f10683f.clean/SRC/xerbla.f:90: undefined reference to `_gfortran_transfer_integer_write'
/usr/bin/ld: /mnt/e/qt_zstd/buildtrees/lapack-reference/src/v3.8.0-954f10683f.clean/SRC/xerbla.f:90: undefined reference to `_gfortran_st_write_done'
/usr/bin/ld: /mnt/e/qt_zstd/buildtrees/lapack-reference/src/v3.8.0-954f10683f.clean/SRC/xerbla.f:92: undefined reference to `_gfortran_stop_string'
/usr/bin/ld: /mnt/e/qt_zstd/installed/x64-linux/debug/lib/libopenblas.a(chemv_thread_U.c.o): in function `chemv_thread_U':
/mnt/e/qt_zstd/buildtrees/openblas/src/v0.3.9-c2b94c7c62.clean/driver/level2/symv_thread.c:169: undefined reference to `sqrt'
/usr/bin/ld: /mnt/e/qt_zstd/installed/x64-linux/debug/lib/libopenblas.a(chemv_thread_L.c.o): in function `chemv_thread_L':
/mnt/e/qt_zstd/buildtrees/openblas/src/v0.3.9-c2b94c7c62.clean/driver/level2/symv_thread.c:215: undefined reference to `sqrt'
/usr/bin/ld: /mnt/e/qt_zstd/installed/x64-linux/debug/lib/libopenblas.a(chemv_thread_V.c.o): in function `chemv_thread_V':
/mnt/e/qt_zstd/buildtrees/openblas/src/v0.3.9-c2b94c7c62.clean/driver/level2/symv_thread.c:169: undefined reference to `sqrt'
/usr/bin/ld: /mnt/e/qt_zstd/installed/x64-linux/debug/lib/libopenblas.a(chemv_thread_M.c.o): in function `chemv_thread_M':
/mnt/e/qt_zstd/buildtrees/openblas/src/v0.3.9-c2b94c7c62.clean/driver/level2/symv_thread.c:215: undefined reference to `sqrt'
/usr/bin/ld: /mnt/e/qt_zstd/installed/x64-linux/debug/lib/libopenblas.a(cher2_thread_U.c.o): in function `cher2_thread_U':
/mnt/e/qt_zstd/buildtrees/openblas/src/v0.3.9-c2b94c7c62.clean/driver/level2/syr2_thread.c:268: undefined reference to `sqrt'
/usr/bin/ld: /mnt/e/qt_zstd/installed/x64-linux/debug/lib/libopenblas.a(cher2_thread_L.c.o):/mnt/e/qt_zstd/buildtrees/openblas/src/v0.3.9-c2b94c7c62.clean/driver/level2/syr2_thread.c:306: more undefined references to `sqrt' follow
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
probably missing another check with -lm
and -lgfortran
as extra libraries.