Regression from 3.27.4 to 3.27.5?: lapack 3.11.0 fails to configure with Makefile generator
With 3.27.4 lapack configuring lapack 3.11.0 worked fine. After updating to cmake 3.27.5 this fails with "CMake Error: CMake can not determine linker language for target: run_test_zcomplexabs", full output below. I don't see anything obvious why that would fail from a quick look, at least there's project(... Fortran) and the files have ".f" as extension. Curiously if I use ninja as generator it works fine again.
cmake -DCMAKE_BUILD_TYPE:STRING=None -DCMAKE_C_FLAGS:STRING=-march=native -O2 -pipe -D_FORTIFY_SOURCE=2 -DCMAKE_CXX_FLAGS:STRING=-march=native -O2 -pipe -D_FORTIFY_SOURCE=2 -DCMAKE_AR:PATH=x86_64-pc-linux-gnu-ar -DCMAKE_RANLIB:PATH=x86_64-pc-linux-gnu-ranlib -DCMAKE_NM:PATH=x86_64-pc-linux-gnu-nm -DCMAKE_C_COMPILER:PATH=x86_64-pc-linux-gnu-cc -DCMAKE_CXX_COMPILER:PATH=x86_64-pc-linux-gnu-c++ -DCMAKE_INSTALL_PREFIX:PATH=/usr/x86_64-pc-linux-gnu -DCMAKE_FIND_ROOT_PATH:PATH=/usr/x86_64-pc-linux-gnu -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM:STRING=NEVER -DCMAKE_SYSTEM_PREFIX_PATH:PATH=/usr/x86_64-pc-linux-gnu -DCMAKE_INSTALL_LIBDIR:STRING=lib -DCMAKE_INSTALL_DATAROOTDIR:PATH=/usr/share/ -DBLAS++:BOOL=FALSE -DBLAS_LIBRARIES:STRING=blas -DBUILD_COMPLEX:BOOL=TRUE -DBUILD_COMPLEX16:BOOL=TRUE -DBUILD_DEPRECATED:BOOL=FALSE -DBUILD_DOUBLE:BOOL=TRUE -DBUILD_SHARED_LIBS:BOOL=TRUE -DBUILD_SINGLE:BOOL=TRUE -DCMAKE_Fortran_COMPILER=x86_64-pc-linux-gnu-gfortran -DLAPACK++:BOOL=FALSE -DLAPACKE:BOOL=TRUE -DBUILD_TESTING:BOOL=FALSE /var/tmp/paludis/build/sci-libs-lapack-3.11.0/work/lapack-3.11.0
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The Fortran compiler identification is GNU 13.2.0
-- The C compiler identification is GNU 13.2.0
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /usr/bin/x86_64-pc-linux-gnu-gfortran - skipped
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking if build type is 'Coverage'
-- Checking if build type is 'Coverage': 0
-- Performing Test _frecursiveFlag
-- Performing Test _frecursiveFlag - Success
-- Build tests: FALSE
-- Reducing RELEASE optimization level to O2
CMake Deprecation Warning at /var/tmp/paludis/build/sci-libs-lapack-3.11.0/work/lapack-3.11.0/INSTALL/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Looking for Fortran NONE - found
CMake Deprecation Warning at /var/tmp/paludis/build/sci-libs-lapack-3.11.0/work/lapack-3.11.0/INSTALL/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Looking for Fortran INT_CPU_TIME - found
CMake Deprecation Warning at /var/tmp/paludis/build/sci-libs-lapack-3.11.0/work/lapack-3.11.0/INSTALL/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Looking for Fortran EXT_ETIME - not found
CMake Deprecation Warning at /var/tmp/paludis/build/sci-libs-lapack-3.11.0/work/lapack-3.11.0/INSTALL/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Looking for Fortran EXT_ETIME_ - not found
CMake Deprecation Warning at /var/tmp/paludis/build/sci-libs-lapack-3.11.0/work/lapack-3.11.0/INSTALL/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Looking for Fortran INT_ETIME - found
-- --> Will use second_INT_ETIME.f and dsecnd_INT_ETIME.f as timing function.
-- Build deprecated routines: FALSE
-- Build single precision real: TRUE
-- Build double precision real: TRUE
-- Build single precision complex: TRUE
-- Build double precision complex: TRUE
-- Looking for Fortran dgemm
-- Looking for Fortran dgemm - found
-- --> BLAS supplied by user is WORKING, will use blas.
-- Using supplied NETLIB LAPACK implementation
-- Detecting Fortran/C Interface
-- Detecting Fortran/C Interface - Found GLOBAL and MODULE mangling
-- Verifying Fortran/C Compiler Compatibility
-- Verifying Fortran/C Compiler Compatibility - Success
-- LAPACKE enabled
-- Build LAPACKE single precision real: ON
-- Build LAPACKE double precision real: ON
-- Build LAPACKE single precision complex: ON
-- Build LAPACKE double precision complex: ON
-- Build html documentation: OFF
-- Build man documentation: OFF
-- Configuring done (2.7s)
CMake Error: CMake can not determine linker language for target: run_test_zcomplexabs
CMake Error: CMake can not determine linker language for target: run_test_zcomplexdiv
CMake Error: CMake can not determine linker language for target: run_test_zcomplexmult
CMake Error: CMake can not determine linker language for target: run_test_zminMax
-- Generating done (0.5s)
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_CXX_COMPILER
CMAKE_FIND_ROOT_PATH
CMake Generate step failed. Build files cannot be regenerated correctly.