Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Dec 1997 06:40:45 -0500 (EST)
From:      "John S. Dyson" <toor@dyson.iquest.net>
To:        grog@lemis.com (Greg Lehey)
Cc:        chuckr@glue.umd.edu, FreeBSD-Hackers@freebsd.org
Subject:   Re: gcc error
Message-ID:  <199712221140.GAA01265@dyson.iquest.net>
In-Reply-To: <19971222164749.21879@lemis.com> from Greg Lehey at "Dec 22, 97 04:47:49 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Greg Lehey said:
> On Mon, Dec 22, 1997 at 12:58:23AM -0500, Chuck Robey wrote:
> > I was trying to compile ddd version 2.2 for a project, and I got an error:
> >
> > ==> Making all in ./ddd...
> > Building ddd-2.2-i386-unknown-freebsd3.0...
> > c++  -DHAVE_CONFIG_H -DNDEBUG -O2 -g -Wall -fexternal-templates
> > -felide-constructors -fconserve-space -c -I. -I. -I./..
> > -I/usr/X11R6/include -o ddd.o ddd.C
> > ddd.C: In function `int main(int, char **)':
> > ddd.C:2490: virtual memory exhausted
> > *** Error code 1
> >
> > This can't possibly refer to FreeBSD's memory, seeing as this is a big
> > machine, with 192M of swap, and it wasn't even fractionally full.  I think
> > it's some gcc/g++ (note it's a C++ file being compiled) problem, but I
> > don't know how to increase g++'s idea of memory.
> >
> > Does anyone else know how?
> 
> Yes, this is a per-process limit.  Check with ulimit or friends:
> 
Note that GCC (the C++ part) can get really really big.

-- 
John                  | Never try to teach a pig to sing,
dyson@freebsd.org     | it just makes you look stupid,
jdyson@nc.com         | and it irritates the pig.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712221140.GAA01265>