-
Notifications
You must be signed in to change notification settings - Fork 936
Closed
Labels
Description
Background information
What version of Open MPI are you using? 5.0.2
Describe how Open MPI was installed (e.g., from a source/distribution tarball, from a git clone, from an operating system distribution package, etc.)
Installed from released sources as part of Homebrew build (Homebrew/homebrew-core#166807)
Please describe the system on which you are running
- Operating system/version: macOS 14.4
- Computer hardware: Apple M1
- Network type: not relevant
Details of the problem
Compiling any Fortran MPI code with mpifort hellof.f90 -o hellof with Xcode 15.3 gives:
ld: warning: -commons use_dylibs is no longer supported, using error treatment instead
ld: common symbol '_mpi_fortran_argv_null_' from '/private/tmp/cclH6ubZ.o' conflicts with definition from dylib '_mpi_fortran_argv_null_' from '/opt/homebrew/Cellar/open-mpi/5.0.2_1/lib/libmpi_usempi_ignore_tkr.40.dylib'
collect2: error: ld returned 1 exit status
That is because -commons use_dylibs is now ignored (giving the warning), which leads to the symbol being rejected as defined twice.
dongli