Subject: Problems building -current on sparc20
To: None <>
From: Gordon Zaft <>
List: port-sparc
Date: 02/16/2005 14:27:55
I'm having problems building -current on a Sparc20 with 384 MB of RAM
and 2 CPUs.

 The error is:
#   compile  libc/clnt_bcast.po
/usr/src/obj/tooldir.NetBSD-2.0-sparc/bin/sparc--netbsdelf-gcc -O2
-DALL_STATE -DUSG_COMPAT -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wno-sign-compare
-Wno-traditional -Wno-uninitialized -Wreturn-type -Wswitch -Wshadow 
-I/usr/src/lib/libc/include -I/usr/src/lib/libc -DHESIOD -DINET6 -DNLS
-I/usr/src/libexec/ld.elf_so -I/usr/src/lib/libc/dlfcn -DCITRUS_ICONV
-DPORTMAP -DFLOATING_POINT   -nostdinc -isystem
/usr/src/obj/destdir.sparc/usr/include -c    -pg
/usr/src/lib/libc/rpc/clnt_bcast.c -o clnt_bcast.po.tmp
--- bindresvport.po ---
/usr/src/obj/tooldir.NetBSD-2.0-sparc/bin/sparc--netbsdelf-ld -X -r
bindresvport.po.tmp -o bindresvport.po
rm -f bindresvport.po.tmp
sbrk: grow 8192 failed, error = 12
sbrk: grow 8192 failed, error = 12
nbmake: Cannot allocate memory.

*** Failed target:  dependall
*** Failed command: cd /usr/src/lib/libc;
/usr/src/obj/tooldir.NetBSD-2.0-sparc/bin/nbmake realall
*** Error code 2

 The build command is:

./ -j 4 -U distribution

 Is there something I can tweak here?  I just checked and for some
reason my swapfile is only 128M (!), is that the issue?

 Thanks in advance for any pointers, I am a bit rusty at this.
Gordon Zaft