<div dir="ltr">It looks like your command fails early in CMake TryCompile tests. Does (your version of) CMake supports using Clang on Windows at all?</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 20, 2015 at 7:02 AM, Daniel Dilts <span dir="ltr"><<a href="mailto:diltsman@gmail.com" target="_blank">diltsman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Has anyone built Compiler-RT on Windows?  I am attempting to compile it for ARM, but I get errors from CMake.  It appears to be trying to pass VC++ flags to Clang.  I am using a version of Clang built from trunk.</div><div><br></div><div><br></div><div><br></div><div>PS D:\llvm\arm_test\compiler-rt-build> cmake -G Ninja -DCMAKE_C_COMPILER=clang.exe -DCMAKE_CXX_COMPILER=clang++.exe -DCM<br>AKE_RC_COMPILER=rc.exe -DCMAKE_CXX_FLAGS="" -DCMAKE_C_FLAGS="" ..\compiler-rt<br>-- The C compiler identification is Clang 3.7.0<br>clang.exe: error: no such file or directory: '/nologo'<br>clang.exe: error: no such file or directory: '/showIncludes'<br>-- The CXX compiler identification is Clang 3.7.0<br>clang.exe: error: no such file or directory: '/nologo'<br>clang.exe: error: no such file or directory: '/showIncludes'<br>-- Check for working C compiler using: Ninja<br>-- Check for working C compiler using: Ninja -- broken<br>CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.1/Modules/CMakeTestCCompiler.cmake:61 (message):<br>  The C compiler "d:/llvm/build/Release/bin/clang.exe" is not able to compile<br>  a simple test program.</div><div>  It fails with the following output:</div><div>   Change Dir: D:/llvm/arm_test/compiler-rt-build/CMakeFiles/CMakeTmp</div><div><br></div><div>  Run Build Command:"d:/llvm/ninja/ninja.exe" "cmTryCompileExec2171879632"</div><div>  [1/2] Building C object<br>  CMakeFiles\cmTryCompileExec2171879632.dir\testCCompiler.c.obj</div><div>  FAILED: d:\llvm\build\Release\bin\clang.exe /nologo /D_DEBUG /MDd /Zi /Ob0<br>  /Od /RTC1 /showIncludes<br>  /FoCMakeFiles\cmTryCompileExec2171879632.dir\testCCompiler.c.obj<br>  /FdCMakeFiles\cmTryCompileExec2171879632.dir\ -c testCCompiler.c</div><div>  clang.exe: error: no such file or directory: '/nologo'</div><div>  clang.exe: error: no such file or directory: '/D_DEBUG'</div><div>  clang.exe: error: no such file or directory: '/MDd'</div><div>  clang.exe: error: no such file or directory: '/Zi'</div><div>  clang.exe: error: no such file or directory: '/Ob0'</div><div>  clang.exe: error: no such file or directory: '/Od'</div><div>  clang.exe: error: no such file or directory: '/RTC1'</div><div>  clang.exe: error: no such file or directory: '/showIncludes'</div><div>  clang.exe: error: no such file or directory:<br>  '/FoCMakeFiles\cmTryCompileExec2171879632.dir\testCCompiler.c.obj'</div><div>  clang.exe: error: no such file or directory:<br>  '/FdCMakeFiles\cmTryCompileExec2171879632.dir\'</div><div>  ninja: build stopped: subcommand failed.</div><div><br></div><div><br></div><div>  CMake will not be able to correctly generate this project.<br>Call Stack (most recent call first):<br>  CMakeLists.txt:12 (project)</div><div><br>-- Configuring incomplete, errors occurred!<br>See also "D:/llvm/arm_test/compiler-rt-build/CMakeFiles/CMakeOutput.log".<br>See also "D:/llvm/arm_test/compiler-rt-build/CMakeFiles/CMakeError.log".</div></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Alexey Samsonov<br><a href="mailto:vonosmas@gmail.com" target="_blank">vonosmas@gmail.com</a></div></div>
</div>