Subject: Re: mac68k kernel 1.5.2 build
To: None <collver@linuxfreemail.com>
From: Frederick Bruckman <fredb@immanent.net>
List: port-mac68k
Date: 02/13/2002 10:25:00
On Wed, 13 Feb 2002 collver@linuxfreemail.com wrote:

> I am attempting to build kernel 1.5.2 on a macIIcx.  The error message I
> received is:
>
> cpp -traditional -D_LOCORE -I. -I../../../../arch -I../../../.. -nostdinc -DHZ="0x3c" -DM68030 -DLKM -DDIAGNOSTIC -DGRF_COMPAT -DMAXUSERS=16 -D_KERNEL -Dmac68k ../../../../compat/linux/arch/m68k/linux_sig_machdep.S | sed 's/^#.*//' | as -o linux_sig_machdep.o
> {standard input}: Assembler messages:
> {standard input}:209: Error: "instructions/operands mismatch" -- Statement 'moveq #LINUX_SYS_exit,%d0' ignored
> *** Error code 1

> Is this known, and is there an easy fix other than disabling COMPAT_LINUX?

It is known:

  http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=15334

You'd need to add 'options EXEC_ELF', at least, but that's not
guaranteed to work on a.out (which is the binary format for 1.5.2). Your
best bet, if you have m68k/linux binaries you want to run, is to switch
to ELF/current. ELF isn't even the default binary format on current yet,
so if you're really leery of current, you might want to wait on that.

Frederick