On Wed, Feb 13, 2008 at 06:33:12AM -0500, FreeBSD Tinderbox wrote: > [...] > cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith > -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. > -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/ipfilter > -I/src/sys/contrib/pf -I/src/sys/dev/ath -I/src/sys/contrib/ngatm > -I/src/sys/dev/twa -I/src/sys/dev/em -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 -DGPROF > -falign-functions=16 -DGPROF4 -DGUPROF -fno-builtin -mno-align-long-strings > -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 > -ffreestanding -Werror -pg -mprofiler-epilogue > /src/sys/i386/ibcs2/ibcs2_xenix.c > cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith > -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. > -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/ipfilter > -I/src/sys/contrib/pf -I/src/sys/dev/ath -I/src/sys/contrib/ngatm > -I/src/sys/dev/twa -I/src/sys/dev/em -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 -DGPROF > -falign-functions=16 -DGPROF4 -DGUPROF -fno-builtin -mno-align-long-strings > -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 > -ffreestanding -Werror -pg -mprofiler-epilogue > /src/sys/i386/ibcs2/ibcs2_xenix_sysent.c > cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith > -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. > -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/ipfilter > -I/src/sys/contrib/pf -I/src/sys/dev/ath -I/src/sys/contrib/ngatm > -I/src/sys/dev/twa -I/src/sys/dev/em -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 -DGPROF > -falign-functions=16 -DGPROF4 -DGUPROF -fno-builtin -mno-align-long-strings > -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 > -ffreestanding -Werror -pg -mprofiler-epilogue > /src/sys/i386/ibcs2/imgact_coff.c > cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith > -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. > -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/ipfilter > -I/src/sys/contrib/pf -I/src/sys/dev/ath -I/src/sys/contrib/ngatm > -I/src/sys/dev/twa -I/src/sys/dev/em -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 -DGPROF > -falign-functions=16 -DGPROF4 -DGUPROF -fno-builtin -mno-align-long-strings > -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 > -ffreestanding -Werror -pg -mprofiler-epilogue /src/sys/i386/isa/atpic.c > cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith > -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. > -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/ipfilter > -I/src/sys/contrib/pf -I/src/sys/dev/ath -I/src/sys/contrib/ngatm > -I/src/sys/dev/twa -I/src/sys/dev/em -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 -DGPROF > -falign-functions=16 -DGPROF4 -DGUPROF -fno-builtin -mno-align-long-strings > -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 > -ffreestanding -Werror -pg -mprofiler-epilogue /src/sys/i386/isa/clock.c > /src/sys/i386/isa/clock.c: In function `DELAY': > /src/sys/i386/isa/clock.c:301: warning: implicit declaration of function > `cpu_spinwait' > /src/sys/i386/isa/clock.c:301: warning: nested extern declaration of > `cpu_spinwait' > *** Error code 1 > > Stop in /obj/src/sys/LINT. > *** Error code 1 > > Stop in /src. > *** Error code 1 > > Stop in /src. > TB --- 2008-02-13 11:33:12 - WARNING: /usr/bin/make returned exit code 1 > TB --- 2008-02-13 11:33:12 - ERROR: failed to build lint kernel > TB --- 2008-02-13 11:33:12 - tinderbox aborted > TB --- 3164.52 user 372.58 system 4015.77 real
Looks as if the MFC for sys/${arch}/isa/clock.c missed adding #include <machine/cpu.h> to the file. For i386, the attached patch fixes it; a similar patch is likely wanted for other values of ${arch}. Peace, david -- David H. Wolfskill [EMAIL PROTECTED] I submit that "conspiracy" would be an appropriate collective noun for cats. See http://www.catwhisker.org/~david/publickey.gpg for my public key.
Index: sys/i386/isa/clock.c =================================================================== RCS file: /cvs/freebsd/src/sys/i386/isa/clock.c,v retrieving revision 1.222.2.4 diff -u -r1.222.2.4 clock.c --- sys/i386/isa/clock.c 12 Feb 2008 19:14:01 -0000 1.222.2.4 +++ sys/i386/isa/clock.c 13 Feb 2008 12:58:41 -0000 @@ -70,6 +70,7 @@ #include <sys/power.h> #include <machine/clock.h> +#include <machine/cpu.h> #include <machine/cputypes.h> #include <machine/frame.h> #include <machine/intr_machdep.h>
pgpLOTjWaGPIg.pgp
Description: PGP signature