From owner-freebsd-stable@FreeBSD.ORG Wed Jan 11 21:42:01 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 95E14106564A for ; Wed, 11 Jan 2012 21:42:01 +0000 (UTC) (envelope-from rpclark@tds.net) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5C6F18FC12 for ; Wed, 11 Jan 2012 21:42:01 +0000 (UTC) Received: by yhfq46 with SMTP id q46so638504yhf.13 for ; Wed, 11 Jan 2012 13:42:00 -0800 (PST) Received: by 10.236.173.199 with SMTP id v47mr1112647yhl.19.1326316272246; Wed, 11 Jan 2012 13:11:12 -0800 (PST) Received: from x1.frogdoor.org (h69-130-64-149.kgldga.dsl.dynamic.tds.net. [69.130.64.149]) by mx.google.com with ESMTPS id d5sm4381943yhl.19.2012.01.11.13.11.10 (version=SSLv3 cipher=OTHER); Wed, 11 Jan 2012 13:11:11 -0800 (PST) Date: Wed, 11 Jan 2012 16:11:10 -0500 From: Rob Clark To: freebsd-stable@freebsd.org Message-Id: <20120111161110.4258969c.rpclark@tds.net> X-Mailer: Sylpheed 3.1.0 (GTK+ 2.22.1; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: GENERIC make buildkernel error / fails - posix_fadvise 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: Wed, 11 Jan 2012 21:42:01 -0000 System: Dell 600sc Currently running: 8.2-RELEASE In attempting to update this system to 8-STABLE I did what I usually do to update a system (see below). make buildworld completes successfully, but make buildkernel does not. I usually create a custom kernel, but for this system I went with GENERIC as is. The error message is: /usr/src/sys/kern/init_sysent.c:568: error: invalid application of 'sizeof' to incomplete type 'struct posix_fadvise_args' /usr/src/sys/kern/init_sysent.c:568: error: 'posix_fadvise' undeclared here (not in a function) *** Error code 1 I found this pertaining to posix_fadvise in /usr/src/UPDATING: 20120106: A new VOP_ADVISE() was added to support posix_fadvise(2). All filesystem modules must be recompiled. Not sure what 'filesystem modules' is or referring to here. Also, am I not already recompiling 'All filesystem modules' during make buildworld? What I did (and usually do): csup -L 2 /root/stable-supfile rm -rf /etc.old cp -Rp /etc /etc.old adjkerntz -i cd /usr/obj chflags -R noschg * rm -rf * cd /usr/src /usr/bin/time -h make buildworld || exit build world finishes successfully. Then: cd /usr/src make buildkernel KERNCONF=GENERIC make installkernel KERNCONF=GENERIC This fails with error: /usr/src/sys/kern/init_sysent.c:568: error: invalid application of 'sizeof' to incomplete type 'struct posix_fadvise_args' /usr/src/sys/kern/init_sysent.c:568: error: 'posix_fadvise' undeclared here (not in a function) *** Error code 1 Stop in /usr/obj/usr/src/sys/GENERIC. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Following attempts: Attempt 2: I tried using 'make buildkernel' (without specifying KERNCONF) make buildkernel fails with same error. Attempt 3: Started from the beginning (same process as above) with new csup (sources) -- make buildkernel still failed with same error. Any help here would be greatly appreciated. In way over my head here. I have all logs from all attempts of the above if needed. Thanks, Rob Clark