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

MacPorts noreply at macports.org
Wed Jan 20 19:35:42 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):

 If I was to stick my head out here then I would say that `openmpi-*` needs
 to point to
 `/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/OpenCL.framework/Versions/A`
 when looking for OpenCL. If you look at my original bug report, the `ls`
 for the `/System/Library/Frameworks/OpenCL.framework/Versions/A` folder
 shows that those files were modified on 1st January 2020 whilst "Bug Sur"
 wasn't released until November 2020. They cannot be "Big Sur" files as
 they are older than "Big Sur" itself. My guess is that
 `/System/Library/Frameworks/OpenCL.framework/Versions/A` is left over from
 "Catalina" and Apple didn't bother to remove it during the upgrade. If I
 run `ls -l
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/OpenCL.framework/Versions/A`
 then the output is:

 {{{
 total 16
 drwxr-xr-x  10 root  wheel   320 14 Jan 19:28:14 2021 Headers
 drwxr-xr-x  13 root  wheel   416 14 Jan 19:28:14 2021 Libraries
 drwxr-xr-x   3 root  wheel    96 14 Jan 19:28:14 2021 Modules
 -rw-r--r--   1 root  wheel  6054 30 Nov 12:28:11 2020 OpenCL.tbd
 drwxr-xr-x   3 root  wheel    96 30 Nov 12:33:53 2020 lib
 }}}

 Those dates look far more reasonable as to when I updated from "Catalina"
 to "Big Sur" (and when I reinstalled Xcode Command Line Tools the other
 day before filing this bug report). Also note that the list is completely
 different to the one at the top of this page and that there is a file
 called `OpenCL.tbd` too. Given that `gcc9` and `gcc10` have to have
 `-L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib` passed to
 them to work on "Big Sur" is it not reasonable to assume that
 `/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk` is the new prefix
 for Xcode Command Line Tools in general and that `mpif90-*` should go
 looking in there for what it needs rather than (the clearly outdated)
 `/System/Library/Frameworks/OpenCL.framework/Versions/A`?

 What do you think? Does that make sense? The paths seem to make sense to
 me and the dates returned by `ls` seem to be consistent. In short, I think
 the current version of OpenMPI needs to look in
 `/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/$FOLDER`
 rather than `/System/$FOLDER` when installed on "Big Sur". I think that
 the current paths only work on "Catalina".

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


More information about the macports-tickets mailing list