Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: build issue: _REENTRANT redefined



On 06.09.2019 20:57, Thomas Klausner wrote:
> On Fri, Sep 06, 2019 at 08:01:13PM +0200, Kamil Rytarowski wrote:
>> On 06.09.2019 19:46, Thomas Klausner wrote:
>>> On Fri, Sep 06, 2019 at 03:11:55PM +0200, Kamil Rytarowski wrote:
>>>> The only supported combination is:
>>>>
>>>> HAVE_LLVM=yes MKSANITIZER=yes MKGCC=no MKLLVM=yes
>>>
>>> So I tried the suggested combination, and it didn't work for me either.
>>>
>>> --- dependall-libLLVMAsmParser ---
>>> In file included from /usr/src/external/bsd/llvm/librt/libLLVMAsmParser/../../lib/../dist/llvm/lib/AsmParser/LLLexer.cpp:14:
>>> In file included from /usr/src/external/bsd/llvm/librt/libLLVMAsmParser/../../lib/../dist/llvm/lib/AsmParser/LLLexer.h:18:
>>> In file included from /usr/src/external/bsd/llvm/librt/libLLVMAsmParser/../../lib/../dist/llvm/include/llvm/ADT/APFloat.h:20:
>>> In file included from /usr/src/external/bsd/llvm/librt/libLLVMAsmParser/../../lib/../dist/llvm/include/llvm/ADT/APInt.h:19:
>>> /usr/src/external/bsd/llvm/librt/libLLVMAsmParser/../../lib/../dist/llvm/include/llvm/Support/Compiler.h:387:11: fatal error: 'sanitizer/asan_interface.h' file not found
>>> # include <sanitizer/asan_interface.h>
>>>           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>
>>> build.sh -j 16 -x -V MKDEBUG=yes -V MKDEBUGLIB=yes -V MKLLVM=yes -V MKSANITIZER=yes -V HAVE_LLVM=yes -V MKGCC=no -T /usr/obj/tools.clang -m amd64 -O /usr/obj/src.amd64 -D /usr/obj/amd64.clang.20190906 -R /usr/obj/amd64.clang.20190906.release distribution
>>>
>>>  Thomas
>>>
>>
>> Was this a clean build?
> 
> Yes, this happens with an empty DESTDIR, and 'cvs update' was not
> complaining about any files lying around.
>  Thomas
> 

I have reproduced it. I'm going to investigate it and fix.

It looks like for some reason clang sanitizer files are not copied into
tooldir.

Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index