[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 4 19:07:11 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):

 Replying to [comment:16 barracuda156]:
 > Replying to [comment:15 harens]:
 >
 > Works correctly on 10.6 PPC:
 >
 > {{{
 > 36-109% /opt/local/bin/gcc-mp-10 -o demo
 /Users/svacchanda/Desktop/demo.c
 > 36-109% /Users/svacchanda/Desktop/demo
 >  Value of errno: 2
 >  %
 > }}}
 >
 > And yes, I got the same on 10.5.8:
 >
 > {{{
 > 36-109:~ svacchanda$ /Users/svacchanda/demo
 >  Value of errno: 2
 > }}}
 >
 > P. S. I am in the process of moving to `gcc11` on 10.5.8, so in few days
 will be able to test with it.


 Thanks for running that. I wanted to check whether gcc could find
 `sys/errno.h`, and it seems that it can. Ignore the `VFLAGS` fix; I don't
 think that it will make a difference.

 Until I find a better solution, would you mind removing the `errno`
 reference in vlang? It's only required for a
 [https://github.com/vlang/v/commit/8f6fec4364b5eaf00a5ae07c70517cc3fc74e33b
 specific concurrency example], and so shouldn't make that much of a
 difference during runtime:

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

 Just to note that this is not a fix, it's just a temporary patch until I
 find something better. This problem is a bit tricky :)

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


More information about the macports-tickets mailing list