NetBSD Problem Report #15334

Received: (qmail 5434 invoked from network); 22 Jan 2002 18:54:49 -0000
Message-Id: <200201221854.g0MIsm422251@xira.sixgirls.org>
Date: Tue, 22 Jan 2002 13:54:48 -0500 (EST)
From: john@sixgirls.org
Reply-To: john@ziaspace.com
To: gnats-bugs@gnats.netbsd.org
Subject: Linux-m68k binary compatibility is broken
X-Send-Pr-Version: 3.95

>Number:         15334
>Category:       port-amiga
>Synopsis:       COMPAT_LINUX on amiga appears to be broken.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-amiga-maintainer
>State:          suspended
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 22 18:55:00 +0000 2002
>Closed-Date:    
>Last-Modified:  Sat Aug 21 01:02:25 +0000 2004
>Originator:     John Klos
>Release:        NetBSD 1.5.1, NetBSD 1.5.3_ALPHA
>Organization:
Sixgirls Computing Labs

>Environment:

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 reva.sixgirls.org 1.5.3_ALPHA NetBSD 1.5.3_ALPHA (REVA) #1: Mon Jan 14 09:57:55 EST 2002     jean@reva.sixgirls.org:/usr/cvs/release-1-5/src/sys/arch/amiga/compile/REVA amiga
>Description:
On mac68k, kernels will not compile with option COMPAT_LINUX; on amiga, the kernel will compile but m68k Linux binaries are not executable.

mac68k:
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

Stop.


amiga:
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.

>How-To-Repeat:
	 (Try to) compile a kernel on an m68k machine with:
	options         COMPAT_LINUX
	options         EXEC_ELF32
and try to run m68k Linux binaries.
>Fix:
	 None known.
>Release-Note:
>Audit-Trail:

From: Frederick Bruckman <fredb@immanent.net>
To: john@sixgirls.org
Cc: gnats-bugs@gnats.NetBSD.ORG
Subject: Re: port-m68k/15334: Linux-m68k binary compatibility is broken
Date: Tue, 22 Jan 2002 17:28:52 -0600 (CST)

 On Tue, 22 Jan 2002 john@sixgirls.org wrote:

 > On mac68k, kernels will not compile with option COMPAT_LINUX; on
 > amiga, the kernel will compile but m68k Linux binaries are not
 > executable.

 It's futile to try to support linux/m68k/ELF binaries under a.out. You
 can't even run NetBSD/m68k/ELF binaries under a.out.

 For what it's worth, I'm able to build a GENERIC kernel plus "options
 COMPAT_LINUX"  with the 1.5AZ/mac68k/ELF toolchain. I don't have any
 m68k/linux binaries to try it with, though. The switch to ELF on
 mac68k isn't even official yet, but I'd be happy to send you the
 kernel, if you'd like to test it, or you should be able to build one
 yourself fairly easily using the new toolchain mechanism in the
 current sources.

 Frederick


State-Changed-From-To: open->analyzed 
State-Changed-By: scw 
State-Changed-When: Fri Apr 5 21:43:52 BST 2002 
State-Changed-Why:  

John has confirmed COMPAT_LINUX to be working on mac68k now. However, amiga 
is still broken (even after the ELF switch). 

One hunch is that it may be due to Amiga's 8KB MMU page size... 


Responsible-Changed-From-To: port-m68k-maintainer->port-amiga-maintainer 
Responsible-Changed-By: scw 
Responsible-Changed-When: Fri Apr 5 21:43:52 BST 2002 
Responsible-Changed-Why:  

Looks to be a problem specific to port-amiga. 
State-Changed-From-To: analyzed->suspended 
State-Changed-By: jdolecek 
State-Changed-When: Sat Aug 21 01:02:01 UTC 2004 
State-Changed-Why:  
Apparently no-one is working on this one currently. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.