[LLVMdev] [lld] buildbot configuration on using -fsanitize options
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Fri Sep 13 02:37:56 PDT 2013
The bootstrap bot currently builds with libstdc++. AFAIU, lld does not
support that.
It would need to be switched to libc++. Also, MSan uses a precompiled,
instrumented libstdc++ binary, which should be replaced with libc++
built from source. We've got a script for it, which is not used at the
moment:
https://code.google.com/p/address-sanitizer/source/browse/trunk/build/scripts/slave/bootstrap/build_libcxx.sh
This looks like a non-trivial amount of work that I would be not have
time for in the near future.
You are welcome to try.
On Thu, Sep 12, 2013 at 11:53 PM, Shankar Easwaran
<shankare at codeaurora.org> wrote:
> Hi Evgeniy,
>
> Can you add the step to checkout lld and build and run the unittests then ?
>
> Thanks
>
> Shankar Easwaran
>
>
> On 9/10/2013 4:59 AM, Evgeniy Stepanov wrote:
>>
>> Does it build with libstdc++? I've got this with fresh clang, -std=c++11:
>>
>> In file included from
>> ../projects/lld/lib/ReaderWriter/ELF/./SectionChunks.h:19:
>> In file included from ../projects/lld/include/lld/Core/Parallel.h:28:
>> In file included from
>>
>> /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/condition_variable:38:
>>
>> /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/chrono:535:6:
>> error: no matching constructor for initialization of 'duration' (aka
>> 'std::chrono::duration<long, std::ratio<1, 1000000> >')
>> : __d(__t.time_since_epoch())
>>
>> On Tue, Sep 10, 2013 at 1:28 PM, Alexey Samsonov <samsonov at google.com>
>> wrote:
>>>
>>> FYI We have an upstream bootstrap bot
>>> (http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap) that
>>> does a number of things including running llvm/clang tests under
>>> ASan/MSan.
>>> Probably we can add a couple of steps that would checkout lld and run
>>> check-lld in ASan-ified/MSan-ified build trees.
>>>
>>>
>>> On Mon, Sep 9, 2013 at 9:00 AM, Shankar Easwaran
>>> <shankare at codeaurora.org>
>>> wrote:
>>>>
>>>> On 9/8/2013 11:48 PM, Chandler Carruth wrote:
>>>>>
>>>>> On Sun, Sep 8, 2013 at 9:29 PM, Shankar Easwaran
>>>>> <shankare at codeaurora.org>wrote:
>>>>>
>>>>>> Do you know if llvm itself gets tested as a complete build with the
>>>>>> fsanitize options ?
>>>>>>
>>>>>> Enabling tsan seems to be a good idea too.
>>>>>>
>>>>> We test it very regularly with all of the sanitizers. We've not been
>>>>> able
>>>>> to add these bots easily due to infrastructure issues.
>>>>
>>>> Thanks for the info Chandler. I would like to add the extra fsanitize
>>>> configs to the lld buildbot to detect problems early.
>>>>
>>>> There have been a bunch of temporary string issues, which would have
>>>> been
>>>> easily caught by the sanitizer tools.
>>>>
>>>>
>>>> Thanks
>>>>
>>>> Shankar Easwaran
>>>>
>>>> --
>>>> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
>>>> hosted
>>>> by the Linux Foundation
>>>>
>>>> _______________________________________________
>>>> LLVM Developers mailing list
>>>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
>>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>>
>>>
>>>
>>>
>>> --
>>> Alexey Samsonov, MSK
>>>
>>> _______________________________________________
>>> LLVM Developers mailing list
>>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>>
>>
>
>
> --
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by
> the Linux Foundation
>
More information about the llvm-dev
mailing list