From owner-freebsd-emulation@freebsd.org Fri Dec 4 02:29:56 2015 Return-Path: Delivered-To: freebsd-emulation@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 46BB0A36F72 for ; Fri, 4 Dec 2015 02:29:56 +0000 (UTC) (envelope-from jbeich@vfemail.net) Received: from vfemail.net (fiveseven.neocoil.com [12.31.100.157]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E477D1F35 for ; Fri, 4 Dec 2015 02:29:55 +0000 (UTC) (envelope-from jbeich@vfemail.net) Received: (qmail 10151 invoked by uid 89); 4 Dec 2015 02:29:40 -0000 Received: from localhost (HELO freequeue.vfemail.net) (127.0.0.1) by localhost with (DHE-RSA-AES256-SHA encrypted) SMTP; 4 Dec 2015 02:29:40 -0000 Received: (qmail 10135 invoked by uid 89); 4 Dec 2015 02:29:23 -0000 Received: by simscan 1.3.1 ppid: 10131, pid: 10133, t: 0.0023s scanners:none Received: from unknown (HELO smtp102-2.vfemail.net) (172.16.100.62) by FreeQueue with SMTP; 4 Dec 2015 02:29:23 -0000 Received: (qmail 10896 invoked by uid 89); 4 Dec 2015 02:29:30 -0000 Received: by simscan 1.4.0 ppid: 10862, pid: 10887, t: 0.5696s scanners:none Received: from unknown (HELO nil) (amJlaWNoQHZmZW1haWwubmV0@172.16.100.27) by mail.vfemail.net with ESMTPA; 4 Dec 2015 02:29:29 -0000 From: Jan Beich To: Andriy Gapon Cc: freebsd-emulation@FreeBSD.org Subject: Re: linux and linux64 on amd64 References: <566050F9.3040202@FreeBSD.org> Date: Fri, 04 Dec 2015 03:29:01 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Dec 2015 02:29:56 -0000 --=-=-= Content-Type: text/plain Andriy Gapon writes: > Can I have support for both 32-bit and 64-bit Linux binaries on an amd64 system? You can but not using ports. emulators/linux_base-c6 is currently limited to either i686 or x86_64 but not both: pkg-plist.* have conflicting entries. This is partially documented in r393817. And consumer ports are all 32bit e.g., linux-c6-flashplugin11 has i386 distfile in distinfo.x86_64. Alternatively, setting up a jail via sysutils/debootstrap or sysutils/rinse for x86_64 then enabling multilib support should be easy. To use apps outside of jail the dependencies must be under /compat/linux due to the way path translation works (and hardcoded). It's also possible to build apps in a mixed environment e.g., $ (export PATH=/compat/linux/bin:$PATH CFLAGS=-m32; cmake; gmake) $ ./my_linux_app Note1, in some cases you may need to bump compat.linux.osrelease sysctl. Note2, to make 64bit OpenGL apps work with nvidia-driver you need to patch linux64 ioctl handler and remove nvidia-modprobe. Note3, 64bit CUDA apps may not work which also means no OpenCL or NVENC. > Do I have to load both linux and linux64 modules for that? Yes. -- My 0.02 of imaginary currency of biased opinion. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQF8BAEBCgBmBQJWYPptXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXREQjQ0MzY3NEM3RDIzNTc4NkUxNDkyQ0VF NEM3Nzg4MzQ3OURCRERCAAoJEOTHeINHnb3b1F4H/3HK5bd2IvH/ppV5NP4E1o0Q jRoIpHObWnjJKAI9vIfxP7g/3fAITlvYDfxP7qjR4a2ZTUmXp0dPBz11LnAjJ1GE TQPenMAUCTTwumgTWlEalBHby6rPKvSoLGZfaiz410ZamqsRyqEZKSrRwrKl8QqM pN0y6w0nUsR24FS+f7y2Pc9QJne4GBd7R1Mkx7b51nRKLI3slfcR6yWEXd1xq/6T EWk0OAlpaNJlQ6w7yv6hyVQtn61Bd9dyo9up5WQG9NZkEJB1NgPhLyJdwZMMY/EA qXDwTSFcHLvK0mAIS18Y4WCL07Rk8fuhYRU4B+rYXVebTtm4bpPjuaT6d4nkBPE= =EMDM -----END PGP SIGNATURE----- --=-=-=--