[MacPorts] #62070: mpif90-openmpi-gcc10 fails to link FORTRAN program

MacPorts noreply at macports.org
Wed Jan 20 18:32:32 UTC 2021


#62070: mpif90-openmpi-gcc10 fails to link FORTRAN program
----------------------------+----------------------
  Reporter:  Guymer         |      Owner:  mascguy
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.6.4
Resolution:                 |   Keywords:  bigsur
      Port:  openmpi-gcc10  |
----------------------------+----------------------

Comment (by Guymer):

 I will have a go at installing the previous versions of Xcode and Command
 Line Tools and then give it a try.

 Were you able to reproduce my error with the simple one line "Hello World"
 FORTRAN example?

 What does your `/System/Library/Frameworks/OpenCL.framework/Versions/A`
 folder look like? I note that there are five `OpenCL.framework` folders on
 my system:

 1.
 `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework`
 2.
 `/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/OpenCL.framework`
 3. `/System/Library/Frameworks/OpenCL.framework`
 4.
 `/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework`
 5.
 `/System/Volumes/Data/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/OpenCL.framework`

 If I run `ls` on `$DIR/Versions/A` then I can see that numbers 1, 2, 4 and
 5 have a file called "OpenCL.tbd" in them, if that makes sense. Is it this
 file that `mpif90` is trying to access? If so, why is it looking in the
 one `OpenCL.framework` folder on my system that doesn't have it? Would any
 of the other four folders do? How do I change which folder `mpif90` is
 looking in?

 Do you have any thoughts as to why `mpif90` wants to link in OpenCL but
 `mpicc` doesn't? I cannot understand why OpenCL is required to print
 "Hello World". Or is `mpicc` needing it too but looking in a different
 place?

-- 
Ticket URL: <https://trac.macports.org/ticket/62070#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list