Subject: Re: egcs problem on m68k with -m68060
To: Todd Vierling <tv@NetBSD.ORG>
From: Frederick Bruckman <>
List: current-users
Date: 04/18/1998 01:46:19
On Fri, 17 Apr 1998, Todd Vierling wrote:

> On Fri, 17 Apr 1998, Jeremy Cooper wrote:
> : > All went well, until I tried to compile libc with my own COPTS=-O2 -m68060.
> : > I got the following errors:
> : 
> : > /var/tmp/cc07347a.s: Assembler messages:
> : > /var/tmp/cc07347a.s:51: Error: "instruction/operands mismatch" -- Statement 'fdm
> : > ovel a0@(d0:l),fp0' ignored
> : The problem you are experiencing is not due to egcs, it's due to an old 
> : version of gas (the GNU assembler.)  Egcs is generating assembly
> : instructions that your gas doesn't recognize.  It could be that we haven't
> : a version of gas in the tree that supports these instructions whatsoever.
> This is precisely the problem: our ancient gas doesn't know 68060 addressing
> modes.  There's work in progress to port binutils 2.8.1 (and successively
> 2.9) to the a.out platforms of NetBSD.  Expect an announcement of such
> hopefully within a couple weeks or so.

I can verify that libc compiles successfully with -O3 -m68040, if that's
any consolation. Also the kernel. My `make build' is still in progress on
mac68k, but it certainly looks promising.

On problem I have when compiling libc is that "make" often runs out of
memory, at some point after sucking up nearly half of my 36M of real
memory as viewed with `ps -orss,vsz,command'. I set up a spare disk as a
whopping 500M swap partition, just to see if that would make a difference,
but it doesn't. It will pick up where it left off, more or less, if I set
UPDATE=1, and then go to completion. My ulimit is unlimited. "make" seems
to come up against some hard limit imposed by the kernel. Isn't 36M
supposed to be enough to build the tree? Any ideas?