[MacPorts] #57032: mozjs52 @52.6.0, mozjs60 @60.1.0: Target C compiler target CPU (unknown) does not match --target CPU (powerpc)
MacPorts
noreply at macports.org
Mon Aug 30 03:14:55 UTC 2021
#57032: mozjs52 @52.6.0, mozjs60 @60.1.0: Target C compiler target CPU (unknown)
does not match --target CPU (powerpc)
-------------------------------+----------------------
Reporter: ballapete | Owner: (none)
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.3
Resolution: | Keywords: powerpc
Port: mozjs52, mozjs60 |
-------------------------------+----------------------
Comment (by evanmiller):
Quick update here after some fooling around this afternoon. I found a
"magic" compiler flag that let me restore the {{{static_assert}}}s in the
code base that I had commented out earlier: {{{-mone-byte-bool}}}. The
{{{bool}}} type is a 4-byte integer by default on Tiger/PPC, but a 1-byte
char on Intel. This results in different layout and sizes when bools are
packed into structs. But passing {{{-mone-byte-bool}}} to GCC on PPC
results in an Intel-compatible bool size, and should fix some instances of
highly optimized code. (Of course, as the
[https://gcc.gnu.org/onlinedocs/gcc/Darwin-Options.html docs] note, it
could also break ABI compatibility with external libraries that expose
{{{bool}}}s.)
Unfortunately the {{{js60}}} shell still isn't starting for me on Tiger,
so nothing else to report for now.
--
Ticket URL: <https://trac.macports.org/ticket/57032#comment:42>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list