Subject: Re: problem crosscompiling mipseb-netbsd on alpha
To: David Brownlee <abs@netbsd.org>
From: Antti Kantee <pooka@iki.fi>
List: tech-toolchain
Date: 05/24/2000 17:20:48
On Wed May 24 2000 at 15:10:28 +0100, David Brownlee wrote:

> 	What happens if you unlimit datasize before compiling?

Well, I'd hope that 130megs be enough, after all the box has only 64mb
of memory. But since you had to ask, after allocating more than 200mb
the box ran out of swap and died (actually I think that the hard drive
is coming apart on that box, but that's a separte issue not related to
this)

> 		David/absolute
> 				       -- www.netbsd.org: No hype required --
> 
> On Wed, 24 May 2000, Antti Kantee wrote:
> 
> > I've been trying to compile a mipseb kernel on -current alpha. I've been
> > unsuccesful here:
> > 
> > /usr/pkg/cross/mipseb-netbsd/bin/cc -O2 -Wall -Werror
> > -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith
> > -Wno-uninitialized -Wno-main -G 0  -mno-abicalls -mno-half-pic
> > -I../../../../../../lib/libkern/arch/mips -I../../.
> > -I../../../../../../arch -I../../../../../.. -nostdinc
> > -I../../../../../../../gnu/sys -DSCSI_DELAY="0" -DMIPS3 -DMIPS3_5200
> > -DDIAGNOSTIC -DTLP_MATCH_21040 -DMAXUSERS=32 -D_KERNEL -Dsgimips  -c
> > ../../../../../../lib/libkern/sha1.c
> > ../../../../../../lib/libkern/sha1.c: In function `SHA1Transform':
> > ../../../../../../lib/libkern/sha1.c:115: virtual memory exhausted
> > *** Error code 1
> > 
> > The compiler takes way more memory than usual before it gives up. The
> > same problem is there when I compile with -O, but with -O0 it compiles
> > clean. Can anyone think of where to start looking for the problem? I'm
> > using mipseb-netbsd from the pkgsrc tree.
> > 
> > -- 
> > Antti Kantee <pooka@iki.fi>                    Of course he runs NetBSD.
> > 

-- 
Antti Kantee <pooka@iki.fi>                    Of course he runs NetBSD.