[cfe-dev] [LLVMdev] cmake+ninja build error for compiler-rt sources

Kostya Serebryany kcc at google.com
Wed Oct 17 01:54:31 PDT 2012


> I am still getting compiler errors for compiler-rt sources as below.
> Do not know, if the first argument to IsNullLiteralHelper() is to be
> passed as '0' instead of false, in the below lines.
>
> ==========================================
>
> /local/home/mahesha/src/12th_Sep/llvm/projects/compiler-rt/lib/asan/tests/asan_noinst_test.cc:
> In member function ‘virtual void
>
> AddressSanitizerInterface_GetAllocatedSizeAndOwnershipTest_Test::TestBody()’:
>
> /local/home/mahesha/src/12th_Sep/llvm/projects/compiler-rt/lib/asan/tests/asan_noinst_test.cc:373:3:
> error: converting ‘false’ to pointer type for argument 1 of ‘char
> testing::internal::IsNullLiteralHelper(testing::internal::Secret*)’
>

I am also building llvm with cmake+ninja, but haven't seen these warnings
because my default gcc is somewhat old.
With newer gcc (4.6.3) I do see these warnings.
Fixed in r166093.

I'll check if the rest of compiler-rt builds with gcc 4.6.3.

--kcc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121017/df6b359e/attachment.html>


More information about the cfe-dev mailing list