Subject: Re: Optimizer broken in GNU C++ version egcs-2.91.66 19990314 (egcs-1.1.2 release)
To: None <bob@kunk.jriver.com>
From: None <mcmahill@mtl.mit.edu>
List: port-mac68k
Date: 06/29/1999 08:43:24
You might try just increasing the memory you'll let 1 process get. To see
current settings (under tcsh), use 'limit'. For example on my MacIIci, I
see:
zaxxon-% limit
cputime unlimited
filesize unlimited
datasize 16384 kbytes
stacksize 512 kbytes
coredumpsize unlimited
memoryuse 27996 kbytes
descriptors 64
memorylocked 9332 kbytes
maxproc 80
the 16Mb data size is too small for some really big things so something
like
limit datasize 64000
or
ulimit datasize
may help.
-Dan
On Tue, 29 Jun 1999 bob@kunk.jriver.com wrote:
> While trying to compile kde on a Performa 575 with 36 megs of ram and 72
> megs swap, I get...
>
> ----
> Making all in kab
> gmake[2]: Entering directory `/usr/pkgsrc/x11/kdelibs/work/kdelibs-1.1.1/kab'
> /usr/pkg/bin/pkglibtool-1.2p1 --cplusplus --install-la --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../kdecore -I../kdeui -I../kfile -I../kfmlib -I/usr/X11R6/include/qt -I/usr/X11R6/include -O2 -I/usr/pkg/include -I/usr/pkg/include -c addressbook.cc
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../kdecore -I../kdeui -I../kfile -I../kfmlib -I/usr/X11R6/include/qt -I/usr/X11R6/include -O2 -I/usr/pkg/include -I/usr/pkg/include -c -fPIC -DPIC addressbook.cc
> addressbook.cc: In method `bool AddressBook::nameOfField(const class string &, class string &)':
> addressbook.cc:1237: virtual memory exhausted
> gmake[2]: *** [addressbook.lo] Error 1
> ---
>
> If I go to verbose mode on g++ I get
>
> ---
> /usr/libexec/cc1plus /tmp/ccLuJYa6.ii -quiet -dumpbase addressbook.cc -O2 -version -fPIC -o /tmp/ccFcPQKc.s
> GNU C++ version egcs-2.91.66 19990314 (egcs-1.1.2 release) (m68k-netbsd) compiled by GNU C version egcs-2.91.66 19990314 (egcs-1.1.2 release).
> addressbook.cc: In method `bool AddressBook::nameOfField(const class string &, class string &)':
> addressbook.cc:1237: virtual memory exhausted
> ---
>
> However, if I remove the -O2 from the compile line...
>
> ---
> /usr/libexec/cc1plus /tmp/ccxrctPz.ii -quiet -dumpbase addressbook.cc -version -fPIC -o /tmp/ccjkTllC.s
> GNU C++ version egcs-2.91.66 19990314 (egcs-1.1.2 release) (m68k-netbsd) compiled by GNU C version egcs-2.91.66 19990314 (egcs-1.1.2 release).
> as -k -K -o addressbook.o /tmp/ccjkTllC.s
> ---
>
> It works
>
> Bob
> --
> Robert E. Brose II N0QBJ
> http://www.jriver.com/~bob/
> bob@kunk.jriver.com
>