Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake issue since #913 #922

Open
jvdp1 opened this issue Jan 24, 2025 · 1 comment · May be fixed by #923
Open

CMake issue since #913 #922

jvdp1 opened this issue Jan 24, 2025 · 1 comment · May be fixed by #923
Labels
bug Something isn't working

Comments

@jvdp1
Copy link
Member

jvdp1 commented Jan 24, 2025

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

@perazz @jalvesz

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 jvdp1 added the bug Something isn't working label Jan 24, 2025
@jvdp1
Copy link
Member Author

jvdp1 commented Jan 24, 2025

The issue is that the directory blas is not created by cmake, and therefore, fypp fails to create the F90 files.

@jvdp1 jvdp1 linked a pull request Jan 24, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant