[MacPorts] #64913: vlang fails for PowerPC: -latomic flag needed, Header file <sys/errno.h>, needed for module `sync` was not found

MacPorts noreply at macports.org
Thu Mar 31 16:20:46 UTC 2022


#64913: vlang fails for PowerPC: -latomic flag needed, Header file <sys/errno.h>,
needed for module `sync` was not found
---------------------------+-------------------------------------------
  Reporter:  barracuda156  |      Owner:  harens
      Type:  defect        |     Status:  accepted
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.2
Resolution:                |   Keywords:  powerpc, leopard, snowleopard
      Port:  vlang         |
---------------------------+-------------------------------------------

Comment (by harens):

 > Thank you. If you don't mind, condition it on build.arch being ppc ppc64
 - that won't prevent building on 10.6 PPC and 10.6.8 Rosetta (conditioning
 on os.arch will break it for Rosetta).

 I'm happy to do that. Would you mind explaining a bit more why it breaks
 for Rosetta? Does it cause a build failure if the condition isn't applied
 here? Also, there are [https://github.com/macports/macports-
 ports/search?q=powerpc+%22-latomic%22&type=code at least 4 different
 ports] that apply `-latomic` based on `os.arch`. These might need to be
 changed.

 > How should I fix that? In build files? Headers should be standard, this
 is on 10.5.8 with Xcode 3.1.4, nothing weird.

 I'm not sure yet, I agree it is odd that it can't find it. However, I
 don't think it's an issue with the port. Just to double check, does
 `/usr/include/errno.h` exist?

 Also, I was just re-reading through the logs, and I noticed you were
 running an older version of the port. The [https://github.com/macports
 /macports-ports/commit/cb50057b0af7afd74f61b687164341256cd24147 current
 version] will still fail to build but I'd like to check if the errors are
 different. You might need to apply the `latomic` patch since I haven't
 added it yet. Thanks for all your help.

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


More information about the macports-tickets mailing list