Subject: port-cobalt/12123: 1.5R GENERIC kernel build failed
To: None <gnats-bugs@gnats.netbsd.org>
From: None <psybear@ogre.rim.or.jp>
List: netbsd-bugs
Date: 02/03/2001 09:50:16
>Number:         12123
>Category:       port-cobalt
>Synopsis:       1.5R GENERIC kernel build failed
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-cobalt-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 03 09:53:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Shigeji Ishikawa
>Release:        1.5R
>Organization:
>Environment:
NetBSD minotaur.ogre.rim.or.jp 1.5R NetBSD 1.5R (MINOS) #2: Mon Jan 29 01:24:21 JST 2001     root@minotaur.ogre.rim.or.jp:/export0/current/src/sys/arch/cobalt/compile/MINOS cobalt

>Description:
NetBSD/cobalt kernel build process stopped due to link error below.

ld -EL -Ttext 0x80001000 -e start -G 0 -T ../../../../arch/mips/conf/kern.ldscri
pt.le -x -o netbsd ${SYSTEM_OBJ} vers.o
machdep.o: In function `mach_init':
../../../../arch/cobalt/cobalt/machdep.c(.text+0x3a8): undefined reference to `d
b_machine_init'
../../../../arch/cobalt/cobalt/machdep.c(.text+0x3a8): relocation truncated to f
it: R_MIPS_26 db_machine_init
*** Error code 1

Stop.

>How-To-Repeat:
cd /usr/src/sys/arch/cobalt/conf
config GENERIC
cd ../compile/GENERIC
make

>Fix:
apply this patch.

Index: machdep.c
===================================================================
RCS file: /export3/NetBSD/main/syssrc/sys/arch/cobalt/cobalt/machdep.c,v
retrieving revision 1.25
diff -u -r1.25 machdep.c
--- machdep.c   2001/01/15 20:19:53     1.25
+++ machdep.c   2001/02/01 15:57:22
@@ -185,11 +185,6 @@
        }

 #ifdef DDB
-       /*
-        * Initialize machine-dependent DDB commands, in case of early panic.
-        */
-       db_machine_init();
-
        if (boothowto & RB_KDB)
                Debugger();
 #endif

>Release-Note:
>Audit-Trail:
>Unformatted: