[DOCS] Review requested: How to Setup an Arch Linux Buildbot

Mikael Lyngvig mikael at lyngvig.org
Fri Nov 22 13:35:13 PST 2013


I figured it out - it just eluded my memory for a second.  Using ccache is
simply a matter of specifying the correct environment variables in the
value returned by _get_clang_builders() in Zorg.  I actually did this
initially but then got so excited about CCache that I decided to use it
globally ;-)

On Arch Linux, you simply make a soft link from /usr/bin/ld.gold to
/usr/local/bin/ld and everything works as expected.

Okay, I've already done most of what you requested and will find a way to
eliminate the redundancy in this and future documents.


-- Mikael


2013/11/22 Renato Golin <renato.golin at linaro.org>

> On 22 November 2013 20:52, Mikael Lyngvig <mikael at lyngvig.org> wrote:
>
>> 1. I'm not sure I need the swap file at all after I switched to using
>> Gold.  I guess I should try it out before I submit the document to be
>> committed.  The swap file will only be used if needed, so it shouldn't slow
>> down the build unless it is really needed.  How do you use Gold in the
>> proper way?  LD=ld.gold cmake ...?
>>
>
> On Debian, when you install binutils-gold, the system already updates the
> alternatives to use that by default, so you don't need to do anything. I
> don't know Arch well enough to know how it will behave. My Arch system
> seems to have gold already, and ld is a hardlink (or a copy) to ld.bfd. In
> this case, using the autoconf/cmake alternatives for selecting the
> toolchain is recommended, or a symlink. (in this case it's ok because gold
> IS a linker, while ccache is NOT gcc).
>
>
> 2. I must admit that I am blissfully unaware of CMake supporting CCache?
>>  What do I need to to use CCache the proper way? :-)  Is it only a matter
>> of using: CC="ccache gcc" CXX="ccache g++" cmake ...?  Besides, I believe
>> the given configuration uses Autoconf and not CMake.  It might be better to
>> use CMake, though.
>>
>
> Yes, it should be just a matter of setting the appropriate toolchain
> selection on autoconf/cmake. CC and CXX should just work.
>
>
> 3. I am aware that there's already a document on how to set up a buildbot
>> slave, but I am aiming for a single one-shot document that describes all
>> steps in a single document.  I'll put in a link and consider if the
>> existing document needs updates (which I don't think).  My plan is actually
>> to make all in all three of these walk-through documents: Arch Linux,
>> Debian, and Windows.  After that, I feel people should have sufficient info
>> to set up a buildbot slave without further instructions.
>>
>
> What we normally do in LLVM docs is to never duplicate anything. So, if
> there is a doc on buildslaves, you add a small paragraph saying to look at
> the other document, and come back when you finished. It's better in the
> long run than having to update lots of documents (in your case, three at
> least) later when things change. ;)
>
> cheers,
> --renato
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131122/9b224de3/attachment.html>


More information about the llvm-commits mailing list