NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-sgimips/53521: Failed to build disable DDB kernel on sgimips.



>Number:         53521
>Category:       port-sgimips
>Synopsis:       Failed to build disable DDB kernel on sgimips.
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-sgimips-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 13 18:50:00 +0000 2018
>Originator:     Naruaki Etomi
>Release:        NetBSD/sgimips 8.99.21
>Organization:
Japan
>Environment:
NetBSD  8.99.21 NetBSD 8.99.21 (GENERIC32_IP12) #1: Sun Aug 12 14:48:19 UTC 2018  naruaki@xserve:/usr/obj.sgimips/sys/arch/sgimips/compile/GENERIC32_IP2x sgimips

>Description:
1.Disable DDB

-options 	DDB		# in-kernel debugger
-options 	DDB_HISTORY_SIZE=512	# enable history editing in DDB
+#options 	DDB		# in-kernel debugger
+#options 	DDB_HISTORY_SIZE=512	# enable history editing in DDB

2.kernel build

/usr/src/sys/arch/sgimips/sgimips/machdep.c: In function 'mach_init':
/usr/src/sys/arch/sgimips/sgimips/machdep.c:251:24: error: unused variable 'bi_syms' [-Werror=unused-variable]
  struct btinfo_symtab *bi_syms;
                        ^~~~~~~
-

nbmake: stopped in /usr/obj.sgimips/sys/arch/sgimips/compile/GENERIC32_IP12

ERROR: Failed to make all in "/usr/src/../obj.sgimips/sys/arch/sgimips/compile/GENERIC32_IP12"
*** BUILD ABORTED ***

>How-To-Repeat:

>Fix:
--- src.orig/sys/arch/sgimips/sgimips/machdep.c	2017-11-07 03:01:06.000000000 +0000
+++ src/sys/arch/sgimips/sgimips/machdep.c	2018-08-13 17:04:22.232247994 +0000
@@ -248,7 +248,6 @@
 	int nsym = 0;
 	char *ssym = NULL;
 	char *esym = NULL;
-	struct btinfo_symtab *bi_syms;
 #endif
 #ifdef _LP64
 	char *argv[20];
@@ -308,6 +307,7 @@
 		bootinfo_msg = "no bootinfo found. (old bootblocks?)\n";
 
 #if NKSYM > 0 || defined(DDB) || defined(MODULAR)
+	struct btinfo_symtab *bi_syms;
 	bi_syms = lookup_bootinfo(BTINFO_SYMTAB);
 
 	/* check whether there is valid bootinfo symtab info */



Home | Main Index | Thread Index | Old Index