Opened 22 months ago
Last modified 21 months ago
#66477 assigned defect
port install mpich +native: Failed to configure (on M1) — at Initial Version
Reported by: | chaochinyang (Chao-Chin Yang) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.0 |
Keywords: | arm64 | Cc: | |
Port: | mpich-default |
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
Change History (2)
Changed 22 months ago by chaochinyang (Chao-Chin Yang)
Changed 22 months ago by chaochinyang (Chao-Chin Yang)
Attachment: | config.log added |
---|
Note: See
TracTickets for help on using
tickets.