[MacPorts] #66209: netcdf does not compile with mpich or openmpi

MacPorts noreply at macports.org
Wed Nov 9 15:01:59 UTC 2022


#66209: netcdf does not compile with mpich or openmpi
-----------------------+--------------------
 Reporter:  massonseb  |      Owner:  (none)
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.8.0
 Keywords:             |       Port:  netcdf
-----------------------+--------------------
 I am using macOS 12.6.1 with ARM64 (Apple M1 Pro) and I am trying to
 compile netcdf.

 port install netcdf +gcc12 works fine.

 but netcdf +gcc12 +openmpi or netcdf +gcc12 +mpich fail to configure:

 {{{
 --->  Configuring netcdf
 Error: Failed to configure netcdf: consult
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_netcdf/netcdf/work/build/CMakeFiles/CMakeError.log
 Error: Failed to configure netcdf: configure failure: command execution
 failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_netcdf/netcdf/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there is a bug.
 Error: Processing of port netcdf failed
 }}}

 In both cases, the error message in the main.log file is :

 with openmpi:
 {{{
 :info:configure -- Found MPI_C: /opt/local/bin/mpicc-openmpi-gcc12 (found
 version "3.1")
 :info:configure -- Could NOT find MPI_CXX (missing: MPI_CXX_WORKS)
 :info:configure CMake Error at
 /opt/local/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:230
 (message):
 :info:configure   Could NOT find MPI (missing: MPI_CXX_FOUND) (found
 version "3.1")
 :info:configure Call Stack (most recent call first):
 :info:configure
 /opt/local/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:594
 (_FPHSA_FAILURE_MESSAGE)
 :info:configure   /opt/local/share/cmake-3.23/Modules/FindMPI.cmake:1830
 (find_package_handle_standard_args)
 :info:configure   CMakeLists.txt:1426 (FIND_PACKAGE)
 :info:configure -- Configuring incomplete, errors occurred!
 }}}

 with mpich:

 {{{
 :info:configure -- Found MPI_C: /opt/local/bin/mpicc-mpich-gcc12 (found
 version "4.0")
 :info:configure -- Could NOT find MPI_CXX (missing: MPI_CXX_WORKS)
 :info:configure CMake Error at
 /opt/local/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:230
 (message):
 :info:configure   Could NOT find MPI (missing: MPI_CXX_FOUND) (found
 version "4.0")
 :info:configure Call Stack (most recent call first):
 :info:configure
 /opt/local/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:594
 (_FPHSA_FAILURE_MESSAGE)
 :info:configure   /opt/local/share/cmake-3.23/Modules/FindMPI.cmake:1830
 (find_package_handle_standard_args)
 :info:configure   CMakeLists.txt:1426 (FIND_PACKAGE)
 :info:configure -- Configuring incomplete, errors occurred!
 }}}

 I attach the 2 log files (netcdf_openmpi.log and netcdf_mpich.log)

 Thank you for your help,

 Sébastien

-- 
Ticket URL: <https://trac.macports.org/ticket/66209>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list