Skip to content

CMake + NAG Fortran build issue #48

@ivan-pi

Description

@ivan-pi

Trying to build with nagfor and OpenMPI, I encounter the issue:

~/vapaa-jh/build> cmake .. -DCMAKE_Fortran_COMPILER=/lrz/sys/compilers/nag/7.2/bin/nagfor -DMPI_VENDOR=OPEN_MPI
-- The Fortran compiler identification is NAG 7.2.7203
-- The C compiler identification is GNU 13.2.0
-- Detecting NAG Fortran directory
-- Detecting NAG Fortran directory - /dss/lrzsys/sys/compilers/nag/7.2/lib
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /lrz/sys/compilers/nag/7.2/bin/nagfor - skipped
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /dss/lrzsys/sys/spack/release/24.4.0/opt/x86_64/gcc/13.2.0-gcc-j6fttbw/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found MPI_C: /dss/lrzsys/sys/spack/release/24.4.0/opt/icelake/openmpi/5.0.5-gcc-f2f442m/lib/libmpi.so (found version "3.1") 
-- Could NOT find MPI_Fortran (missing: MPI_Fortran_WORKS) 
CMake Error at /dss/lrzsys/sys/spack/release/23.1.0/opt/x86_64/cmake/3.26.3-gcc-gesqvgr/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find MPI (missing: MPI_Fortran_FOUND) (found version "3.1")
Call Stack (most recent call first):
  /dss/lrzsys/sys/spack/release/23.1.0/opt/x86_64/cmake/3.26.3-gcc-gesqvgr/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  /dss/lrzsys/sys/spack/release/23.1.0/opt/x86_64/cmake/3.26.3-gcc-gesqvgr/share/cmake-3.26/Modules/FindMPI.cmake:1837 (find_package_handle_standard_args)
  CMakeLists.txt:27 (find_package)


-- Configuring incomplete, errors occurred!

I'm guessing this is a problem in the FindMPI CMake package? The purpose of vapaa is that you don't need to have MPI_Fortran...

(cc @JorgeG94)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions