<div dir="ltr">Sorry Anton,<div><br></div><div>By rebuilding it again, I hit a similar bug while linking llvm-tblgen (for ARM):</div><div><br></div><div><div>FAILED: : && /home/rengolin/devel/llvm/install/bin/clang++   -target armv7a-linux-gnueabihf -mcpu=cortex-a9 -I/usr/arm-linux-gnueabihf/include/c++/4.7.3/arm-linux-gnueabihf/ -I/usr/arm-linux-gnueabihf/include/ -mfloat-abi=hard -ccc-gcc-name arm-linux-gnueabihf-gcc -I/home/rengolin/devel/llvm/arm/root/usr/include -Wno-c99-extensions -Wall -W -Wno-unused-parameter -Wwrite-strings -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -fcolor-diagnostics -fno-rtti -O3 -DNDEBUG  -L/home/rengolin/devel/llvm/arm/root/usr/lib/arm-linux-gnueabihf utils/TableGen/CMakeFiles/llvm-tblgen.dir/AsmMatcherEmitter.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/AsmWriterEmitter.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/AsmWriterInst.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/CallingConvEmitter.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/CodeEmitterGen.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/CodeGenDAGPatterns.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/CodeGenInstruction.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/CodeGenMapTable.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/CodeGenRegisters.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/CodeGenSchedule.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/CodeGenTarget.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/DAGISelEmitter.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/DAGISelMatcherEmitter.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/DAGISelMatcherGen.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/DAGISelMatcherOpt.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/DAGISelMatcher.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/DFAPacketizerEmitter.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/DisassemblerEmitter.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/FastISelEmitter.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/FixedLenDecoderEmitter.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/InstrInfoEmitter.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/IntrinsicEmitter.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/OptParserEmitter.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/PseudoLoweringEmitter.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/RegisterInfoEmitter.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/SetTheory.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/SubtargetEmitter.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/TGValueTypes.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/TableGen.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/X86DisassemblerTables.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/X86ModRMFilters.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/X86RecognizableInstr.cpp.o utils/TableGen/CMakeFiles/llvm-tblgen.dir/CTagsEmitter.cpp.o  -o bin/llvm-tblgen -L/usr/lib/gcc/x86_64-linux-gnu/4.7  -L/lib64 lib/libLLVMTableGen.a lib/libLLVMSupport.a -lrt -ldl -ltinfo -lpthread -lz -lpthread -lz && :</div>
<div><br></div><div>lib/libLLVMSupport.a: could not read symbols: File format not recognised</div><div><br></div><div>Note the " -L/usr/lib/gcc/x86_64-linux-gnu/4.7  -L/lib64" arguments that should not have been there.<br>
</div></div><div><br></div><div>I'm not sure why Clang is adding them, but this is clearly wrong, and may be the reason why clang believes the symbols are not recognized.</div><div><br></div><div>cheers,</div><div>--renato</div>
<div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 2 October 2013 06:26, Anton Smirnov <span dir="ltr"><<a href="mailto:dev@antonsmirnov.name" target="_blank">dev@antonsmirnov.name</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">Anyone?</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/9/30 Anton Smirnov <span dir="ltr"><<a href="mailto:dev@antonsmirnov.name" target="_blank">dev@antonsmirnov.name</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I've tried to make using cmake & ninja from scratch - the same linking error. Both configurations (host and target) were done with <span style="white-space:pre-wrap;color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">-DLLVM_ENABLE_PIC</span><span style="white-space:pre-wrap;color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">=</span><span style="white-space:pre-wrap;color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">False flag.</span><div>


<br></div><div>What can i do? Can some one compile it in his dev environment please?</div><div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"></span></div></div><div><div>
<div class="gmail_extra">
<br><br><div class="gmail_quote">2013/9/30 Renato Golin <span dir="ltr"><<a href="mailto:renato.golin@linaro.org" target="_blank">renato.golin@linaro.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr"><div><div>On 30 September 2013 08:23, Tim Northover <span dir="ltr"><<a href="mailto:t.p.northover@gmail.com" target="_blank">t.p.northover@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>> I don't remember the particular manifestation, but it might be what's<br>
> causing your problem.<br>
<br>
</div>Do you remember if there was a bug report about it?<br>
R_ARM_THM_MOVW_ABS_NC didn't turn anything up in bugzilla.<br></blockquote><div></div></div><br></div></div></div><div class="gmail_extra">Hum.... I remember "wanting to create a bug", and even putting it down on my TODO list, but I don't remember if I actually did it. :(</div>



<div class="gmail_extra"><br></div><div class="gmail_extra">I'll try to reproduce it again and will report.</div><div class="gmail_extra"><br></div><div class="gmail_extra">cheers,</div><div class="gmail_extra">--renato</div>



</div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>