[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
Sun Apr 3 09:58:29 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):
> Thank you. Just for the record, on 10.6 PPC it fails still with:
If this is different to the `sys/errno.h` error, would you mind sending
the logs? Thanks.
> It also ignores +universal and builds only one arch.
Thank you for letting me know. This might be quite difficult to fix, since
vlang has an unusual build setup, but I'll see what I can do. Worst case
scenario, I might disable the universal variant, but hopefully it won't
come to that.
> Attempt to build for ppc32 also fails on Leopard in the same way
I still don't understand why it can't find the header automatically.
However, we can try manually including it and see if that works.
Would you mind adding `-cflags -I${configure.sdkroot}/usr/include` to the
end of `VFLAGS` in the portfile. i.e.
{{{
VFLAGS="-v -cg -showcc -prod -cc ${configure.cc} -cflags [shellescape
${configure.cflags}] -cflags -I${configure.sdkroot}/usr/include" \
}}}
I'm not entirely sure what `${configure.sdkroot}` is on your machine, so
if that doesn't work, try `-cflags -I/usr/include`. Lets see if that
changes anything.
--
Ticket URL: <https://trac.macports.org/ticket/64913#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list