Subject: Re: Broken kern_todor.c
To: None <computer_help@rferl.org>
From: Garrett D'Amore <garrett_damore@tadpole.com>
List: current-users
Date: 09/12/2006 07:18:31
computer_help@rferl.org wrote:
>
> Hi,
>
> compiling today's kernel fails
> $ ./build.sh -m hpcarm -T /usr/current/src/hpcarmtools tools
> kernel=Astro (JORNADA720)
>
>
> # compile Astro/kern_todr.o
> /usr/current/src/hpcarmtools/bin/arm--netbsdelf-gcc -ffreestanding
> -fno-zero-initialized-in-bss -O2 -Wcomment -Werror -Wall -Wno-main
> -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
> -Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual -Wwrite-strings
> -Wno-sign-compare -Wno-pointer-sign -Wno-attributes
> -fno-strict-aliasing -Dhpcarm -Darm32 -I.
> -I/usr/current/src/sys/../common/include -I/usr/current/src/sys/arch
> -I/usr/current/src/sys -nostdinc -DLKM -DCONSPEED=19200 -DMAXUSERS=32
> -D_KERNEL -D_KERNEL_OPT
> -I/usr/current/src/sys/lib/libkern/../../../common/lib/libc/quad
> -I/usr/current/src/sys/lib/libkern/../../../common/lib/libc/string
> -I/usr/current/src/sys/lib/libkern/../../../common/lib/libc/arch/arm/string
> -c /usr/current/src/sys/kern/kern_todr.c
> cc1: warnings being treated as errors
> /usr/current/src/sys/kern/kern_todr.c: In function 'todr_gettime':
> /usr/current/src/sys/kern/kern_todr.c:288: warning: implicit
> declaration of function 'todr_debug'
>
> *** Failed target: kern_todr.o
> *** Failed command: echo '# ' "compile Astro/kern_todr.
>
> Pavel
Thats really, really weird, since since todr_debug is either a function,
or is a macro. I've test compiled this both ways for architectures
other than hpcarm. I'll do an hpcarm compile and see if it is busted.
--
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
http://www.tadpolecomputer.com/
Phone: 951 325-2134 Fax: 951 325-2191