<div dir="ltr">On Thu, Feb 26, 2015 at 9:39 AM, Daniel Dilts <span dir="ltr"><<a href="mailto:diltsman@gmail.com" target="_blank">diltsman@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I am attempting to build for bare-metal ARM.</div></blockquote><div><br></div><div>I found that cross-compiling compiler-rt was best achieved by either using the Make based build, or by writing your own CMakeList.txt outside of the included build system.  Note that you will need a sys root if you are trying to build the sanitizers or the profiler.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><div class="gmail_quote">On Wed, Feb 25, 2015 at 9:13 PM, Saleem Abdulrasool <span dir="ltr"><<a href="mailto:compnerd@compnerd.org" target="_blank">compnerd@compnerd.org</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"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Fri, Feb 20, 2015 at 12:54 PM, Timur Iskhodzhanov <span dir="ltr"><<a href="mailto:timurrrr@google.com" target="_blank">timurrrr@google.com</a>></span> wrote:<br></span><span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr">[+Saleem]<div><div><br><br><div class="gmail_quote">On Fri Feb 20 2015 at 10:31:04 PM Daniel Dilts <<a href="mailto:diltsman@gmail.com" target="_blank">diltsman@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr">I am using CMake 3.1.2.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 20, 2015 at 10:00 AM, Alexey Samsonov <span dir="ltr"><<a href="mailto:vonosmas@gmail.com" target="_blank">vonosmas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><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"><div><div>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></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div><div><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></div></div></blockquote></div></div></blockquote></div></div></blockquote></div></div></div></div></blockquote><div><br></div></span><div>This is unclear to me.  Are you trying to build it for Windows ARM?  Or some other ARM environment?</div><div><div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr"><div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div><div><div dir="ltr"><div><br></div><div><br></div><div>PS D:\llvm\arm_test\compiler-rt-<u></u>build> cmake -G Ninja -DCMAKE_C_COMPILER=clang.exe -DCMAKE_CXX_COMPILER=clang++.<u></u>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/<u></u>Modules/CMakeTestCCompiler.<u></u>cmake:61 (message):<br>  The C compiler "d:/llvm/build/Release/bin/<u></u>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-<u></u>build/CMakeFiles/CMakeTmp</div><div><br></div><div>  Run Build Command:"d:/llvm/ninja/ninja.<u></u>exe" "cmTryCompileExec2171879632"</div><div>  [1/2] Building C object<br>  CMakeFiles\<u></u>cmTryCompileExec2171879632.<u></u>dir\testCCompiler.c.obj</div><div>  FAILED: d:\llvm\build\Release\bin\<u></u>clang.exe /nologo /D_DEBUG /MDd /Zi /Ob0<br>  /Od /RTC1 /showIncludes<br>  /FoCMakeFiles\<u></u>cmTryCompileExec2171879632.<u></u>dir\testCCompiler.c.obj<br>  /FdCMakeFiles\<u></u>cmTryCompileExec2171879632.<u></u>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\<u></u>cmTryCompileExec2171879632.<u></u>dir\testCCompiler.c.obj'</div><div>  clang.exe: error: no such file or directory:<br>  '/FdCMakeFiles\<u></u>cmTryCompileExec2171879632.<u></u>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-<u></u>build/CMakeFiles/CMakeOutput.<u></u>log".<br>See also "D:/llvm/arm_test/compiler-rt-<u></u>build/CMakeFiles/CMakeError.<u></u>log".</div></div>
<br></div></div>______________________________<u></u>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">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/<u></u>mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Alexey Samsonov<br><a href="mailto:vonosmas@gmail.com" target="_blank">vonosmas@gmail.com</a></div></div>
</font></span></div>
</blockquote></div><br></div>
</blockquote></div></div></div></div>
</blockquote></div></div></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>Saleem Abdulrasool<br>compnerd (at) compnerd (dot) org</div>
</font></span></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Saleem Abdulrasool<br>compnerd (at) compnerd (dot) org</div>
</div></div>