Running Linux executables under FBSD 9.3 ....

William A. Mahaffey III wam at hiwaay.net
Thu Aug 28 11:31:55 UTC 2014


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 at 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 at 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.



More information about the freebsd-questions mailing list