[MacPorts] #59330: openmpi-default @4.0.1 +gfortran configure: error: C and C++ compilers are not link compatible. Can not continue.
MacPorts
noreply at macports.org
Wed Apr 29 13:08:24 UTC 2020
#59330: openmpi-default @4.0.1 +gfortran configure: error: C and C++ compilers are
not link compatible. Can not continue.
------------------------------+--------------------
Reporter: willic3 | Owner: (none)
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.6.1
Resolution: duplicate | Keywords: mojave
Port: openmpi-default |
------------------------------+--------------------
Comment (by dubiousjim):
I think I have a similar issue, but I can open a new ticket if
appropriate. I'm trying to install `openmpi-clang90`, but I get the same
error reported above. Error persisted when I built using
`configure.cxx_stdlib='libc++'`, and/or built using the `+g95` variant
(the `+gfortran` variant doesn't seem to be available anymore on either
`openmpi-clang90` nor on `openmpi-default`), and/or attempted to install
`openmpi-clang80` or `openmpi-default` instead.
If I cd into the work directory and enter the configure command manually
(`sudo
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_openmpi
/openmpi-clang90/work/openmpi-4.0.1/configure --prefix=/opt/local
--enable-mpi-fortran --enable-mpi-cxx FFLAGS='' F77=''
--bindir=/opt/local/libexec/openmpi-clang90 --libdir=/opt/local/lib
/openmpi-clang90 --sysconfdir=/opt/local/etc/openmpi-clang90
--includedir=/opt/local/include/openmpi-clang90 --datadir=/opt/local/share
/openmpi-clang90 --docdir=/opt/local/share/docdelete
--mandir=/opt/local/share/mandelete --with-hwloc=/opt/local`) it completes
successfully. But then it's using `gcc` for `gcc` instead of
`/opt/local/bin/clang-mp-9.0`).
--
Ticket URL: <https://trac.macports.org/ticket/59330#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list