Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Dec 2015 03:29:01 +0100
From:      Jan Beich <jbeich@vfemail.net>
To:        Andriy Gapon <avg@FreeBSD.org>
Cc:        freebsd-emulation@FreeBSD.org
Subject:   Re: linux and linux64 on amd64
Message-ID:  <k2ov-t09e-wny@vfemail.net>
References:  <566050F9.3040202@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-=
Content-Type: text/plain

Andriy Gapon <avg@FreeBSD.org> 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-----
--=-=-=--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?k2ov-t09e-wny>