From owner-freebsd-current@FreeBSD.ORG Thu Feb 14 21:38:06 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id DC13B339; Thu, 14 Feb 2013 21:38:06 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 9B95DF11; Thu, 14 Feb 2013 21:38:06 +0000 (UTC) Received: from pakbsde14.localnet (unknown [38.105.238.108]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id E4F23B922; Thu, 14 Feb 2013 16:38:05 -0500 (EST) From: John Baldwin To: freebsd-current@freebsd.org Subject: Re: building custom kernel on -current: unknown option "COMPAT_LINUX" Date: Thu, 14 Feb 2013 16:31:55 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p25; KDE/4.5.5; amd64; ; ) References: <20130210013631.4681c6fd.freebsd@edvax.de> <201302100126.r1A1QTT2047019@mech-cluster241.men.bris.ac.uk> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201302141631.55788.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Thu, 14 Feb 2013 16:38:06 -0500 (EST) Cc: freebsd@edvax.de, mexas@bristol.ac.uk, "illoai@gmail.com" , freebsd-questions@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2013 21:38:06 -0000 On Saturday, February 09, 2013 10:01:25 pm illoai@gmail.com wrote: > On 9 February 2013 20:26, Anton Shterenlikht wrote: > > > > > I removed COMPAT_LINUX, and only left > > > > options COMPAT_43 > > options COMPAT_LINUX32 > > > > From /usr/src/sys/amd64/conf/NOTES (9.1-RELEASE): > > # Enable Linux ABI emulation > #XXX#options COMPAT_LINUX > > # Enable 32-bit Linux ABI emulation (requires COMPAT_43 and > COMPAT_FREEBSD32) > options COMPAT_LINUX32 > > I think I first ran up against this when I moved to 9.0 some > time ago, but yes, amd64 uses a different kernel config > option than i386 for linux compat. > > I tend to leave it as a module & load it if I perchance > need it. This also allows rebuilding & reloading the > modules without a reboot, should it need it. The > modules seems to build fine without having to > fiddle about with kernel config jiggerypokey. COMPAT_LINUX will work on amd64 eventually and will be used for 64-bit Linux binaries (COMPAT_LINUX32 is to run Linux/i386 binaries on FreeBSD/amd64). -- John Baldwin