Subject: port-alpha/7081: building alpha kernels with DEBUG on is broken
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthew Jacob <mjacob@nas.nasa.gov>
List: netbsd-bugs
Date: 03/03/1999 18:48:40
>Number: 7081
>Category: port-alpha
>Synopsis: building alpha kernels with DEBUG on is broken
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: port-alpha-maintainer (NetBSD/alpha Portmaster)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 3 18:50:00 1999
>Last-Modified:
>Originator:
>Organization:
>Release: Circa Feb 20...
>Environment:
System: NetBSD mathom.nas.nasa.gov 1.3I NetBSD 1.3I (ALPHA) #11: Tue Feb 2 13:17:27 PST 1999 mjacob@mathom.nas.nasa.gov:/space/NetBSD-current/src/sys/arch/alpha/compile/ALPHA alpha
>Description:
Various breakages in building a kernel with DEBUG on- I fixed
some, but when it goto things like:
cc1: warnings being treated as errors
--- uvm_mmap.o ---
../../../../uvm/uvm_mmap.c: In function `sys_mmap':
--- uvm_vnode.o ---
../../../../uvm/uvm_vnode.c: In function `uvn_attach':
--- uvm_mmap.o ---
../../../../uvm/uvm_mmap.c:244: warning: long long unsigned int format, long unsigned int arg (arg 2)
--- uvm_vnode.o ---
../../../../uvm/uvm_vnode.c:297: warning: long long unsigned int format, u_quad_t arg (arg 2)
../../../../uvm/uvm_vnode.c:302: warning: long long unsigned int format, u_quad_t arg (arg 3)
--- cpu.o ---
../../../../arch/alpha/alpha/cpu.c: In function `cpuattach':
../../../../arch/alpha/alpha/cpu.c:240: `sc' undeclared (first use in this function)
../../../../arch/alpha/alpha/cpu.c:240: (Each undeclared identifier is reported only once
../../../../arch/alpha/alpha/cpu.c:240: for each function it appears in.)
*** Error code 1
--- uvm_mmap.o ---
*** Error code 1
--- uvm_vnode.o ---
../../../../uvm/uvm_vnode.c: In function `uvm_vnp_setsize':
../../../../uvm/uvm_vnode.c:1926: warning: long long unsigned int format, u_quad_t arg (arg 3)
*** Error code 1
3 errors
mathom.nas.nasa.gov > make
cc -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-main -mno-fp-regs -I. -I../../../../arch -I../../../.. -nostdinc -DDIAGNOSTIC -DDEBUG -DNS -DLKM -DMAXUSERS=32 -D_KERNEL -Dalpha -c ../../../../uvm/uvm_mmap.c
cc1: warnings being treated as errors
../../../../uvm/uvm_mmap.c: In function `sys_mmap':
../../../../uvm/uvm_mmap.c:244: warning: long long unsigned int format, long unsigned int arg (arg 2)
I saw that I couldn't just knock it off today myself, so decided to send-pr it
for future reference..
>How-To-Repeat:
Config and build with DEBUG enabled
>Fix:
Fix the source.
>Audit-Trail:
>Unformatted: