<div dir="ltr">Should be fixed in r199756. Let me know.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 21, 2014 at 10:08 AM, Chandler Carruth <span dir="ltr"><<a href="mailto:chandlerc@gmail.com" target="_blank">chandlerc@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">Never mind, I see the bug. Working on a fix.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Jan 21, 2014 at 10:07 AM, Chandler Carruth <span dir="ltr"><<a href="mailto:chandlerc@gmail.com" target="_blank">chandlerc@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">Which version of CMake?</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Jan 21, 2014 at 10:06 AM, Chandler Carruth <span dir="ltr"><<a href="mailto:chandlerc@gmail.com" target="_blank">chandlerc@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">Maybe, I'll have to debug. It does seem quite bizarre.</div><div class="gmail_extra"><br><br><div class="gmail_quote">
<div><div>On Tue, Jan 21, 2014 at 10:03 AM, Renato Golin <span dir="ltr"><<a href="mailto:renato.golin@linaro.org" target="_blank">renato.golin@linaro.org</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Chandler,<div><br></div><div>I may be doing this wrong, but I'm getting a weird error in building LLVM with Clang via CMake.</div>
<div><br></div><div>On x86_64:</div><div>$ CC=clang CXX=clang++ cmake -G Ninja ../../src/llvm -DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_TESTS=True -DLLVM_ENABLE_ASSERTIONS=True</div>
<div><br></div><div>On ARM:</div><div>$ CC=clang CXX=clang++ cmake -G Ninja ../src/ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_C_FLAGS=-mcpu=cortex-a15 -DCMAKE_CXX_FLAGS=-mcpu=cortex-a15 -DLLVM_TARGETS_TO_BUILD=ARM -DLLVM_BUILD_TESTS=True -DLLVM_ENABLE_ASSERTIONS=True<br>
</div><div><br></div><div>Warning:</div><div><div>CMake Warning at cmake/modules/HandleLLVMOptions.cmake:117 (message):</div><div> -fPIC is not supported.</div><div>Call Stack (most recent call first):</div><div> cmake/modules/HandleLLVMOptions.cmake:150 (add_flag_or_print_warning)</div>
<div> CMakeLists.txt:286 (include)</div></div><div><br></div><div>Error log:</div><div>Run Build Command:/usr/local/bin/ninja cmTryCompileExec3815591925<br></div><div><div>[1/2] Building C object CMakeFiles/cmTryCompileExec3815591925.dir/src.c.o</div>
<div>FAILED: /home/user/devel/llvm/build/bin/clang -mcpu=cortex-a15 -DC_SUPPORTS_FLAG -std=c++0x -fPIC -o CMakeFiles/cmTryCompileExec3815591925.dir/src.c.o -c src.c</div><div>error: invalid argument '-std=c++0x' not allowed with 'C/ObjC'</div>
<div>ninja: build stopped: subcommand failed.</div></div><div><br></div><div>Why is it adding --std=c++0x on a C compiler?</div><div><br></div><div>Needless to say that with GCC, that doesn't happen (ie. --std=c++0x doesn't get added). Happens both on ARM and x86_64.</div>
<div><br></div><div>Is this a side effect of your changes?</div><div><br></div><div>cheers,</div><div>--renato</div></div>
<br></div></div>_______________________________________________<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/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>