Re: kernel failing to build

From: Jens Rehsack <rehsack_at_liwing.de>
Date: Fri, 15 Aug 2003 16:33:51 +0200
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
_at__at_ -52,7 +52,11 _at__at_
  .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
Received on Fri Aug 15 2003 - 05:33:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:18 UTC