[llvm-bugs] [Bug 25753] compiler-rt is built with the wrong toolchain (bootstrap compiler rather than built clang), linking fails when using clang older than 3.5 (eg: Mavericks and earlier Xcodes)

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 14 09:29:34 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=25753

Jeremy Huddleston Sequoia <jeremyhu at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #10 from Jeremy Huddleston Sequoia <jeremyhu at apple.com> ---
Sorry Chris, but that doesn't actually work.

I tested that with our llvm-3.8 port on Mountain Lion in MacPorts without
success.  The LLVM_BUILD_EXTERNAL_COMPILER_RT=ON option causes none of
compiler_rt to be built at all.

compiler-rt has always been in llvm/projects/compiler-rt.  I don't see a
"runtimes" directory, so I assume that's what you meant.  AFAIK, it has to be
placed there and there isn't really another option.  Not doing that will
certainly cause failure.  Perhaps I'm missing something there ?

The issue is that compiler_rt should be built, but it (and likely the rest of
the runtime libs for that matter) using the just-built clang and not the
compiler that was used to build llvm and clang.  The old autoconf-based build
system used the built clang, but the cmake build system does not.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160914/e83fdf27/attachment.html>


More information about the llvm-bugs mailing list