[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-alt
Subject:    [gentoo-alt] clang 6.0.0 / lld Darwin
From:       Michael Weiser <michael () weiser ! dinsnail ! net>
Date:       2018-04-10 21:05:36
Message-ID: 20180410210536.GB13347 () weiser ! dinsnail ! net
[Download RAW message or body]

Hi,

I recently upgraded my Prefix on x86_64-apple-darwin17 (macOS 10.13.4)
to clang 6.0.0 with only minor fallout (cmake doesn't build). I again
just duplicated libcxx and libcxxabi ebuilds. Slotting worked as
intended so that clang 5.0.1 remained available in case of problems.

LLVM however is depending on libcxx of the same major version:

kernel_Darwin? (
                <sys-libs/libcxx-$(ver_cut 1-3).9999

This causes emerge trying to downgrade libcxx as long as llvm-5 remains
installed:

[nomerge       ]   sys-devel/llvm-5.0.1 
[ebuild     UD ]    sys-libs/libcxx-5.0.1 [6.0.0]

sys-libs/libcxx:0

  (sys-libs/libcxx-6.0.0:0/0::local, installed) pulled in by >=sys-libs/libcxx-6.0.0[...]
required by (sys-devel/clang-runtime-6.0.0-r1:6.0.0/6.0.0::gentoo_prefix, installed)

  (sys-libs/libcxx-5.0.1:0/0::gentoo_prefix, ebuild scheduled for merge) pulled in by
    <sys-libs/libcxx-5.0.1.9999 required by (sys-devel/llvm-5.0.1:5/5::gentoo_prefix, installed)

Is it a real thing that llvm needs a matching libcxx? The rest of the
prefix currently just assumes that @rpath/libc++.1.dylib remains
compatible on upgrade which has worked so far.

I've compared to the main Gentoo repo and synced the ebuilds for
libcxxabi and libcxx (requiring adjustment and installation of llvm-libunwind).
It's not slotted there either and should face the same problem. So I
guess this is still work in progress.

Because Apple still hasn't released any sources of Xcode 9, I took the
opportunity to look into lld and whether it could be used as a
replacement for ld64 yet. Unfortunately that doesn't work. Clang calls
it with ld64 options it does not emulate (which it's supposed to do) and
LLVM developers themselves say that development is stalled as recently
as April 2017[1].  So no luck there.

While binutils bfd seems to have some support for Mach-O now, binutils
ld still refuses to configure on Darwin.

[1] https://groups.google.com/forum/?_escaped_fragment_=msg/llvm-dev/rc7TWTY03Sc/z4SdD2G7AgAJ
-- 
Michael
I'm against it!

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic