Problems cross-compiling with clang 3.7 & 3.9 on 10.6
Ken Cunningham
ken.cunningham.webuse at gmail.com
Tue Mar 28 15:37:20 UTC 2017
On 2017-03-28, at 2:18 AM, Mojca Miklavec wrote:
>
> It makes absolutely no sense that I try to use a compiler that has
> never been designed or tested to produce binaries for PPC.
It had always been a design goal for llvm to produce workable PPC code, but although close (lots of things do work) they never quite got there (Jeremy has most of the bugs outlined on the llvm bug reporter), and only quite recently announced (past few months) they were officially dropping the effort (which unsurprisingly has reduced my enthusiasm for trying to get it to work).
> While there are some tools that require C++11 (just two out of
> hundreds this year), building against libc++ doesn't bring any added
> value to start with.
When I started tinkering with it, as you know libc++ was the only way to get clang to support c++11 -- until the recent changes in 3.9 allowed linking against the newer libstdc++. But now it offers nothing.
For reliable c++11 cross-compiling to PPC at present the only thing I could point you towards was an effort to add -arch support to newer versions of gcc that I came across one evening on the web.
Or, if you want, I can make one of my PPC machines available to you via ssh to compile and test your PPC code on. Dave already has access for some gtk stuff he was working on.
Sounds like you're not too interested in putting too much more time into this, so let me know if you actually would be interested in that.
K
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20170328/76205631/attachment.html>
More information about the macports-dev
mailing list