[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
Fri Apr 8 14:16:06 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):
That's on me. I forgot that `-no-pie` would also be in the V compiler.
{{{#!sh
> grep -rnw * -e '-no-pie'
v-weekly.2022.13/vlib/v/builder/cc.v:252:
debug_options = ['-g', '-no-pie']
vc-de63146da0a0f93628f8a65e70267e2c8d4c7ce1/v_win.c:89288:
debug_options = new_array_from_c_array(2, 2, sizeof(string),
_MOV((string[2]){_SLIT("-g"), _SLIT("-no-pie")}));
vc-de63146da0a0f93628f8a65e70267e2c8d4c7ce1/v.c:91227:
debug_options = new_array_from_c_array(2, 2, sizeof(string),
_MOV((string[2]){_SLIT("-g"), _SLIT("-no-pie")}));
}}}
I promise this will all be automated eventually :) but whilst we're
playing around, would you mind adding the following command to our list?
`sudo sed -i "" "91227d" "$(port work vlang)/vc-
de63146da0a0f93628f8a65e70267e2c8d4c7ce1/v.c"`
I'm going to go with a hunch and assume that `v_win.c` is Windows-only,
and so doesn't need to be patched.
--
Ticket URL: <https://trac.macports.org/ticket/64913#comment:23>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list