Clang 7.1 for PPC

Ken Cunningham ken.cunningham.webuse at gmail.com
Mon Mar 16 19:47:14 UTC 2020


> Hi everyone,
> 
> I'm trying to install Clang 7.1 on a PowerMac. Clang 7.1 is important
> because it has this bug fix:
> https://bugs.llvm.org/show_bug.cgi?id=39704. <https://bugs.llvm.org/show_bug.cgi?id=39704.> The 39704 issue fixed
> unaligned loads and stores for Altivec.
> 
> Clang 7.0 - which supports PPC - provides this error:
> 
> $ sudo port install clang-7.0
> Error: clang-7.0 cannot be installed for the configured build_arch
> 'ppc' because it only supports the arch(s) 'i386 x86_64'.
> 
> Clang 7.1 results in an error:
> 
> $ sudo port install clang-7.1
> Error: Port clang-7.1 not found
> 
> Would it be possible to update the configuration files to allow Clang
> 7.0 and 7.1 for PowerPC?
> 
> Jeff


That version will not work on PowerPC, so we can’t enable it. All versions after that have had PowerPC support completely stripped / disabled by upstream.

There is, however, a version that almost works — it is not ABI compatible with any part of macOS, but it’s fun to play around with if you have nothing to do.

It’s not presently useful for anything other than playing, but it might be one day, with encouragement.

I have considered setting up a Portfile for it, but as it is just not ready, I didn’t bother.

There is also a nice version of ld64 > 250 included as well, that you can play with.

Do this separately from your MacPorts installation, or you will screw everything up really severely.

Have fun!

<https://github.com/iains/LLVM-7-branch>

Ken


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20200316/10ca6f27/attachment.html>


More information about the macports-users mailing list