Subject: Problems building -current on sparc20
To: None <port-sparc@netbsd.org>
From: Gordon Zaft <gordonzaft@gmail.com>
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 
-Werror    -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT
-I/usr/src/lib/libc/include -I/usr/src/lib/libc -DHESIOD -DINET6 -DNLS
-DYP -D__DBINTERFACE_PRIVATE -DI18NMODULE_MAJOR=4 -DCITRUS
-I/usr/src/libexec/ld.elf_so -I/usr/src/lib/libc/dlfcn -DCITRUS_ICONV
-DWITH_RUNE -I/usr/src/lib/libc -DPOSIX_MISTAKE -DCOMPAT__RES
-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:

./build.sh -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
gordonzaft@gmail.com