[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
Mon Apr 18 22:00:40 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 barracuda156):

 Replying to [comment:38 harens]:
 > > Should I rather wait until the issue that Ryan mentions is fixed?
 >
 > I've patched it with the new weekly build. Thanks Ryan for the
 suggestion.
 >
 > If you wouldn't mind updating, here's the new set of commands:
 >
 > {{{#!sh
 > > sudo port extract vlang
 > > # Remove errno header
 > > sudo sed -i "" "10d" "$(port work
 vlang)/v-weekly.2022.16/vlib/sync/sync_darwin.c.v"
 > > # Remove -no-pie flag
 > > sudo sed -i "" "255d" "$(port work
 vlang)/v-weekly.2022.16/vlib/v/builder/cc.v"
 > > sudo sed -i "" "91905d" "$(port work vlang)/vc-
 4505557b56638eb931182f764580767e22cf110d/v.c"
 > > # Remove Objective-C Flag
 > > sudo sed -i "" "337d" "$(port work
 vlang)/v-weekly.2022.16/vlib/v/builder/cc.v"
 > > sudo sed -i "" "91978d" "$(port work vlang)/vc-
 4505557b56638eb931182f764580767e22cf110d/v.c"
 > > sudo port -o install vlang
 > }}}

 It worked!
 36-248% port -v installed vlang

 {{{
 The following ports are currently installed:
   vlang @2022.16_0 (active) requested_variants='' platform='darwin 10'
 archs='ppc' date='2022-04-19T05:59:55+0800'
 }}}

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


More information about the macports-tickets mailing list