Folks, I'm at a loss trying to add Compiler-RT to an LLVM build, even after checking out the instructions at http://compiler-rt.llvm.org, so I'd appreciate your help. I've tried adding the CMake options LLVM_ENABLE_PROJECTS, LLVM_BUILD_EXTERNAL_COMPILER_RT, LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR, CLANG_DEFAULT_RTLIB. All to no avail. FWIW, I'm building for the targets AArch64, ARM and X86. Feeling like a newbie makes me want to cry... :-} Thank you, -- Evandro Menezes
On 3/20/17 1:47 PM, Evandro Menezes via llvm-dev wrote:> Folks, > > I'm at a loss trying to add Compiler-RT to an LLVM build, even after > checking out the instructions at http://compiler-rt.llvm.org, so I'd > appreciate your help. > > I've tried adding the CMake options LLVM_ENABLE_PROJECTS, > LLVM_BUILD_EXTERNAL_COMPILER_RT, LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR, > CLANG_DEFAULT_RTLIB. All to no avail.You'll need to give a lot more details on what you tried, and how it failed. Without that information, nobody can really help you. Jon> > FWIW, I'm building for the targets AArch64, ARM and X86. > > Feeling like a newbie makes me want to cry... :-} > > Thank you, > >-- Jon Roelofs jonathan at codesourcery.com CodeSourcery / Mentor Embedded
Shot in the dark: double-check that your checkout is under llvm/projects or llvm/runtimes, and wipe your cmake cache before attempting a rebuild. vedant> On Mar 20, 2017, at 12:47 PM, Evandro Menezes via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Folks, > > I'm at a loss trying to add Compiler-RT to an LLVM build, even after checking out the instructions at http://compiler-rt.llvm.org, so I'd appreciate your help. > > I've tried adding the CMake options LLVM_ENABLE_PROJECTS, LLVM_BUILD_EXTERNAL_COMPILER_RT, LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR, CLANG_DEFAULT_RTLIB. All to no avail. > > FWIW, I'm building for the targets AArch64, ARM and X86. > > Feeling like a newbie makes me want to cry... :-} > > Thank you, > > > -- > Evandro Menezes > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
On 03/20/2017 03:33 PM, Jonathan Roelofs wrote:> On 3/20/17 1:47 PM, Evandro Menezes via llvm-dev wrote: >> Folks, >> >> I'm at a loss trying to add Compiler-RT to an LLVM build, even after >> checking out the instructions at http://compiler-rt.llvm.org, so I'd >> appreciate your help. >> >> I've tried adding the CMake options LLVM_ENABLE_PROJECTS, >> LLVM_BUILD_EXTERNAL_COMPILER_RT, LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR, >> CLANG_DEFAULT_RTLIB. All to no avail. > > You'll need to give a lot more details on what you tried, and how it > failed. Without that information, nobody can really help you.OK, what else can I say? I checked out the projects side by side, as I usually do: ~/src/llvm.tip $ ls clang compiler-rt klee libcxx lld llvm clang-tools-extra dragonegg libclc libcxxabi lldb polly So I expected that setting LLVM_ENABLE_PROJECTS="clang;compiler-rt" would be enough to get Compiler-RT added to a functional build tree, since setting it to just "clang" does result in Clang being built. I tired the other variables above for good measure, alas unsuccessfully. In the end, everything gets built as before, except for Compiler-RT, which I expect to be any built-in and sanitizer libraries. Thank you, -- Evandro Menezes
> On Mar 20, 2017, at 12:47 PM, Evandro Menezes via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Folks, > > I'm at a loss trying to add Compiler-RT to an LLVM build, even after checking out the instructions at http://compiler-rt.llvm.org, so I'd appreciate your help. > > I've tried adding the CMake options LLVM_ENABLE_PROJECTSFor this option, you need to follow: http://llvm.org/docs/GettingStarted.html#for-developers-to-work-with-a-git-monorepo <http://llvm.org/docs/GettingStarted.html#for-developers-to-work-with-a-git-monorepo> You can’t add this to an existing build directory, you need to wipe it and re-run cmake (at least for me that’s the only way I found). — Mehdi> , LLVM_BUILD_EXTERNAL_COMPILER_RT, LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR, CLANG_DEFAULT_RTLIB. All to no avail. > > FWIW, I'm building for the targets AArch64, ARM and X86. > > Feeling like a newbie makes me want to cry... :-} > > Thank you, > > > -- > Evandro Menezes > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170320/490b2e5d/attachment.html>
On 03/20/2017 04:37 PM, Mehdi Amini wrote:> >> On Mar 20, 2017, at 12:47 PM, Evandro Menezes via llvm-dev >> <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote: >> >> Folks, >> >> I'm at a loss trying to add Compiler-RT to an LLVM build, even after >> checking out the instructions at http://compiler-rt.llvm.org, so I'd >> appreciate your help. >> >> I've tried adding the CMake options LLVM_ENABLE_PROJECTS > > For this option, you need to follow: > http://llvm.org/docs/GettingStarted.html#for-developers-to-work-with-a-git-monorepo > > You can’t add this to an existing build directory, you need to wipe it > and re-run cmake (at least for me that’s the only way I found).Yes, I have a monorepo, that's why I have projects that I don't care about cloned (e.g., draggonegg). But, as I said, this configuration has worked fine, until I decided to do some work in CRT. And, yes, I tried starting a build from a clean directory. Yet... Thank you, -- Evandro Menezes
Apparently Analagous Threads
- Building the CRT
- [RFC] Preferred error/note style across non-clang tools, e.g. tablegen
- [RFC] Preferred error/note style across non-clang tools, e.g. tablegen
- RISC-V LLVM sync-up call 19 Mar 2020
- [RFC] Preferred error/note style across non-clang tools, e.g. tablegen