From owner-freebsd-stable@FreeBSD.ORG Thu Jan 12 03:52:29 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 64B371065679 for ; Thu, 12 Jan 2012 03:52:29 +0000 (UTC) (envelope-from andre@drenet.info) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1BA908FC14 for ; Thu, 12 Jan 2012 03:52:28 +0000 (UTC) Received: by vcbfk1 with SMTP id fk1so1731306vcb.13 for ; Wed, 11 Jan 2012 19:52:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=drenet.info; s=google; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=QCeS01+g5JagbrvMQkca3LNcn6vGf/yWvGmUgIk1odw=; b=HV4z7ZI2oHi7DA9NZaFWlRGKWg/VgZYWGA6ujYsf81a2Rnv6GW0Lqi/v4nIF5PkpnT B6n2o8f2fPf/mfdWsfKa3PKiXeko9hqEZwpNf3JGZTSBOKBKbN6LUQ1DX0pWYSadigET 843meY8dQYZeHNg2DY6YTVK3ISC6NMURYiA1M= MIME-Version: 1.0 Received: by 10.220.152.78 with SMTP id f14mr1261448vcw.30.1326340348220; Wed, 11 Jan 2012 19:52:28 -0800 (PST) Received: by 10.220.18.204 with HTTP; Wed, 11 Jan 2012 19:52:28 -0800 (PST) X-Originating-IP: [98.199.43.85] In-Reply-To: <20120111161110.4258969c.rpclark@tds.net> References: <20120111161110.4258969c.rpclark@tds.net> Date: Wed, 11 Jan 2012 21:52:28 -0600 Message-ID: From: Andre Goree To: Rob Clark Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable@freebsd.org Subject: Re: 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: Thu, 12 Jan 2012 03:52:29 -0000 On Wed, Jan 11, 2012 at 3:11 PM, Rob Clark wrote: > 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 > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > Perhaps two 'make cleandir' inside /usr/src will help. Run it just after removing everything within /usr/obj. FWIW, I usually run this simple bash script before building world on my machines: #!/bin/bash chflags -R noschg /usr/obj/usr rm -rf /usr/obj/usr cd /usr/src ; make cleandir ; make cleandir exit 0