Subject: amd-64 kernel compile failure
To: None <current-users@netbsd.org>
From: Dheeraj Reddy <dheerajr@gmail.com>
List: current-users
Date: 12/06/2005 05:12:32
My kernel build on an amd64 box fails as below.

#   compile  BASKERVILLE.ACPI/netbsd32_time.o
cc -mcmodel=3Dkernel -mno-red-zone -ffreestanding -g -O2
-fno-omit-frame-pointer -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 -Damd64
-Dx86_64 -I. -I../../../../arch -I../../../.. -nostdinc -DLKM
-DACPICA_PEDANTIC -DRND_COM -DMAXUSERS=3D32 -D_KERNEL -D_KERNEL_OPT
-I../../../../dist/ipf -c ../../../../compat/netbsd32/netbsd32_time.c
../../../../compat/netbsd32/netbsd32_time.c: In function
`netbsd32_settimeofday':
../../../../compat/netbsd32/netbsd32_time.c:405: warning: comparison
between pointer and integer
*** Error code 1

Stop.

=3D=3D=3D
A cast is probably needed there.

--
dheeraj