CMake issue since #913
jvdp1 opened this issue · 1 comments
jvdp1 commented
Description
Since #913, I get the following error with CMake
. Any idea what the problem is.
~/stdlib$ FC=ifort CC=icx CXX=icpc FFLAGS=-O3 cmake -B build -DCMAKE_MAXIMUM_RANK:String=4 -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=off -DCMAKE_VERBOSE_MAKEFILE=off
-- The Fortran compiler identification is Intel 2021.0.0.20240602
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /software1/intel/oneapi_llvm/compiler/2024.2/bin/ifort - skipped
-- Performing Test WITH_CBOOL
-- Performing Test WITH_CBOOL - Success
-- Performing Test WITH_QP
-- Performing Test WITH_QP - Success
-- Performing Test WITH_XDP
-- Performing Test WITH_XDP - Failed
-- Performing Test f18errorstop
-- Performing Test f18errorstop - Failed
-- Performing Test f03rank
-- Performing Test f03rank - Success
-- Performing Test f03real128
-- Performing Test f03real128 - Success
-- Configuring done (2.8s)
-- Generating done (0.1s)
-- Build files have been written to: /home/jvandenp/stdlib/build
~/stdlib$ cmake --build build
[ 0%] Generating stdlib_version.f90
[ 0%] Generating blas/stdlib_blas.F90
error: Failed to open file '/home/jvandenp/stdlib/build/src/blas/stdlib_blas.F90' for write [FyppFatalError]
error: [Errno 2] No such file or directory: '/home/jvandenp/stdlib/build/src/blas/stdlib_blas.F90' [FileNotFoundError]
gmake[2]: *** [src/CMakeFiles/fortran_stdlib.dir/build.make:394: src/blas/stdlib_blas.F90] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:128: src/CMakeFiles/fortran_stdlib.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
Expected Behaviour
It should compile with CMake
Version of stdlib
master
Platform and Architecture
Linux (Fedora) + Intel OneAPI + Cmake 3.31.1
Additional Information
No response
jvdp1 commented
The issue is that the directory blas
is not created by cmake
, and therefore, fypp
fails to create the F90
files.