<div class="gmail_quote">2012/8/3 xunxun <span dir="ltr"><<a href="mailto:xunxun1982@gmail.com" target="_blank">xunxun1982@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
于 2012/8/3 17:44, Ruben Van Boxem 写道:<div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
As it stands, I cannot build nor test compiler-rt. I downloaded the latest sources from svn (<a href="http://llvm.org/svn/llvm-project/compiler-rt/trunk" target="_blank">http://llvm.org/svn/llvm-<u></u>project/compiler-rt/trunk</a>) and ran<br>

cmake ../../Source/compiler-rt -G"MinGW Makefiles"<br>
<br>
and got the following error:<br>
...<br>
-- Detecting CXX compiler ABI info - done<br>
CMake Error at CMakeLists.txt:10 (include):<br>
  include could not find load file:<br>
    LLVMParseArguments<br>
CMake Error at lib/CMakeLists.txt:4 (string):<br>
  string sub-command REGEX, mode MATCH needs at least 5 arguments total to<br>
  command.<br>
CMake Error at lib/CMakeLists.txt:19 (set_target_properties):<br>
  set_target_properties called with incorrect number of arguments.<br>
Call Stack (most recent call first):<br>
  lib/asan/CMakeLists.txt:77 (add_clang_runtime_static_<u></u>library)<br>
CMake Error at lib/asan/lit_tests/CMakeLists.<u></u>txt:1 (configure_lit_site_cfg):<br>
  Unknown CMake command "configure_lit_site_cfg".<br>
-- Configuring incomplete, errors occurred!<br>
<br>
I also tried placing it inside the LLVM tree in the "projects" subdir, to no avail (same error). Adding<br>
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../../<u></u>cmake/Modules)<br>
at the top of the file, got rid of the first, not the subsequent errors.<br>
<br>
The project is disabled  in projects/CMakeLists.txt, so that probably doesn't work either.<br>
<br>
Is there any solution available?<br>
<br>
Thanks,<br>
<br>
Ruben<br>
<br>
PS: please reply to my email address as well, I am not subscribed to llvmdev.<br>
<br>
</blockquote></div></div>
Can you try to use ./configure directly?<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br>Do you mean LLVM configure? Because compiler-rt has no "configure" script, so I doubt LLVM would pick up on that. Besides, compiler-rt is a seperate project, like Clang and lld, it  should be able to build by itself (perhaps dependent on LLVM libs, like Clang and lld).<br>
<br>Ruben<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
Best Regards,<br>
xunxun<br>
<br>
</font></span></blockquote></div><br>