From owner-freebsd-current@FreeBSD.ORG Wed Nov 21 13:58:38 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B255816A419 for ; Wed, 21 Nov 2007 13:58:38 +0000 (UTC) (envelope-from rermilov@team.vega.ru) Received: from mail.vega.ru (infra.dev.vega.ru [90.156.167.14]) by mx1.freebsd.org (Postfix) with ESMTP id 69F9413C44B for ; Wed, 21 Nov 2007 13:58:37 +0000 (UTC) (envelope-from rermilov@team.vega.ru) Received: from [87.242.97.68] (port=1833 helo=edoofus.dev.vega.ru) by mail.vega.ru with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68 (FreeBSD)) (envelope-from ) id 1Iuq67-0008zO-TM; Wed, 21 Nov 2007 13:58:35 +0000 Received: from edoofus.dev.vega.ru (localhost [127.0.0.1]) by edoofus.dev.vega.ru (8.14.2/8.14.2) with ESMTP id lALDwOfR027829; Wed, 21 Nov 2007 16:58:24 +0300 (MSK) (envelope-from rermilov@team.vega.ru) Received: (from ru@localhost) by edoofus.dev.vega.ru (8.14.2/8.14.2/Submit) id lALDwOwJ027828; Wed, 21 Nov 2007 16:58:24 +0300 (MSK) (envelope-from rermilov@team.vega.ru) X-Authentication-Warning: edoofus.dev.vega.ru: ru set sender to rermilov@team.vega.ru using -f Date: Wed, 21 Nov 2007 16:58:24 +0300 From: Ruslan Ermilov To: Alexey Dokuchaev Message-ID: <20071121135823.GE1617@team.vega.ru> References: <20071121090527.GA57912@regency.nsu.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071121090527.GA57912@regency.nsu.ru> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: current@freebsd.org Subject: Re: make kernel build error on recent -current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 21 Nov 2007 13:58:38 -0000 On Wed, Nov 21, 2007 at 03:05:27PM +0600, Alexey Dokuchaev wrote: > hi there, > > i'm seeing this while trying to make my kernel: > > cc -c -O2 -pipe -mtune=pentium4 -march=pentium4 -fno-strict-aliasing -march=pentium4 -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror /usr/src/sys/kern/kern_intr.c > cc1: warnings being treated as errors > /usr/src/sys/kern/kern_intr.c: In function 'intr_priority': > /usr/src/sys/kern/kern_intr.c:117: warning: 'pri' may be used uninitialized in this function > *** Error code 1 > > it seems that `kern.pre.mk' enables -Werror despite my NO_WERROR setting. > I cannot reproduce this on neither RELENG_7 or HEAD, compiling GENERIC or LINT (you didn't tell what combination you're using), but NO_WERROR never affected -Werror in kernel and module builds. In this case, you can reset -Werror like this: make ... WERROR= Cheers, -- Ruslan Ermilov ru@FreeBSD.org FreeBSD committer