[cfe-dev] link error in building clang
silvas at purdue.edu
Tue Feb 28 09:26:18 PST 2012
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.
My recommendation is to try building just a `Release` build. You can do
./configure --enable-optimized --disable-assertions
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.
On Tue, Feb 28, 2012 at 3:11 AM, Nikola Smiljanic <popizdeh at gmail.com>wrote:
> Make sure to use "reply to all" so that everybody on the list can see
> your messages.
> On Tue, Feb 28, 2012 at 2:50 AM, Ax Jiang <jiangax09 at gmail.com> wrote:
> > Even if I use --disable-assertions, ld is still broken.
> > And when I tried it on a server with a larger ram, the error is gone.
> > The following questions is that anyway to customize the clang?
> > Sometimes, in some cases, clang is used ONLY as c++ parser.
> I'm not really sure what you mean by this. You can use -fsyntax-only
> to check the syntax of your code, or you could use -E to get the
> preprocessed file.
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev