My interpretation of that is that he supposes that linking just the parser would take less memory, since that's all he intends to use. Unfortunately, that's not really possible AFAIK.<div><br></div><div>My recommendation is to try building just a `Release` build. You can do that with</div>
<div><div>./configure --enable-optimized --disable-assertions</div><div>That should produce object files that are *much* smaller. If that works, try a `Release+Asserts` build. You may also want to just install a binary package: `sudo apt-get install clang` and such, although those packages might be a bit outdated.</div>
<div><br></div><div>--Sean Silva</div><br><div class="gmail_quote">On Tue, Feb 28, 2012 at 3:11 AM, Nikola Smiljanic <span dir="ltr"><<a href="mailto:popizdeh@gmail.com">popizdeh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Make sure to use "reply to all" so that everybody on the list can see<br>
your messages.<br>
<br>
On Tue, Feb 28, 2012 at 2:50 AM, Ax Jiang <<a href="mailto:jiangax09@gmail.com">jiangax09@gmail.com</a>> wrote:<br>
> Even if I use --disable-assertions, ld is still broken.<br>
> And when I tried it on a server with a larger ram, the error is gone.<br>
><br>
> The following questions is that anyway to customize the clang?<br>
> Sometimes, in some cases, clang is used ONLY as c++ parser.<br>
><br>
<br>
I'm not really sure what you mean by this. You can use -fsyntax-only<br>
to check the syntax of your code, or you could use -E to get the<br>
preprocessed file.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div>