Subject: kern/30874: kernel compilation failure with FD_DEBUG on -current i386
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <njolypasteur.fr@pasteur.fr>
List: netbsd-bugs
Date: 07/30/2005 13:45:00
>Number:         30874
>Category:       kern
>Synopsis:       kernel compilation failure with FD_DEBUG on -current i386
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 30 13:45:00 +0000 2005
>Originator:     Nicolas Joly
>Release:        NetBSD 3.99.7
>Organization:
Institut Pasteur, Paris.
>Environment:
System: NetBSD cixy.dial.pasteur.fr 3.99.7 NetBSD 3.99.7 (CIXY) #9: Thu Jul 28 01:08:46 CEST 2005 njoly@cixy.dial.pasteur.fr:/local/src/NetBSD/obj/i386/sys/arch/i386/compile/CIXY i386
Architecture: i386
Machine: i386
>Description:
I wanted to compile a slightly modified i386 GENERIC kernel with option
FD_DEBUG set and noticed that it stopped in `dev/isa/fd.c':

#   compile  CIXY/fd.o
/local/src/NetBSD/tool/i386/bin/i386--netbsdelf-gcc -ffreestanding -g -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -fno-zero-initialized-in-bss -Di386 -I. -I/local/src/NetBSD/src/sys/arch -I/local/src/NetBSD/src/sys -nostdinc -DLKM -DFD_DEBUG -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/local/src/NetBSD/src/sys/dist/ipf -c /local/src/NetBSD/src/sys/dev/isa/fd.c
/local/src/NetBSD/src/sys/dev/isa/fd.c: In function `fdstrategy':
/local/src/NetBSD/src/sys/dev/isa/fd.c:617: warning: int format, different type arg (arg 2)
/local/src/NetBSD/src/sys/dev/isa/fd.c:617: warning: long int format, int arg (arg 3)
/local/src/NetBSD/src/sys/dev/isa/fd.c:617: warning: int format, different type arg (arg 4)
/local/src/NetBSD/src/sys/dev/isa/fd.c:617: warning: long int format, int arg (arg 5)
/local/src/NetBSD/src/sys/dev/isa/fd.c: In function `fdcintr':
/local/src/NetBSD/src/sys/dev/isa/fd.c:1166: warning: int format, different type arg (arg 2)

*** Failed target:  fd.o

>How-To-Repeat:
Try to build a kernel with `FD_DEBUG' set.
>Fix: