From owner-freebsd-emulation@FreeBSD.ORG Fri Sep 24 22:37:37 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D54DA106564A for ; Fri, 24 Sep 2010 22:37:37 +0000 (UTC) (envelope-from tomdean@speakeasy.org) Received: from mail4.sea5.speakeasy.net (mail4.sea5.speakeasy.net [69.17.117.48]) by mx1.freebsd.org (Postfix) with ESMTP id B590C8FC14 for ; Fri, 24 Sep 2010 22:37:37 +0000 (UTC) Received: (qmail 10259 invoked from network); 24 Sep 2010 22:10:57 -0000 Received: from 24-113-192-17.wavecable.com (HELO [192.168.2.2]) (tomdean@[24.113.192.17]) (envelope-sender ) by mail4.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 24 Sep 2010 22:10:57 -0000 From: "Thomas D. Dean" To: freebsd-emulation@freebsd.org Content-Type: text/plain; charset="UTF-8" Organization: Home Date: Fri, 24 Sep 2010 15:10:57 -0700 Message-ID: <1285366257.2068.15.camel@asus> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Subject: Linux Binaries Core Dump X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: tomdean@speakeasy.org List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2010 22:37:37 -0000 I have FreeBSD 8.1-stable as of 9/17. Most Linux binaries seem to core dump. However, a recently built (on Ubuntu) "hello world" works. I installed the linux_base-f10 port. I have linux.ko loaded. I have a 2nd disk with Ubuntu 10.04 on the same machine. I mounted the Ubuntu file systems on /Ubuntu. I want to drop Ubuntu and run only FreeBSD, but, need a few binaries, like maple and eagle. Most linux binaries under FreeBSD emulation core dump. I deinstalled, cleaned, built, and reinstalled linux_base-f10. I did a portupgrade -rR linux_base-f10. I think I am missing something. Any ideas? tomdean # kldstat Id Refs Address Size Name 1 13 0xc0400000 bc324c kernel 2 1 0xc7505000 68000 radeon.ko 3 1 0xc7572000 14000 drm.ko 4 1 0xc7d83000 26000 linux.ko # /compat/linux/bin/echo "asdf" Segmentation fault (core dumped) # /Ubuntu/bin/echo "asdf" Segmentation fault (core dumped) However, hello world, built on Ubuntu works! # /Ubuntu/home/tomdean/work/hello Hello, world. ldd shows the same libraries for echo and hello. If I boot Ubuntu and mount the FreeBSD file systems, # /FreeBSD/compat/linux/bin/echo "asdf on Ubuntu" asdf on Ubuntu