Subject: kern/33832: x86_64 kernel build broken
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <damon@brodiefamily.org>
List: netbsd-bugs
Date: 06/26/2006 16:35:00
>Number:         33832
>Category:       kern
>Synopsis:       Kernel compile fails on audio.c
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 26 16:35:00 +0000 2006
>Originator:     Damon Brodie
>Release:        NetBSD 3.99.20
>Organization:
	
>Environment:
	
	
System: NetBSD nomad.brodiefamily.org 3.99.20 NetBSD 3.99.20 (NOMAD) #4: Wed May 17 09:39:54 EDT 2006 damon@nomad.brodiefamily.org:/usr/obj/sys/arch/amd64/compile/NOMAD amd64
Architecture: x86_64
Machine: amd64
>Description:

With up to date sources my kernel compile breaks.  This has been broken for approximately a week now:


#   compile  NOMAD/audio.o
/usr/tools/bin/x86_64--netbsd-gcc -mcmodel=kernel -mno-red-zone -ffreestanding -fno-zero-initialized-in-bss -O2 -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 -Damd64 -Dx86_64 -I. -I/usr/src/sys/../common/include -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DMAXUSERS=128 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad -I/usr/src/sys/lib/libkern/../../../common/lib/libc/string -I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/x86_64/string -I/usr/src/sys/dist/ipf -c /usr/src/sys/dev/audio.c
cc1: warnings being treated as errors
/usr/src/sys/dev/audio.c:3743: warning: no previous prototype for 'audio_powerhook'
/usr/src/sys/dev/audio.c: In function 'audio_powerhook':
/usr/src/sys/dev/audio.c:3748: error: dereferencing pointer to incomplete type
/usr/src/sys/dev/audio.c:3752: error: dereferencing pointer to incomplete type
/usr/src/sys/dev/audio.c:3753: error: dereferencing pointer to incomplete type
/usr/src/sys/dev/audio.c:3754: error: dereferencing pointer to incomplete type
/usr/src/sys/dev/audio.c:3755: error: dereferencing pointer to incomplete type
/usr/src/sys/dev/audio.c:3758: error: dereferencing pointer to incomplete type
/usr/src/sys/dev/audio.c:3759: warning: implicit declaration of function 'audiostartp'
/usr/src/sys/dev/audio.c:3760: error: dereferencing pointer to incomplete type
/usr/src/sys/dev/audio.c:3761: warning: implicit declaration of function 'audiostartr'

*** Failed target:  audio.o
*** Failed command: echo '# ' "compile NOMAD/audio.o"; echo /usr/tools/bin/x86_64--netbsd-gcc -mcmodel=kernel -mno-red-zone -ffreestanding -fno-zero-initialized-in-bss -O2 -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 -Damd64 -Dx86_64 -I. -I/usr/src/sys/../common/include -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DMAXUSERS=128 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad -I/usr/src/sys/lib/libkern/../../../common/lib/libc/string -I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/x86_64/string -I/usr/src/sys/dist/ipf -c /usr/src/sys/dev/audio.c; /usr/tools/bin/x86_64--netbsd-gcc -mcmodel=kernel -mno-red-zone -ffreestanding -fno-zero-initialized-in-bss -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prot
 otypes -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -Wno-pointer-sign -Wno-attributes -fno-strict-aliasing -Damd64 -Dx86_64 -I. -I/usr/src/sys/../common/include -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DMAXUSERS=128 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad -I/usr/src/sys/lib/libkern/../../../common/lib/libc/string -I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/x86_64/string -I/usr/src/sys/dist/ipf -c /usr/src/sys/dev/audio.c
*** Error code 1

>How-To-Repeat:
Get the latest source on x86_64 and try and compile a kernel.
>Fix:
	

>Unformatted: