From owner-freebsd-questions@freebsd.org Mon Sep 7 15:16:02 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4876D9CCDAA for ; Mon, 7 Sep 2015 15:16:02 +0000 (UTC) (envelope-from wam@hiwaay.net) 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 1B8AD1AA0 for ; Mon, 7 Sep 2015 15:16:01 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from kabini1.local (dynamic-216-186-222-143.knology.net [216.186.222.143] (may be forged)) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id t87FFsVi002213 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Mon, 7 Sep 2015 10:15:55 -0500 To: FreeBSD Questions !!!! From: "William A. Mahaffey III" Subject: 64-bit Linux binary compatibility/emulation Message-ID: <55EDAA29.9000600@hiwaay.net> Date: Mon, 7 Sep 2015 10:21:23 -0453.75 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Sep 2015 15:16:02 -0000 The FreeBSD wiki for the docker package contains intriguing allusions to a '64 bit Linux compatibility layer', although the handbook still says its a nogo. I notice the following when trying to execute a program compiled under FC14 x86_64 a while back: [wam@kabini1, TEST, 10:15:40am] 563 % lltr *fpbl* ; date -rw------- 1 wam users 3162 Feb 12 2012 fpbl.f -rwx------ 1 wam users 17909 Mar 26 2012 fpbl.linux* -rw------- 1 wam users 13110 May 25 2014 OUTPUT.fpbl.linux.txt -rw------- 1 wam users 11760 Sep 5 10:04 fpbl.c -rwx------ 1 wam users 18003 Sep 5 10:04 fpbl* -rw------- 1 wam users 13142 Sep 5 10:05 OUTPUT.fpbl.FreeBSD.txt Mon Sep 7 10:15:46 MCDT 2015 [wam@kabini1, TEST, 10:15:46am] 564 % file fpbl.linux fpbl fpbl.linux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=882754a79d9e9583eff5f710da6a3d0eb3251fa2, not stripped fpbl: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 9.3, not stripped [wam@kabini1, TEST, 10:15:48am] 565 % uname -a FreeBSD kabini1.local 9.3-RELEASE-p24 FreeBSD 9.3-RELEASE-p24 #0: Sat Aug 22 01:54:44 UTC 2015 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 [wam@kabini1, TEST, 10:15:50am] 566 % ./fpbl.linux ELF binary type "0" not known. ./fpbl.linux: Exec format error. Binary file not executable. [wam@kabini1, TEST, 10:15:52am] 567 % i.e. the file type is recognized, a runtime loader seems to be present, yet the file fails to execute. The FreeBSD version runs AOK & produces identical output to that from the Linux executable run under linux a while back. How is progress on 64-bit Linux binary compatibility/emulation ? TIA & have a nice labor day. -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.