Re: kernel failing to build
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.origFri 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 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: kernel failing to build
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. Kris pgp0.pgp Description: PGP signature
kernel failing to build
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. this is the error, I'm attaching my kernel config. cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/dev -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 -fno-strict-aliasing -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror /usr/src/sys/dev/drm/mga_irq.c cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/dev -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 -fno-strict-aliasing -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror /usr/src/sys/dev/drm/mga_state.c /usr/src/sys/dev/drm/mga_state.c: In function `mga_g400_emit_state': /usr/src/sys/dev/drm/mga_state.c:278: warning: inlining failed in call to `mga_g400_emit_pipe' /usr/src/sys/dev/drm/mga_state.c:387: warning: called from here /usr/src/sys/dev/drm/mga_state.c:163: warning: inlining failed in call to `mga_g400_emit_tex0' /usr/src/sys/dev/drm/mga_state.c:397: warning: called from here *** Error code 1 Stop in /usr/obj/usr/src/sys/CHEWBACCA. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. chewbacca# from mga_state,c: * $FreeBSD: src/sys/dev/drm/mga_state.c,v 1.6 2003/04/25 01:18:46 anholt Exp $ I really don't know how to fix this, hope the report is seful. hanks in advance! -- Guido Falsi <[EMAIL PROTECTED]> # # GENERIC -- Generic kernel configuration file for FreeBSD/i386 # # For more information on this file, please read the handbook section on # Kernel Configuration Files: # #http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.386 2003/06/08 02:03:01 jmallett Exp $ machine i386 #cpuI486_CPU #cpuI586_CPU cpu I686_CPU ident CHEWBACCA options CPU_SUSP_HLT options CPU_ENABLE_SSE #To statically compile in device wiring instead of /boot/device.hints #hints "GENERIC.hints" #Default places to look for devices. makeoptions DEBUG=-g#Build kernel with gdb(1) debug symbols options SCHED_4BSD #4BSD scheduler options INET#InterNETworking #optionsINET6 #IPv6 communications protocols options FFS #Berkeley Fast Filesystem options SOFTUPDATES #Enable FFS soft updates support options UFS_ACL #Support for access control lists options UFS_DIRHASH #Improve performance on big directories #optionsMD_ROOT #MD is a potential root device options NFSCLIENT #Network Filesystem Client options NFSSERVER #Network Filesystem Server #optionsNFS_ROOT#NFS usable as /, requires NFSCLIENT options MSDOSFS #MSDOS Filesystem options CD9660 #ISO 9660 Filesystem options PROCFS #Process filesystem (requires PSEUDOFS) options PSEUDOFS#Pseudo-filesystem framework options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options COMPAT_FREEBSD4 #Compatible with FreeBSD4 options SCSI_DELAY=3000 #Delay (in ms) before probing SCSI options KTRACE #ktrace(1) support options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options SHMMAXPGS=4096 options SHMMNI=40 options SHMSEG=256 options SEMMNS=240 options SEMMNU=40 options SEMMAP=120 options _KPOSIX_PRIORITY_SCHEDULING #