On Mon, 1 Apr 2024, Zongze Yang wrote: > > I noticed this in the config.log of OpenMPI: > ``` > configure:30230: checking to see if mpifort compiler needs additional linker > flags > configure:30247: gfortran -o conftest -fPIC -ffree-line-length-none > -ffree-line-length-0 -Wno-lto-type-mismatch -g -O0 -fallow-argument-mismatch > -Wl,-flat_namespace -Wl,-commons,use_dylibs conftest.f90 >&5 > ld: warning: -commons use_dylibs is no longer supported, using error > treatment instead > configure:30247: $? = 0 > configure:30299: result: -Wl,-commons,use_dylibs > ``` > So, I find it odd that this flag isn't picked up on your platform, as it only > checked the exit value.
I get: configure:30247: gfortran -o conftest -fPIC -ffree-line-length-none -ffree-line-length-0 -Wno-lto-type-mismatch -g -O0 -fallow-argument-mismatch -Wl,-flat_namespace -Wl,-commons,use_dylibs conftest.f90 >&5 ld: unknown options: -commons collect2: error: ld returned 1 exit status configure:30247: $? = 1 configure: failed program was: | program test | integer :: i | end program configure:30299: result: none Note, I have and older xcode-15/CLT version: petsc@npro ~ % clang --version Apple clang version 15.0.0 (clang-1500.1.0.2.5) Target: arm64-apple-darwin23.3.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin Satish
