NetBSD Problem Report #259
From gnats Sun May 22 09:37:23 1994
Received: from gandalf.bbb.no (root@gandalf.bbb.no [192.124.156.194]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id JAA10710 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Sun, 22 May 1994 09:37:09 -0700
Message-Id: <199405221637.SAA01580@gandalf.bbb.no>
Date: Sun, 22 May 1994 18:37:09 +0200
From: Thorsten Lockert <tholo@SigmaSoft.COM>
Reply-To: tholo@SigmaSoft.COM
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: i386 kernel makefile bombs is ${DEBUG} contains spaces
X-Send-Pr-Version: 3.2
>Number: 259
>Category: port-i386
>Synopsis: If ${DEBUG} contains spaces, kernel make dies after link
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: gnats-admin (GNATS administrator)
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun May 22 09:50:01 +0000 1994
>Closed-Date: Sun Jun 19 23:14:45 +0000 1994
>Last-Modified:
>Originator: Thorsten Lockert
>Release: current
>Organization:
SigmaSoft, Th. Lockert
>Environment:
System: NetBSD gandalf.bbb.no 0.9B GANDALF#3 i386
>Description:
If the DEBUG make variable contains spaces, the i386 kernel Makefile
will bomb after link
>How-To-Repeat:
make DEBUG="-O2 -m486"
>Fix:
--- src/sys/arch/i386/conf/Makefile.i386.orig Sun May 22 18:33:03 1994
+++ src/sys/arch/i386/conf/Makefile.i386 Sun May 22 18:33:19 1994
@@ -53,7 +53,7 @@
SYSTEM_LD_HEAD= @echo loading $@; rm -f $@
SYSTEM_LD= @${LD} -z -e start -T ${LOAD_ADDRESS} -o $@ -X vers.o ${SYSTEM_OBJS}
SYSTEM_LD_TAIL= @size $@; chmod 755 $@; \
- [ X${DEBUG} = X-g ] && { \
+ [ X"${DEBUG}" = X"-g" ] && { \
echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
echo strip -d $@; strip -d $@; } || true
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: cgd
State-Changed-When: Sun May 22 17:41:49 PDT 1994
State-Changed-Why:
not a bug, in my opinion. It's out for the jury to decide.
State-Changed-From-To: feedback->closed
State-Changed-By: cgd
State-Changed-When: Sun Jun 19 16:14:45 PDT 1994
State-Changed-Why:
only the sender had the strong opinion that ${DEBUG} should be space-safe.
What he was using it for would have been more correctly accomplished by
modifying the Makefile.i386, or simply hacking the kernel Makefile.
(He was using it to set compile options, like -O2 and -m486; debug
should _NOT_ be used for that.)
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.