Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Aug 2003 16:33:51 +0200
From:      Jens Rehsack <rehsack@liwing.de>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        current@freebsd.org
Subject:   Re: kernel failing to build
Message-ID:  <3F3CEF4F.5030109@liwing.de>
In-Reply-To: <20030814211017.GA61484@rot13.obsecurity.org>
References:  <20030814152854.GA57027@wedge.madpilot.net> <20030814211017.GA61484@rot13.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 14.08.2003 23:10, Kris Kennaway wrote:

> On Thu, Aug 14, 2003 at 05:28:54PM +0200, Guido Falsi wrote:
>> I's been a few days, the kernel on my machine is failing to build in the
>> same point...I tried cvsupping at various times.
>> 
>> The system is a -current from 19 July.
> 
> Build your kernel with WERROR= as discussed on this list.

There're 2 WERROR-related flages, NO_WERROR (bool, which
suppresses -Werror in some cases in /usr/share/mk/bsd.sys.mk)
and WERROR (string, contains Werror-Flag in
/usr/src/sys/conf/kern.pre.mk)

Suggestion to the Makefile maintainers:

--- kern.pre.mk.orig    Fri Aug 15 14:32:40 2003
+++ kern.pre.mk Fri Aug 15 14:33:23 2003
@@ -52,7 +52,11 @@
  .endif
  .endif
  DEFINED_PROF=  ${PROF}
+.if defined(NO_WERROR)
+WERROR?=       -Wno-error
+.else
  WERROR?=       -Werror
+.endif
  INLINE_LIMIT?= 15000
  CFLAGS+=       -finline-limit=${INLINE_LIMIT} -fno-strict-aliasing

Best,
Jens



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F3CEF4F.5030109>