[MacPorts] #53184: A cxx11-compatible clang compiler on 10.5 PPC ?Some progress...
MacPorts
noreply at macports.org
Sun Nov 28 22:49:24 UTC 2021
#53184: A cxx11-compatible clang compiler on 10.5 PPC ?Some progress...
--------------------------+-----------------------------
Reporter: kencu | Owner: kencu
Type: enhancement | Status: closed
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: wontfix | Keywords: leopard powerpc
Port: |
--------------------------+-----------------------------
Comment (by kencu):
Those MacPorts instructions are correct for Intel systems, but will not
work properly on PowerPC systems.
For PowerPC systems, you can build certain early versions of clang
(clang-3.4 up to about clang-7.0) in various ways on PowerPC systems. For
clang-3.4, gcc-4.2 from MacPorts can build it in MacPorts, with minor
Portfile surgery.
I have built up to clang-5.0 myself on PowerPC, and as per Iain's repo
above, he has built up to clang-7.0 (plus llvm-7.0 and libcxx-7.0) on
PowerPC bootstrapping them with gcc-5.0.
However, the built clangs (all of them) are broken in various ways. Most
prominently, they do not have a completed Darwin PowerPC ABI
infrastructure, so when they build software, the calling conventions are
wrong for using system libraries and other libraries that are properly
built against the Darwin PowerPC ABI. This is obviously a deal-breaker
right now.
In addition, the c++ exception handling never worked, and still doesn't.
If you want to get a working clang/llvm compiler on PowerPC darwin, your
best approach at present would be to take Iain's fork of llvm above, try
building it, and then (if you know PowerPC assembly and can read the
Darwin PowerPC ABI manual clearly enough) help him fix the clang lowering
for PowerPC darwin.
I know Iain would like to finish it, but he has a lot of other things on
the plate. I thought I would be able to learn enough to help him finish
it, but I was not able to.
Now I just installed debian linux on my PowerPC systems, and they run
rust, llvm/clang-13, gcc-11, etc with no trouble at all. So that is what I
did, in the end.
--
Ticket URL: <https://trac.macports.org/ticket/53184#comment:31>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list