Subject: Re: Darwin emulation?
To: Henry R. Bent <Henry.Bent@oberlin.edu>
From: Jason Thorpe <thorpej@shagadelic.org>
List: port-i386
Date: 04/12/2007 16:55:53
On Apr 12, 2007, at 3:20 PM, Henry R. Bent wrote:

> Hi all,
>
> Does Darwin emulation work on i386?  I have COMPAT_MACH,  
> COMPAT_DARWIN, and EXEC_MACHO turned on but it looks like binaries  
> aren't even trying to run.  I have emulators/darwin_lib installed  
> and have verified that it is universal.  Yet when I try to run /bin/ 
> ls from an OS X 10.4.9 intel machine:
>
> aelfric% ./ls
> ./ls: Exec format error. Binary file not executable.

Our Darwin compat code hasn't been worked on in quite some time, and  
I'm almost certain it has not been updated for OS X on Intel.

>
>
> ktrace is no help, because it never even tries running the binary as  
> anything but netbsd and a shell script:
>
> aelfric% ktrace ./ls
> ./ls: 9: Syntax error: ";" unexpected
> aelfric% kdump
> 28017      1 ktrace   EMUL  "netbsd"
> 28017      1 ktrace   CALL  execve(0xbfbfedeb,0xbfbfed14,0xbfbfed1c)
> 28017      1 ktrace   NAMI  "./ls"
> 28017      1 ktrace   RET   execve -1 errno 8 Exec format error
> 28017      1 ktrace   CALL  execve(0xbbbc77f0,0xbfbfe800,0xbfbfed1c)
> 28017      1 ktrace   NAMI  "/bin/sh"
>
> Am I missing some extra setup, or is this not going to work?
>
> -Henry Bent

-- thorpej