Subject: Re: "virtual memory exausted" building netbsd-1-6 for sparc on alpha
To: NetBSD/alpha Discussion List <port-alpha@NetBSD.ORG>
From: Dan McMahill <dmcmahill@NetBSD.ORG>
List: tech-toolchain
Date: 11/07/2003 23:46:32
On Fri, Nov 07, 2003 at 05:22:58PM -0500, Greg A. Woods wrote:
> I'm trying a cross-build of netbsd-1-6 for sparc on my alpha. It gets this far:
>
> /build/woods/building/NetBSD-1.6.x-alpha-sparc-tools/bin/sparc--netbsdelf-gcc -O2 -g -DALL_STATE -DUSG_COMPAT -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wreturn-type -Wpointer-arith -Wswitch -Wshadow -Werror -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/proven/work/woods/m-NetBSD-1.6/lib/libc/include -DINET6 -DNLS -D__DBINTERFACE_PRIVATE -I/proven/work/woods/m-NetBSD-1.6/lib/libc/../../libexec/ld.elf_so -I/proven/work/woods/m-NetBSD-1.6/lib/libc/dlfcn -DI18NMODULE_MAJOR=4 -DWITH_RUNE -I/proven/work/woods/m-NetBSD-1.6/lib/libc -DRESOLVDEBUG -DRESOLVSORT -I. -DPOSIX_MISTAKE -DPORTMAP -DFLOATING_POINT -nostdinc -isystem /build/woods/building/NetBSD-1.6.x-sparc-destdir/usr/include -c /proven/work/woods/m-NetBSD-1.6/lib/libc/hash/sha1.c
> /proven/work/woods/m-NetBSD-1.6/lib/libc/hash/sha1.c: In function `_SHA1Transform':
> /proven/work/woods/m-NetBSD-1.6/lib/libc/hash/sha1.c:206: virtual memory exhausted
>
> Is cross-building for sparc on alpha maybe not a good idea for
> netbsd-1-6? (Given the number of other GCC 2.95.3 -O blow-ups I've
> heard rumours of, I'm guessing this won't be the first I encounter.)
I think there are only 1 or two but I can't recall now if that was for a complete build
or just a kernel build. What I've done is just copy the gcc call on that line without the -O2
and then run make again.
-Dan