[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 14:02:54 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:21 harens]:
> 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.
I ran the following:
{{{
36-109:~ svacchanda$ sudo port extract vlang
Portfile changed since last build; discarding previous state.
---> Fetching distfiles for vlang
---> Verifying checksums for vlang
---> Extracting vlang
36-109:~ svacchanda$ sudo sed -i "" "10d" "$(port work
vlang)/v-weekly.2022.13/vlib/sync/sync_darwin.c.v"
36-109:~ svacchanda$ sudo sed -i "" "252d" "$(port work
vlang)/v-weekly.2022.13/vlib/v/builder/cc.v"
36-109:~ svacchanda$ sudo port -v -n -o install vlang -universal
configure.compiler=macports-gcc-6
}}}
And it failed again:
{{{
0.000 ms C gcc-mp-6
gcc-mp-6: error: unrecognized command line option '-no-pie'; did you mean
'-no-pie'?
builder error:
==================
C error. This should never happen.
This is a compiler bug, please report it using `v bug file.v`.
https://github.com/vlang/v/issues/new/choose
You can also use #help on Discord: https://discord.gg/vlang
make: *** [all] Error 1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/64913#comment:22>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list