<div dir="ltr">Awesome, I'm glad that was the underlying issue!</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 21, 2014 at 10:43 AM, Dmitri Gribenko <span dir="ltr"><<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@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 class="HOEnZb"><div class="h5">On Tue, Jan 21, 2014 at 8:24 PM, Chandler Carruth <<a href="mailto:chandlerc@google.com">chandlerc@google.com</a>> wrote:<br>

><br>
> On Tue, Jan 21, 2014 at 10:20 AM, Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com">gribozavr@gmail.com</a>><br>
> wrote:<br>
>><br>
>> On Tue, Jan 21, 2014 at 8:03 PM, Renato Golin <<a href="mailto:renato.golin@linaro.org">renato.golin@linaro.org</a>><br>
>> wrote:<br>
>> > Chandler,<br>
>> ><br>
>> > I may be doing this wrong, but I'm getting a weird error in building<br>
>> > LLVM<br>
>> > with Clang via CMake.<br>
>><br>
>> I have been debugging a similar issue that I isolated to r199484.  The<br>
>> issue surfaces for me as:<br>
>><br>
>> /opt/centos/devtoolset-1.1/root/usr/bin/ld:<br>
>> ../../lib/libLLVMAArch64CodeGen.a(AArch64AsmPrinter.cpp.o): relocation<br>
>> R_X86_64_32 against `.rodata..L.str5' can not be used when making a<br>
>> shared object; recompile with -fPIC<br>
>> ../../lib/libLLVMAArch64CodeGen.a: could not read symbols: Bad value<br>
>> clang-3.4: error: linker command failed with exit code 1 (use -v to<br>
>> see invocation)<br>
>> [ 95%] make[2]: *** [lib/libLTO.so] Error 1<br>
>><br>
>> The same can be seen on some of our bulidbots (those that use Clang and<br>
>> CMake).<br>
><br>
><br>
> This *could* be the same thing I suppose... If my fix actually helps, please<br>
> let me know. But I don't completely see how this particular error happens so<br>
> I'll be intrigued.<br>
<br>
</div></div>Your fix changed clang_fast bulidbots back to green, thank you!<br>
<div class="HOEnZb"><div class="h5"><br>
Dmitri<br>
<br>
--<br>
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if<br>
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com">gribozavr@gmail.com</a>>*/<br>
</div></div></blockquote></div><br></div>