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

Issues about cmake .. #3

Closed
WangYun1995 opened this issue Nov 30, 2020 · 6 comments
Closed

Issues about cmake .. #3

WangYun1995 opened this issue Nov 30, 2020 · 6 comments

Comments

@WangYun1995
Copy link

Hi aamaricci,

The information returned after that I input cmake .. is shown below

 CMake Deprecation Warning at CMakeLists.txt:4 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 2.8.12 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 6.3.1
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /usr/bin/f95 - skipped
-- Checking whether /usr/bin/f95 supports Fortran 90
-- Checking whether /usr/bin/f95 supports Fortran 90 - yes
-- OS: Linux 4.11.12-100.fc24.x86_64
-- BUILD_TYPE=RELEASE
-- Fortran Compiler id = GNU
-- Could NOT find MPI_Fortran (missing: MPI_Fortran_LIB_NAMES MPI_Fortran_F77_HEADER_DIR MPI_Fortran_MODULE_DIR MPI_Fortran_WORKS) 
CMake Error at /usr/local/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
  Could NOT find MPI (missing: MPI_Fortran_FOUND)

      Reason given by package: MPI component 'C' was requested, but language C is not enabled.  MPI component 'CXX' was requested, but language CXX is not enabled.  

Call Stack (most recent call first):
  /usr/local/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:577 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/share/cmake-3.19/Modules/FindMPI.cmake:1721 (find_package_handle_standard_args)
  CMakeLists.txt:52 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "/home/wangy/downloads/scifor/build/CMakeFiles/CMakeOutput.log".
See also "/home/wangy/downloads/scifor/build/CMakeFiles/CMakeError.log".

Does it mean that the installation fail?

@aamaricci
Copy link
Owner

aamaricci commented Nov 30, 2020 via email

@WangYun1995
Copy link
Author

Hi, this is error message from Cmake which, in order, - informs you that you're using a too old version of Cmake and - informs you that MPI can not be found in your system. By default SciFortran uses MPI, so if you do not want to use it you should set the cmake variable USE_MPI=False. This is done using the option -D: $cmake .. -DUSE_MPI=False this will analyze your system without checking for MPI. If everything goes well a suitable Makefile is created and you can compile/install the library as usual: $make $make install $make post-install Cheers. A

On Mon, Nov 30, 2020 at 2:47 PM WangYun1995 @.***> wrote: Hi aamaricci, The information returned after that I input cmake .. is shown below CMake Deprecation Warning at CMakeLists.txt:4 (CMAKE_MINIMUM_REQUIRED): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- The Fortran compiler identification is GNU 6.3.1 -- Detecting Fortran compiler ABI info -- Detecting Fortran compiler ABI info - done -- Check for working Fortran compiler: /usr/bin/f95 - skipped -- Checking whether /usr/bin/f95 supports Fortran 90 -- Checking whether /usr/bin/f95 supports Fortran 90 - yes -- OS: Linux 4.11.12-100.fc24.x86_64 -- BUILD_TYPE=RELEASE -- Fortran Compiler id = GNU -- Could NOT find MPI_Fortran (missing: MPI_Fortran_LIB_NAMES MPI_Fortran_F77_HEADER_DIR MPI_Fortran_MODULE_DIR MPI_Fortran_WORKS) CMake Error at /usr/local/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message): Could NOT find MPI (missing: MPI_Fortran_FOUND) Reason given by package: MPI component 'C' was requested, but language C is not enabled. MPI component 'CXX' was requested, but language CXX is not enabled. Call Stack (most recent call first): /usr/local/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:577 (_FPHSA_FAILURE_MESSAGE) /usr/local/share/cmake-3.19/Modules/FindMPI.cmake:1721 (find_package_handle_standard_args) CMakeLists.txt:52 (FIND_PACKAGE) -- Configuring incomplete, errors occurred! See also "/home/wangy/downloads/scifor/build/CMakeFiles/CMakeOutput.log". See also "/home/wangy/downloads/scifor/build/CMakeFiles/CMakeError.log". Does it mean that the installation fail? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#3>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARRDWBNDUD6IPWYCWB5WTDSSOO6HANCNFSM4UHTDF2A .

But my cmake version is the latest release , i.e. "CMake 3.19.1".

@aamaricci
Copy link
Owner

Check that the version you are using is actually the one you are invoking $cmake --version
Anyway this is only a warning, the error message comes from missing MPI.

@WangYun1995
Copy link
Author

Actually, I checked the version by invoking cmake --version.
QQ图片20201201201026

So I didn't understand why this warning appears.

@aamaricci
Copy link
Owner

aamaricci commented Dec 1, 2020 via email

@WangYun1995
Copy link
Author

Thank you so much for your help 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants