[MacPorts] #54993: Processing of port openmpi-gcc7 failed

MacPorts noreply at macports.org
Sat Feb 10 17:02:55 UTC 2018

#54993: Processing of port openmpi-gcc7 failed
  Reporter:  ogourgue      |      Owner:  seanfarley
      Type:  defect        |     Status:  reopened
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.4.1
Resolution:                |   Keywords:  highsierra
      Port:  openmpi-gcc7  |

Comment (by kencu):

 so it's this new definition here in `syslog.h`
 void    syslog(int, const char *, ...) __printflike(2, 3)
 __not_tail_called __DARWIN_ALIAS_STARTING(__MAC_10_13, __IPHONE_NA,
 void    syslog(int, const char *, ...) __printflike(2, 3)
 `gcc` accepts the call if  the test sends it to the second definition. I
 think the `mmacosx-version-min=10.12` makes the first definition work by
 affecting that `DARWIN_ALIAS_STARTING` macro.

 I assume there is some reason Apple did that. It's not a bug, they did it
 on purpose.

 we could add `mmacosx-version-min=10.12` to the `optflags` --- not really
 an optimization flag, though, is it? So that feels a bit off.

 Perhaps we just change the `configure.macosx_deployment_target` to  10.12
 when building on high sierra and newer.

 Is there something that needs to be written into the wrappers as well?

 And finally, I suppose this is only needed on the `gcc` subports.

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

More information about the macports-tickets mailing list