I tried some other configurations. Now with llvm 3.0 + clang 3.0, and expoert CC to be clang -flto -use-gold-plugin,<div>and other ENV variables.<br><div>Good news is the "no archive symbol error message" is gone, but bad news is new error messages appear</div>
<div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">/path/to/ld: error: ../mysys/libmysys.a: member at 8758 is not an ELF object<br>
/path/to/ld: error: ../mysys/libmysys.a: member at 817850 is not an ELF object<br>/path/to/ld: error: ../mysys/libmysys.a: member at 827534 is not an ELF object</blockquote><div><br></div><div>Searched a related thread(where the failed test case have similar error message) in:</div>
<div><a href="http://www.mail-archive.com/libtool@gnu.org/msg12034.html">http://www.mail-archive.com/libtool@gnu.org/msg12034.html</a></div><div>I'm wondering if that issue has been resolved?</div><div><br></div><div>
Best regards,</div><div>Ryan</div><div><div class="gmail_quote">On Thu, Jun 28, 2012 at 3:18 PM, ryan <span dir="ltr"><<a href="mailto:stdstack@gmail.com" target="_blank">stdstack@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks for replying!<div>I didn't install the new binutils to system directory in case it messes thing up.<div>For ranlib, from the error message, it seems to be the reason. But even I export </div><div>RANLIB=/bin/true, clean the code and rebuild, it still fails with the same message.</div>

<div>I created a symlink in /usr/lib/bfd-plugins as suggested in <a href="http://lists.cs.uiuc.edu/pipermail/llvmdev/2010-March/030101.html" target="_blank">http://lists.cs.uiuc.edu/pipermail/llvmdev/2010-March/030101.html</a>.</div>
<div>
Still it doesn't work..</div><div>Really have no idea what to try next.</div><div><br></div><div><br></div><div>Best regards,</div><div>Ryan<div><div class="h5"><br><br><div class="gmail_quote">On Thu, Jun 28, 2012 at 3:05 PM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@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>> Does anyone have some clue on what's going on ?<br>
<br>
</div>You don't need to pass command line options to ar and nm if the plugin<br>
is installed in the correct directories. A guess is that the build<br>
system is running ranlib on the .a files and that is destroying the<br>
index created by nm.<br>
<br>
If you put the plugins in the bfd-plugins directory nm, ar and ranlib<br>
will use them.<br>
<br>
> Thanks very much!<br>
><br>
> Ryan<br>
><br>
<br>
Cheers,<br>
Rafael<br>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div></div>