Subject: Re: NetBSD-release 22 aug. won't build
To: None <port-arm32@netbsd.org>
From: Tsai Mong Kuan <mgtsai@Wizard.IM.ntu.edu.tw>
List: port-arm32
Date: 08/24/1999 01:58:28
Hi Reinoud,

On Fri, 20 Aug 1999, Reinoud Zandijk wrote:
> Hi folks,
> 
> Does anybody know why NetBSD-release 22 aug. doensn't build with my
> configuration? I removed my compilation directory completely, but
> configured with NetBSD-current's ``config''... could this give a
> incompatibility?
> 
> The error was :
> 
> "
> <snip>
> cc -O2 -Werror -Wall -Wcomment -Wpointer-arith -Wno-main -I. 
> -I../../../../arch -I../../../.. -nostdinc -DIOMD -DRISCPC -DCOMPAT_14
> -DSHMMAXPGS="0x200" -DLKM -DARM700BUGTRACK -DDIAGNOSTIC -DPOSTMORTEM
> -DMAXUSERS=10 -D_KERNEL -Darm32 -c ../../../../arch/arm32/arm32/syscall.c
> cc1: warnings being treated as errors
> ../../../../arch/arm32/arm32/syscall.c: In function `syscall':
> ../../../../arch/arm32/arm32/syscall.c:166: warning: implicit declaration
> of function `dumpframe'
> ../../../../arch/arm32/arm32/syscall.c:171: warning: unsigned int format,
> pointer arg (arg 3)
> *** Error code 1
> 
> Stop.
> bash-2.03# 
> ".


You may modify the content of sys/arch/arm32/conf/Makefile.arm32,

The original line:

CWARNFLAGS?=    -Werror -Wall -Wcomment -Wpointer-arith
                ^^^^^^^
               delete this,

The modified line:

CWARNFLAGS?=    -Wall -Wcomment -Wpointer-arith


Because the source is not warning-free for all compilers,
so you cannot turn on the flag: "treat warnings as errors".
Let the compiler ignore the warnings, and continue making.