From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 27 02:07:48 2010 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D1FD106570D for ; Tue, 27 Apr 2010 02:07:48 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 10DA48FC19 for ; Tue, 27 Apr 2010 02:07:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o3R23HWc065191; Mon, 26 Apr 2010 20:03:17 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 26 Apr 2010 20:03:27 -0600 (MDT) Message-Id: <20100426.200327.10150326159295013.imp@bsdimp.com> To: stephen.hocking@gmail.com From: "M. Warner Losh" In-Reply-To: References: <20100426.171956.431102609571762985.imp@bsdimp.com> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: yanefbsd@gmail.com, hackers@FreeBSD.org Subject: Re: Building kernels broken under AMD64 Releng 8 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2010 02:07:48 -0000 In message: Stephen Hocking writes: : On Tue, Apr 27, 2010 at 9:19 AM, M. Warner Losh wrot= e: : > In message: : > =A0 =A0 =A0 =A0 =A0 =A0Garrett Cooper writes: : > : On Mon, Apr 26, 2010 at 2:54 PM, Stephen Hocking : > : wrote: : > : > Hi all, : > : > : > : > Am noticing the following when attempting to build a kernel: : > : > : > : > [root@blurfl /usr/src]# make buildkernel : > : > : > : > -------------------------------------------------------------- : > : >>>> Kernel build for GENERIC started on Tue Apr 27 07:53:29 EST = 2010 : > : > -------------------------------------------------------------- : > : > =3D=3D=3D> GENERIC : > : > mkdir -p /usr/obj/src/FreeBSD/STABLE/src/sys : > : > : > : > -------------------------------------------------------------- : > : >>>> stage 1: configuring the kernel : > : > -------------------------------------------------------------- : > : > cd /src/FreeBSD/STABLE/src/sys/amd64/conf; : > : > PATH=3D/usr/obj/src/FreeBSD/STABLE/sr/tmp/legacy/usr/sbin:/usr/= obj/src/FreeBSD/STABLE/src/tmp/legacy/usr/bin:/usr/ob/src/FreeBSD/STABL= E/src/tmp/legacy/usr/games:/usr/obj/src/FreeBSD/STABLE/src/tm/usr/sbin:= /usr/obj/src/FreeBSD/STABLE/src/tmp/usr/bin:/usr/obj/src/FreeBSD/STABE/= src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin : > : > =A0config =A0-d /usr/obj/src/FreeSD/STABLE/src/sys/GENERIC : > : > /src/FreeBSD/STABLE/src/sys/amd64/conf/GENERIC : > : > ../../conf/options.amd64: Duplicate option COMPAT_FREEBSD32. : > : > *** Error code 1 : > : > : > : > Stop in /src/FreeBSD/STABLE/src. : > : > *** Error code 1 : > : > : > : > Stop in /src/FreeBSD/STABLE/src. : > : > : > : > : > : > Any clues? I believe it's related to the COMPAT_IA32 option bei= ng : > : > replaced (I haven't built a kernel since the beginning of the m= onth). : > : : > : =A0 =A0 This was reported approximately a week ago and Warner (im= p@) was : > : made aware of the problem, and fixed the issue in a later revisio= n of : > : 8-STABLE I think. Please see: : > : http://lists.freebsd.org/pipermail/svn-src-all/2010-April/022969.= html : > : for more details. : > : > You always have to rebuild world before rebuilding the kernel. =A0Y= ou : > often can get away with not doing that, but not aways. : > : > I'm adding a safety belt to config, and that should be done soon. : > : = : OK, thanks - wasn't immediately clear. Now, one should usually do an : installkernel prior to an installworld, in case system calls change, : is this correct? Yes. installkernel, reboot, installworld. For stable branches, the rate of new system call addition is slow, so you can sometimes get away with not doing the reboot. But when it fails, it can leave your system unbootable. Warner