From owner-freebsd-questions@FreeBSD.ORG Thu Aug 28 11:31:55 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C1B46582 for ; Thu, 28 Aug 2014 11:31:55 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8B30117F0 for ; Thu, 28 Aug 2014 11:31:54 +0000 (UTC) Received: from [192.168.0.27] (rbn1-216-180-19-20.adsl.hiwaay.net [216.180.19.20]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id s7SBVqdQ002336 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 28 Aug 2014 06:31:53 -0500 Message-ID: <53FF149F.4020704@hiwaay.net> Date: Thu, 28 Aug 2014 06:38:07 -0500 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 CC: "FreeBSD Questions !!!!" Subject: Re: Running Linux executables under FBSD 9.3 .... References: <53FE3911.6020906@hiwaay.net> <53FEA167.30303@hiwaay.net> <20140828061610.f0fa59a5.freebsd@edvax.de> In-Reply-To: <20140828061610.f0fa59a5.freebsd@edvax.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2014 11:31:55 -0000 On 08/27/14 23:16, Polytropon wrote: > On Wed, 27 Aug 2014 22:26:31 -0500, William A. Mahaffey III wrote: >> That little factoid (no 64-bit emulation) is unfortunately understated >> in the docs, as far as I can tell (I never found it) :-/ .... > In general, when attempting to run Linux binaries, you should > pay attention to fulfill all the requirements: > > /etc/rc.conf: linux_enable="YES" > > /etc/fstab: linproc /compat/linux/proc linprocfs rw 0 0 > > Installed: linux_base-f10 and linux-f10-* compatibility packages > > For example, I'm using this to play (32 bit) Linux games on a > (32 bit) FreeBSD system without any problems. I have also used > this to get a crappy Canon laser printer to work on FreeBSD > (which basically was impossible). :-) > > The problem you've encountered, > >>>> [wam@kabini1, ~, 2:55:55pm] 446 % file `which PreBFCGL.SSE4.1.TEST.static` >>>> /usr/local/bin/PreBFCGL.SSE4.1.TEST.static: ELF 64-bit LSB executable, >>>> x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for >>>> GNU/Linux 2.6.9, stripped >>>> [wam@kabini1, ~, 2:55:59pm] 447 % PreBFCGL.SSE4.1.TEST.static >>>> ELF binary type "0" not known. >>>> /usr/local/bin/PreBFCGL.SSE4.1.TEST.static: Exec format error. Binary file >>>> not executable. > is something that could probably be cured soon if you're willing > to upgrade to FreeBSD 10; 10.1 is around the corner, maybe its > 64 bit version will work for your Linux program? > > For this specific topic, the documentation for the Linux ABI could > express the limitations more explicitely, the "at this time" state- > ment on top the synopsis: > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu.html > > See 11.2. for more instructions. Yeah, I missed that page when I was prepping, pilot error I guess .... Still, as long as 64-bit has been out there (RHEL7 isn't even shipping 32-bit), I reflexively expected 64-bit emulation support would just be there & just work .... -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.