>>> configure:7444: mpif90 -c -ffree-line-length-none -ffree-line-length-0 -Wno-lto-type-mismatch -O3 -Wno-unused-function -fallow-argument-mismatch -fallow-argument-mismatch -x f95 conftest.f90 >&5 ./configure: line 2482: mpif90: command not found <<<
I'm confused with all the attempts done here. The following 2 builds work for me with petsc v3.21.5: balay@npro petsc % ./configure COPTFLAGS=-O3 CXXOPTFLAGS=-O3 FOPTFLAGS="-O3 -Wno-unused-function -fallow-argument-mismatch" \ --with-debugging=no --download-mpich=https://urldefense.us/v3/__https://www.mpich.org/static/downloads/4.3.0/mpich-4.3.0.tar.gz__;!!G_uCfscf7eWS!aDOCr6A3qNwv-FDpaZo00e9-xL6YxkXq-Q6Dp4fWaqPK1hQdnhQwoyz_x9WDJsSbPHVjh3wiZdxlsGt1KNfyUsrUuw$ --download-hdf5=yes \ --with-hdf5-fortran-bindings=yes --download-fblaslapack=yes \ --download-metis=yes --download-parmetis=yes \ CC=gcc-14 CXX=g++-14 FC=gfortran-14 --download-make=yes \ --download-cmake=https://urldefense.us/v3/__https://gitlab.kitware.com/cmake/cmake/-/archive/v3.31.7/cmake-v3.31.7.tar.gz__;!!G_uCfscf7eWS!aDOCr6A3qNwv-FDpaZo00e9-xL6YxkXq-Q6Dp4fWaqPK1hQdnhQwoyz_x9WDJsSbPHVjh3wiZdxlsGt1KNfrRV7i-w$ \ --download-cmake-cc=clang --download-cmake-cxx=clang++ balay@npro petsc.x % ./configure COPTFLAGS=-O3 CXXOPTFLAGS=-O3 FOPTFLAGS="-O3 -Wno-unused-function -fallow-argument-mismatch" \ --with-debugging=no --download-mpich=https://urldefense.us/v3/__https://www.mpich.org/static/downloads/4.3.0/mpich-4.3.0.tar.gz__;!!G_uCfscf7eWS!aDOCr6A3qNwv-FDpaZo00e9-xL6YxkXq-Q6Dp4fWaqPK1hQdnhQwoyz_x9WDJsSbPHVjh3wiZdxlsGt1KNfyUsrUuw$ --download-hdf5=yes \ --with-hdf5-fortran-bindings=yes --download-fblaslapack=yes \ --download-metis=yes --download-parmetis=yes \ CC=clang CXX=clang++ FC=gfortran-14 --download-make=yes \ --download-cmake=https://urldefense.us/v3/__https://gitlab.kitware.com/cmake/cmake/-/archive/v3.31.7/cmake-v3.31.7.tar.gz__;!!G_uCfscf7eWS!aDOCr6A3qNwv-FDpaZo00e9-xL6YxkXq-Q6Dp4fWaqPK1hQdnhQwoyz_x9WDJsSbPHVjh3wiZdxlsGt1KNfrRV7i-w$ \ --download-cmake-cc=clang --download-cmake-cxx=clang++ Here clang, python is from xcode, gcc-14 is from brew >>>>> balay@npro ~ % sw_vers ProductName: macOS ProductVersion: 15.4.1 BuildVersion: 24E263 balay@npro ~ % python3 --version Python 3.9.6 balay@npro ~ % clang --version Apple clang version 17.0.0 (clang-1700.0.13.3) Target: arm64-apple-darwin24.4.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin balay@npro ~ % gcc-14 --version gcc-14 (Homebrew GCC 14.2.0_1) 14.2.0 Copyright (C) 2024 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I'll suggest: - avoid conda - start with a clean petsc git repo: rm -rf arch* git clean -f -d -x git reset --hard git checkout v3.21.5 - perhaps update to latest xcode [as this worked for me] - reinstall brew - as suggested at https://urldefense.us/v3/__https://petsc.org/release/install/install/*installing-on-macos__;Iw!!G_uCfscf7eWS!aDOCr6A3qNwv-FDpaZo00e9-xL6YxkXq-Q6Dp4fWaqPK1hQdnhQwoyz_x9WDJsSbPHVjh3wiZdxlsGt1KNdYSvk6nw$ - use xcode clang/clang++ instead of brew clang/clang++ (or gcc-14/gfortran-14) for cmake - use xcode clang/clang++ for PETSc as-well [unless you really need a build with gcc-14. We primarily require gfortran from brew] - use xcode/python [not brew/python]. Satish On Tue, 29 Apr 2025, Jeffrey Hyman wrote: > Made it a little further. Then some new clang errors. > > clang: error: unknown argument: '-mfp16-format=ieee'