[MacPorts] #66477: port install mpich +native: Failed to configure (on M1)
MacPorts
noreply at macports.org
Thu Dec 15 20:38:42 UTC 2022
#66477: port install mpich +native: Failed to configure (on M1)
----------------------------+--------------------
Reporter: chaochinyang | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.0
Resolution: | Keywords:
Port: mpich-default |
----------------------------+--------------------
Description changed by chaochinyang:
Old description:
> I am trying to install `mpich` with `+native` variant on my MacBook Pro
> (16-inch, 2021, Apple M1 Max) with macOS Monterey 12.6.2 and Xcode 14.1.
>
> The error shows that
> {{{
> :info:configure checking for gcc... /usr/bin/clang
> :info:configure checking whether the C compiler works... no
> :info:configure configure: error: in
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_mpich
> /mpich-default/work/mpich-4.0.3':
> :info:configure configure: error: C compiler cannot create executables
> :info:configure See `config.log' for more details
> :info:configure Command failed: cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_mpich
> /mpich-default/work/mpich-4.0.3" && ./configure --prefix=/opt/local
> --disable-dependency-tracking --enable-fortran --disable-silent-rules
> --enable-base-cache --enable-cache --enable-cxx --enable-fast=all
> --enable-shared --enable-versioning --enable-timer-
> type=mach_absolute_time --with-pm=hydra --with-thread-package=posix
> --with-hwloc-prefix=/opt/local --disable-collalgo-tests --disable-f08
> F90FLAGS='' F90='' --libdir=/opt/local/lib/mpich-mp
> --sysconfdir=/opt/local/etc/mpich-mp --program-suffix=-mpich-mp
> --includedir=/opt/local/include/mpich-mp MPICHLIB_CFLAGS="$CFLAGS"
> CFLAGS="" MPICHLIB_CPPFLAGS="$CPPFLAGS" CPPFLAGS=""
> MPICHLIB_CXXFLAGS="$CXXFLAGS" CXXFLAGS="" MPICHLIB_FFLAGS="$FFLAGS"
> FFLAGS="" MPICHLIB_FCFLAGS="$FCFLAGS" FCFLAGS=""
> :info:configure Exit code: 77
> }}}
> but I can compile a simple hello world with either Apple Clang or
> MacPorts gcc12.
>
> I attach both `config.log` and `main.log` here.
>
> Thanks in advance for taking a look into this issue.
>
> /CC
New description:
I am trying to install `mpich` with `+native` variant on my MacBook Pro
(16-inch, 2021, Apple M1 Max) with macOS Monterey 12.6.2 and Xcode 14.1.
The error shows that
{{{
:info:configure checking for gcc... /usr/bin/clang
:info:configure checking whether the C compiler works... no
:info:configure configure: error: in
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_mpich
/mpich-default/work/mpich-4.0.3':
:info:configure configure: error: C compiler cannot create executables
:info:configure See `config.log' for more details
:info:configure Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_mpich
/mpich-default/work/mpich-4.0.3" && ./configure --prefix=/opt/local
--disable-dependency-tracking --enable-fortran --disable-silent-rules
--enable-base-cache --enable-cache --enable-cxx --enable-fast=all
--enable-shared --enable-versioning --enable-timer-type=mach_absolute_time
--with-pm=hydra --with-thread-package=posix --with-hwloc-prefix=/opt/local
--disable-collalgo-tests --disable-f08 F90FLAGS='' F90=''
--libdir=/opt/local/lib/mpich-mp --sysconfdir=/opt/local/etc/mpich-mp
--program-suffix=-mpich-mp --includedir=/opt/local/include/mpich-mp
MPICHLIB_CFLAGS="$CFLAGS" CFLAGS="" MPICHLIB_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="" MPICHLIB_CXXFLAGS="$CXXFLAGS" CXXFLAGS=""
MPICHLIB_FFLAGS="$FFLAGS" FFLAGS="" MPICHLIB_FCFLAGS="$FCFLAGS" FCFLAGS=""
:info:configure Exit code: 77
}}}
but I can compile a simple hello world with either Apple Clang or MacPorts
gcc12.
I attach both `config.log` and `main.log` here.
BTW, I can install `mpich` ''without'' `+native` variant.
Thanks in advance for taking a look into this issue.
/CC
--
--
Ticket URL: <https://trac.macports.org/ticket/66477#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list