[MacPorts] #61492: Cannot build openmpi-gcc10, mpich-gcc10, etc. on macOS 11.0.1 Big Sur, Xcode 12.2
MacPorts
noreply at macports.org
Mon Dec 7 01:47:39 UTC 2020
#61492: Cannot build openmpi-gcc10, mpich-gcc10, etc. on macOS 11.0.1 Big Sur,
Xcode 12.2
-------------------------------+--------------------
Reporter: ChristopherMayes | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Resolution: | Keywords:
Port: openmpi-gcc10 |
-------------------------------+--------------------
Comment (by astroboylrx):
Replying to [comment:6 jxy]:
> It's the packaged `libtool.m4` in the source distribution inside `mpich`
and `openmpi`. The `libtool` installed by `macports` has the proper
patch. For `openmpi`, you need to run `autogen.pl`, and for `mpich`
`autogen.sh`. Maybe we can also patch all the `libtool.m4` files instead.
This method works for me while installing `openmpi-gcc9` or `mpich-gcc9`
or `mpich-clang`. After running `autogen`, `port install` then directly
starts building processes. However, it fails when I tried to install
`mpich-clang80 +gcc9`, seemingly because the variant makes `port install`
re-run configuration anyway and reports `failed to configure` (log info
below).
{{{
configure:6487: checking whether the C compiler works
configure:6509: /opt/local/bin/clang-mp-8.0 -pipe -Os
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch
x86_64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
-Wl,-headerpad_max_install_names
-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
conftest.c >&5
clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11.0'
configure:6513: $? = 1
configure:6551: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Open MPI"
| #define PACKAGE_TARNAME "openmpi"
| #define PACKAGE_VERSION "4.0.1"
| #define PACKAGE_STRING "Open MPI 4.0.1"
| #define PACKAGE_BUGREPORT "http://www.open-mpi.org/community/help/"
| #define PACKAGE_URL ""
| #define OPAL_ARCH "i386-apple-darwin20.1.0"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:6556: error: in
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_r
elease_tarballs_ports_science_openmpi/openmpi-clang80/work/build':
configure:6558: error: C compiler cannot create executables
See `config.log' for more details
}}}
How should I fix this error? Any suggestions would be greatly appreciated!
--
Ticket URL: <https://trac.macports.org/ticket/61492#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list