Subject: Swap space not used? - was Re: KDE compile fails on port-arm32
To: Berndt Josef Wulf <wulf@ping.net.au>
From: Dave Millen <dmillen@largesalad.co.uk>
List: netbsd-help
Date: 09/24/1998 10:32:37
Thanks, removing optimisation on the offending file allows the build to continue,
but I now find that much later in the build, everything grinds to a halt with the
error:

    virtual memory exhausted

I have 32Mb Ram and a 64Mb swap partition which swapctl mounts OK at startup.

'top' shows that the error occurs when physical memory is exhausted and that only
1Mb of the swap partition is used.

Why is the swap partition not being used? ISTR that arm32 users once had to specify
the  swap partition in the bootloader options; is this still the case? If so what
is the syntax?

Any help gratefully received!

TIA
Dave


Berndt Josef Wulf wrote:

> Dave Millen wrote
> >
> > Hi,
> >
> > Can anyone shed any light on the following error when compiling kdebase?
> >
> > root@oak# make
> > <snip>
> > /usr/pkg/bin/libtool --install-la --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> > -I.. -I/usr/X11R6/include/qt -I/usr/X11R6/include -I/usr/pkg/include
> > -I/usr/pkg/include/giflib  -O -c kdebug.cpp
> > g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include/qt -I/usr/X11R6/include
> > -I/usr/pkg/include -I/usr/pkg/include/giflib -O -c -fPIC -DPIC kdebug.cpp
> > mv -f kdebug.o kdebug.lo
> > g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include/qt -I/usr/X11R6/include
> > -I/usr/pkg/include -I/usr/pkg/include/giflib -O -c kdebug.cpp >/dev/null 2>&1
> > *** Error code 1
> >
> > Stop.
> >
> > As you can see, the compiler doesn't give any clues. I believe that all the
> > packages that kde depends on are correctly installed and that my compiler is
> > correctly configured (e.g. mozilla compiles fine, although the shared library
> > version crashes).
> >
>
> Try to compile without optimization. This has helped me a lot of time
> to overcome this hurdle in similar situations.
>

--
'Make it idiot-proof and someone will make a better idiot!'

e-mail: dmillen@largesalad.co.uk
net: http://www.largesalad.co.uk/DJMsoft/