[LLVMdev] Build of latest llvm gives warning and error
Duncan Sands
baldrick at free.fr
Sun Jul 24 02:59:21 PDT 2011
Hi Edward,
> Building of llvm with gcc-4.5.2-1 gives these warnings:
>
> 1) Building FileManagerTest
>
> "llvm[4]: Compiling FileManagerTest.cpp for Debug+Asserts build
> C:/Programming/VersionControl/llvm/tools/clang/unittests/Basic/FileManagerTest.cpp:
> In member function 'virtual
> void<unnamed>::FileManagerTest_NoVirtualDirectoryExistsBeforeAVirtualFileIsAdded_Test::TestBody()':
> C:/Programming/VersionControl/llvm/tools/clang/unittests/Basic/FileManagerTest.cpp:100:3:
> warning: passing NULL to non-pointer argument 3 of 'static
> testing::AssertionResult
> testing::internal::EqHelper<true>::Compare(const char*, const char*,
> const T1&, T2*) [with T1 = int, T2 = const clang::DirectoryEntry]'
yes, they are annoying aren't they. They all come from google's unittest
library. I think it is best to fix them upstream at google.
> and this error:
>
> 1) sample.c
>
> "llvm[4]: Compiling sample.c for Debug+Asserts build
> C:/Programming/VersionControl/llvm/projects/sample/lib/sample/sample.c:18:20:
> fatal error: sample.h: No such file or directory
> compilation terminated.
> /bin/rm: cannot lstat
> `/usr/build/llvm/projects/sample/lib/sample/Debug+Asserts/sample.d.tmp':
> No such file or directory
> make[4]: ***
> [/usr/build/llvm/projects/sample/lib/sample/Debug+Asserts/sample.o] Error 1
> make[4]: Leaving directory `/build/llvm/projects/sample/lib/sample'
> make[3]: *** [all] Error 1
> make[3]: Leaving directory `/build/llvm/projects/sample/lib'
> make[2]: *** [all] Error 1
> make[2]: Leaving directory `/build/llvm/projects/sample'
> make[1]: *** [all] Error 1
> make[1]: Leaving directory `/build/llvm/projects'
> make: *** [all] Error 1"
This has already come up on the mailing list. I'm not sure what the resolution
was.
Ciao, Duncan.
More information about the llvm-dev
mailing list