Subject: Re: Fail to compile imlib(-1.9.4.tar.gz)
To: Shigeki Uno <shigeki@mediawars.ne.jp>
From: Tod McQuillin <devin@spamcop.net>
List: port-mac68k
Date: 11/25/1999 19:42:24
On Fri, 26 Nov 1999, Shigeki Uno wrote:

> I've been tring to compile imlib-1.9.4.tar.gz via pkgsrc. 
> I tried many times but have never succeeded yet and error messages
> are as follows:  
>  
> --------Error Messages--------
> 
> [SNIP]
> 
> gmake[2]: Entering directory
> `/usr/pkgsrc/graphics/imlib/work/imlib-1.9.4 /utils' cc
> -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.  -I../gdk_imlib -I../gdk_imlib
>  -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/pkg/lib/glib/include
> -I/usr/ pkg/include/glib -I/usr/pkg/include -I/usr/pkg/include/giflib
> -I/usr/X11R6/ include -I/usr/X11R6/include -I/usr/pkg/lib/glib/include
> -I/usr/pkg/include/glib -I/usr/X11R6/include -I/usr/X11R6/include -O2
> -c testimg.c testimg.c:16656: virtual memory exhausted gmake[2]: ***
> [testimg.o] Error 1 gmake[2]: Leaving directory
> `/usr/pkgsrc/graphics/imlib/work/imlib-1.9.4/utils' gmake[1]: ***
> [all-recursive] Error 1 gmake[1]: Leaving directory
> `/usr/pkgsrc/graphics/imlib/work/imlib-1.9.4' gmake: ***
> [all-recursive-am] Error 2 *** Error code 2
>
> [...]
> 
> Virtual memory exhausted ? Why ? What's going on ? 

I don't know how much RAM or swap space you have configured, but gcc can
use enormous amounts of RAM when doing optimisation, espcially on large
source files.  Try removing the '-O2' from the CFLAGS in the Makefile.
-- 
Tod McQuillin