[MacPorts] #63304: clang 3.4 @3.4.2_15: Build fails (incompatible cpu-subtype) on a G3
MacPorts
noreply at macports.org
Tue Jul 27 16:15:58 UTC 2021
#63304: clang 3.4 @3.4.2_15: Build fails (incompatible cpu-subtype) on a G3
-------------------------+----------------------
Reporter: evanmiller | Owner: jeremyhu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords: ppc
Port: clang-3.4 |
-------------------------+----------------------
Comment (by evanmiller):
Yep there's an {{{-maltivec}}} indiscriminately added in
{{{llvm-3.4.2.src/tools/clang/lib/Lex/Makefile}}}:
{{{
ifeq ($(ARCH),PowerPC)
CXX.Flags += -maltivec
endif
}}}
Currently trying to build with that commented out. If it works we'll
likely need another (or broader) discussion about how to handle it, since
there didn't seem to be a consensus about variants vs host checking with
regard to libjpeg-turbo.
In the clang-3.4 case, it might be possible to pass in {{{-mno-altivec}}}
without patching source – in my testing, this flag will override a prior
{{{-maltivec}}} flag.
--
Ticket URL: <https://trac.macports.org/ticket/63304#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list