From owner-freebsd-stable@FreeBSD.ORG Thu Mar 23 18:48:34 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 10E4916A400 for ; Thu, 23 Mar 2006 18:48:34 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 93A1E43D70 for ; Thu, 23 Mar 2006 18:48:32 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id A2ADB1A4E8B; Thu, 23 Mar 2006 10:48:30 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 1164251753; Thu, 23 Mar 2006 13:48:30 -0500 (EST) Date: Thu, 23 Mar 2006 13:48:29 -0500 From: Kris Kennaway To: Casey Scott Message-ID: <20060323184829.GB85076@xor.obsecurity.org> References: <13558385.01143139439325.JavaMail.root@tomcat.phantombsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QTprm0S8XgL7H0Dt" Content-Disposition: inline In-Reply-To: <13558385.01143139439325.JavaMail.root@tomcat.phantombsd.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-stable@freebsd.org, Kris Kennaway Subject: Re: 6.1 PRERELEASE kernel build error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Mar 2006 18:48:34 -0000 --QTprm0S8XgL7H0Dt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 23, 2006 at 10:43:59AM -0800, Casey Scott wrote: >=20 > ----- Original Message ----- > From: Kris Kennaway > To: Casey Scott > Cc: freebsd-stable@freebsd.org, Kris Kennaway > Sent: Thursday, March 23, 2006 10:20:02 AM GMT-0800 > Subject: Re: 6.1 PRERELEASE kernel build error >=20 > On Thu, Mar 23, 2006 at 08:25:35AM -0800, Casey Scott wrote: > >=20 > > ----- Original Message ----- > > From: Kris Kennaway > > To: Casey Scott > > Cc: freebsd-stable@freebsd.org > > Sent: Thursday, March 23, 2006 0:27:30 AM GMT-0800 > > Subject: Re: 6.1 PRERELEASE kernel build error > >=20 > > On Wed, Mar 22, 2006 at 10:27:56AM -0800, Casey Scott wrote: > > > I just upgraded 5.4 stable to 6.1 PRERELEASE via buildworld. I am try= ing to build a kernel, and keep getting this error at "make". > > >=20 > > >=20 > > > ...... > > > cc -c -O2 -pipe -fno-strict-aliasing -march=3Dpentium4 -Wall -Wredund= ant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpoin= ter-arith -Winline -Wcast-qual -fformat-extensions -std=3Dc99 -nostdinc -= I- -I. -I../../.. -I../../../contrib/altq -I../../../contrib/ipfilter -I..= /../../contrib/pf -I../../../contrib/dev/ath -I../../../contrib/dev/ath/fre= ebsd -I../../../contrib/ngatm -I../../../dev/twa -D_KERNEL -DHAVE_KERNEL_OP= TION_HEADERS -include opt_global.h -fno-common -finline-limit=3D8000 --para= m inline-unit-growth=3D100 --param large-function-growth=3D1000 -mno-align= -long-strings -mpreferred-stack-boundary=3D2 -mno-mmx -mno-3dnow -mno-sse = -mno-sse2 -ffreestanding -Werror ../../../fs/devfs/devfs_vnops.c > > > ../../../fs/devfs/devfs_vnops.c:1172: warning: redundant redeclaratio= n of 'devfs_ops_f' > > > ../../../fs/devfs/devfs_vnops.c:70: warning: previous declaration of = 'devfs_ops_f' was here > > > ../../../fs/devfs/devfs_vnops.c:1183: warning: redundant redeclaratio= n of 'devfs_vnodeops' > > > ../../../fs/devfs/devfs_vnops.c:68: warning: previous declaration of = 'devfs_vnodeops' was here > > > ../../../fs/devfs/devfs_vnops.c:1205: warning: redundant redeclaratio= n of 'devfs_specops' > > > ../../../fs/devfs/devfs_vnops.c:69: warning: previous declaration of = 'devfs_specops' was here > > > *** Error code 1 > > >=20 > > >=20 > > > I even get that error building a kernel from the GENERIC config. I th= ink something is wonky with gcc. >Has anyone else seen this, or know what c= ould be causing it? > > > > > >You didn't follow the correct upgrade order - it's documented in the > > >handbook and in /usr/src/UPDATING. > > > > > >Kris > >=20 > > > > Thanks for that info. I have the kernel built now. I noticed that it > > is built from the source in /usr/obj and not /usr/src. > > > >No, /usr/obj contains the results of your buildworld, it's not a > >second copy of the source. > > > > In 6.x, do we > > have to keep /usr/obj after installworld, or should installworld > > have updated /usr/src ? >=20 > >You do not have to keep /usr/obj. > > > >Kris > > > >P.S. Please wrap your lines so that your emails may be easily read. >=20 >=20 > That's what I thought. However, when I rm -rf /usr/obj/, and try=20 > to build the kernel again, I can the same error that I mentioned > at the beginning of the thread. If I buildworld again, and do a=20 > make buildkernel KERNCONF=3DXXX, the build succeeds. Yes, because you removed it in the middle of your upgrade. According to the directions, installworld comes late in the sequence. Kris --QTprm0S8XgL7H0Dt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQFEIu19Wry0BWjoQKURApWnAJ9MIFnA22wLAymWZ2isNdhHfNf3SwCfVll6 uyOdyktQC4piev+JDo1E5yY= =0kTY -----END PGP SIGNATURE----- --QTprm0S8XgL7H0Dt--