Subject: port-arm/34240: arm/ep93xx/epwdog.c doesn't compile
To: None <port-arm-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <tokuda@tokuda.net>
List: netbsd-bugs
Date: 08/20/2006 00:25:00
>Number:         34240
>Category:       port-arm
>Synopsis:       arm/ep93xx/epwdog.c doesn't compile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-arm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 20 00:25:00 +0000 2006
>Originator:     Hiroshi Tokuda
>Release:        4.99.1
>Organization:
TOKUDA.NET
>Environment:
Darwin macbook.local 8.6.2 Darwin Kernel Version 8.6.2: Thu Apr 13 18:48:29 PDT 2006; root:xnu-792.9.59.obj~1/RELEASE_I386 i386 i386
>Description:
unterminated #ifdef


#    create  ARMADILLO9/epwdog.d
CC=/Volumes/HFSXimage/t/20060816/evbarm/bin/arm--netbsdelf-gcc /Volumes/HFSXimage/t/20060816/evbarm/bin/nbmkdep -f epwdog.d --  -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     -I.  -I/Volumes/HFSXimage/s/20060816/src/sys/../common/include -I/Volumes/HFSXimage/s/20060816/src/sys/arch  -I/Volumes/HFSXimage/s/20060816/src/sys -nostdinc -DMSGBUFSIZE="65536" -DCONSPEED="115200" -DCONUNIT="0" -DDIAGNOSTIC -DMAXUSERS=16 -D_KERNEL -D_KERNEL_OPT -I/Volumes/HFSXimage/s/20060816/src/sys/lib/libkern/../../../common/lib/libc/quad -I/Volumes/HFSXimage/s/20060816/src/sys/lib/libkern/../../../common/lib/libc/string -I/Volumes/HFSXimage/s/20060816/src/sys/lib/libkern/../../../common/lib/libc/arch/arm/string   /Volumes/HFSXimage/s/20060816/src/sys/arch/arm/ep93xx/epw
 dog.c
/Volumes/HFSXimage/s/20060816/src/sys/arch/arm/ep93xx/epwdog.c:78:1: error: unterminated #ifdef
nbmkdep: compile failed.

*** Failed target:  epwdog.d
*** Failed command: CC=/Volumes/HFSXimage/t/20060816/evbarm/bin/arm--netbsdelf-gcc /Volumes/HFSXimage/t/20060816/evbarm/bin/nbmkdep -f epwdog.d -- -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 -I. -I/Volumes/HFSXimage/s/20060816/src/sys/../common/include -I/Volumes/HFSXimage/s/20060816/src/sys/arch -I/Volumes/HFSXimage/s/20060816/src/sys -nostdinc -DMSGBUFSIZE="65536" -DCONSPEED="115200" -DCONUNIT="0" -DDIAGNOSTIC -DMAXUSERS=16 -D_KERNEL -D_KERNEL_OPT -I/Volumes/HFSXimage/s/20060816/src/sys/lib/libkern/../../../common/lib/libc/quad -I/Volumes/HFSXimage/s/20060816/src/sys/lib/libkern/../../../common/lib/libc/string -I/Volumes/HFSXimage/s/20060816/src/sys/lib/libkern/../../../common/lib/libc/arch/arm/string /Volumes/HFSXimage/s/20060816/src/sys/arch/arm/ep
 93xx/epwdog.c
*** Error code 1

Stop.
nbmake: stopped in /Volumes/HFSXimage/o/20060816/evbarm/sys/arch/evbarm/compile/ARMADILLO9

ERROR: Failed to make depend in /Volumes/HFSXimage/o/20060816/evbarm/sys/arch/evbarm/compile/ARMADILLO9
*** BUILD ABORTED ***

>How-To-Repeat:
./build.sh -m evbarm kernel=ARMADILLO9
>Fix:
--- epwdog.c.orig       2006-08-20 09:15:45.000000000 +0900
+++ epwdog.c    2006-08-20 09:16:11.000000000 +0900
@@ -78,6 +78,8 @@
 #ifdef DIAGNOSTIC
        else
                printf("%s is already configured\n", sc->sc_dev.dv_xname);
+#endif
+}
 
 int
 epwdog_reset(void)