[MacPorts] #55592: libunwind @5.0.1: unrecognized command line option '-stdlib=libstdc++' with clang-3.4
MacPorts
noreply at macports.org
Sun Dec 31 20:22:12 UTC 2017
#55592: libunwind @5.0.1: unrecognized command line option '-stdlib=libstdc++' with
clang-3.4
---------------------------+----------------------
Reporter: sideeffect42 | Owner: jeremyhu
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.4.2
Resolution: wontfix | Keywords:
Port: libunwind |
---------------------------+----------------------
Comment (by kencu):
actually building llvm/clang-3.8 on PPC is pretty easy now. The portfile
does everything for you, building it with gcc6. It builds right through on
10.5 PPC (and mostly also on 10.4 PPC) with no bootstrapping issues.
There is just one step involving clang_rt where the cmake script has an
error, and I just do that part manually. Haven't found the enthusiasm to
rewrite it.
I backported the macports-libstdc++ fixes into 3.8, so you get c++11 by
linking against gcc7's libstdc++, just like on MacPorts now.
{{{
$ port -v installed | grep clang
clang-3.4 @3.4.2_12+analyzer (active) platform='darwin 9' archs='ppc'
date='2017-06-27T16:59:50-0700'
clang-3.8 @3.8.1_9+analyzer+libstdcxx (active) platform='darwin 9'
archs='ppc' date='2017-12-02T15:20:15-0800'
clang_select @2_0 (active) platform='darwin 9' archs='noarch'
date='2017-06-25T17:14:40-0700'
$ port -v installed | grep llvm
ld64-127 @127.2_14+llvm33 (active) platform='darwin 9' archs='ppc'
date='2017-06-25T17:24:10-0700'
llvm-3.3 @3.3_10 (active) platform='darwin 9' archs='ppc'
date='2017-06-25T17:23:00-0700'
llvm-3.4 @3.4.2_12 (active) platform='darwin 9' archs='ppc'
date='2017-06-27T16:53:05-0700'
llvm-3.8 @3.8.1_3 (active) platform='darwin 9' archs='ppc'
date='2017-12-01T22:16:08-0800'
llvm-4.0 @4.0.1_2 (active) platform='darwin 9' archs='ppc'
date='2017-12-02T20:08:46-0800'
llvm_select @2_0 (active) platform='darwin 9' archs='noarch'
date='2017-06-25T17:21:35-0700'
$ clang -v
clang version 3.8.1 (tags/RELEASE_381/final)
Target: powerpc-apple-darwin9.8.0
Thread model: posix
InstalledDir: /opt/local/libexec/llvm-3.8/bin
}}}
If I would just get around to fixing that clang_rt cmake script, I'd post
it up to MacPorts for general use.
c++ exceptions are still broken -- but I think the error is in the
personalily file in that clang_rt, so at least I (probably) know where the
error is...
--
Ticket URL: <https://trac.macports.org/ticket/55592#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list