Subject: port-m68k/15334: Linux-m68k binary compatibility is broken
To: None <>
From: None <>
List: netbsd-bugs
Date: 01/22/2002 13:54:48
>Number:         15334
>Category:       port-m68k
>Synopsis:       COMPAT_LINUX on m68k appears to be broken.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-m68k-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 22 10:55:00 PST 2002
>Originator:     John Klos
>Release:        NetBSD 1.5.1, NetBSD 1.5.3_ALPHA
Sixgirls Computing Labs
System: NetBSD xira 1.5.3_ALPHA NetBSD 1.5.3_ALPHA (XIRA) #0: Mon Oct 22 07:32:01 EDT 2001 root@indy:/home/src/sys/arch/mac68k/compile/XIRA mac68k

NetBSD 1.5.3_ALPHA NetBSD 1.5.3_ALPHA (REVA) #1: Mon Jan 14 09:57:55 EST 2002 amiga
On mac68k, kernels will not compile with option COMPAT_LINUX; on amiga, the kernel will compile but m68k Linux binaries are not executable.

cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -Wno-uninitialized -Wno-main -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc -DHZ="0x3c" -DM68040 -DGRF_COMPAT -DMAXUSERS=32 -D_KERNEL -Dmac68k  -c ../../../../compat/linux/common/linux_termios.c
cpp -traditional -D_LOCORE -I. -I../../../../arch -I../../../.. -nostdinc -DHZ="0x3c" -DM68040 -DGRF_COMPAT -DMAXUSERS=32 -D_KERNEL -Dmac68k ../../../../compat/linux/arch/m68k/linux_sig_machdep.S | sed -e 's/^#.*//' | as -o linux_sig_machdep.o
{standard input}: Assembler messages:
{standard input}:289: Error: "instruction/operands mismatch" -- Statement 'moveq #LINUX_SYS_exit,%d0' ignored
*** Error code 1


reva: {4} file pi_css5
pi_css5: ELF 32-bit MSB executable, Motorola 68000, version 1, statically linked, stripped
reva: {5} ./pi_css5 
./pi_css5: Exec format error. Binary file not executable.
	 (Try to) compile a kernel on an m68k machine with:
	options         COMPAT_LINUX
	options         EXEC_ELF32
and try to run m68k Linux binaries.
	 None known.