[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
Wed Apr 6 13:37:50 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):

 Ok this should (hopefully) be an easy fix. From
 https://trac.macports.org/ticket/34064:

 >  I got this from the ld(1) manpage on Leopard which includes '-no_pie'
 even though it looks like /usr/bin/ld doesn't actually support it (based
 on a quick check of "strings" output... sigh).

 It seems like this flag is only added for
 [https://github.com/vlang/v/pull/2607 backtraces to work on modern linux
 distros], so we should be able to patch this out. Would you mind running
 this block below? (n.b. it is different to the one above)

 {{{
 > sudo port extract vlang
 > sudo sed -i "" "10d" "$(port work
 vlang)/v-weekly.2022.13/vlib/sync/sync_darwin.c.v"
 > sudo sed -i "" "252d" "$(port work
 vlang)/v-weekly.2022.13/vlib/v/builder/cc.v"
 > sudo port -o install vlang
 }}}

 Once we've tested whether all these fixes work, I'll write patches for the
 portfile to do all of this automatically. Thanks for your help.

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


More information about the macports-tickets mailing list