NetBSD Problem Report #17384
Received: (qmail 1379 invoked by uid 605); 25 Jun 2002 14:09:42 -0000
Message-Id: <200206251407.g5PE7fg24009@delta.cs.mu.OZ.AU>
Date: Tue, 25 Jun 2002 21:07:41 +0700 (ICT)
From: kre@munnari.OZ.AU
Sender: gnats-bugs-owner@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: cscope & mkid kernel make targets fail for compile outside /sys
X-Send-Pr-Version: 3.95
>Number: 17384
>Category: kern
>Synopsis: cscope & mkid kernel make targets fail for compile outside /sys
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: wrstuden
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jun 25 14:10:01 +0000 2002
>Closed-Date: Wed Jul 24 17:07:40 +0000 2002
>Last-Modified: Wed Jul 24 17:07:40 +0000 2002
>Originator: Robert Elz
>Release: NetBSD 1.6B (-current 2002-06-25)
>Organization:
Prince of Songkla University
>Environment:
System: NetBSD delta.cs.mu.OZ.AU 1.5ZC NetBSD 1.5ZC (DELTA) #4: Mon May 27 23:17:55 ICT 2002 kre@delta.cs.mu.OZ.AU:/usr/src/sys.X/arch/i386/compile/DELTA i386
Architecture: i386
Machine: i386
>Description:
The kernel build setup allows placing a kernel config file
in /sys/arch/xxxx/conf/MYNAME with the corresponding kernel
being build in /sys/arch/xxx/compile/MYNAME/.
For that (I assume) the cscope & mkid targets work.
The kernel build setup also allows placing a kernel config
file in /any/where/at/all/CONFIG with the build being done
in the same directory.
In that case, the cscope & mkid targets fail (or more accurately,
produce error messages and don't include everything)
>How-To-Repeat:
mkdir /tmp/foobar
cp /sys/arch/i386/conf/GENERIC /tmp/foobar/CONFIG
cd /tmp/foobar
config -s /sys -b /tmp/foobar
make cscope
[Aside: that isn't exactly the way I run it, so I have
no guarantee that will reproduce the problem, though
it should I think].
>Fix:
The problem is that with this setup, the "make sourcefiles"
that the cscope and mkid targets run in tgh elib & compat
directories produce full path names, rather than relative
ones (ie: /sys/... - more likely /usr/src/sys/... but that
doesn't matter).
The make variable substitution
${LIBKERNSRC:S|^|${KERNDST}/|}
where LIBKERNSRC contains full path names, makes a mess...
I changed it to
${LIBKERNSRC:C|^[^/]|${KERNDST}/&|}
with the corresponding change for LIBCOMPATSRC of course, all
duplicated for cscope & mkid, and it all seemed to work for me
after that. Whether it still works with a "conventional" kernel
compile, I don't know (I like to keep my source trees pure, makes
building source tarballs easier).
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: kern-bug-people->wrstuden
Responsible-Changed-By: lukem
Responsible-Changed-When: Mon Jul 1 23:38:48 PDT 2002
Responsible-Changed-Why:
It's Bill's code :)
From: Bill Studenmund <wrstuden@netbsd.org>(by way of Erik E. Fair)
To: NetBSD GNATS Problem Report Tracking System <gnats-bugs@gnats.netbsd.org>
Cc:
Subject: Re: kern/17384
Date: Tue, 23 Jul 2002 20:03:19 -0700
Please try revision 1.18 of syssrc/sys/conf/Makefile.kern.inc. That fixed
it for me, and still works for in-/sys compiles.
Take care,
Bill
From: Robert Elz <kre@munnari.OZ.AU>(by way of Erik E. Fair)
To: NetBSD GNATS Problem Report Tracking System <gnats-bugs@gnats.netbsd.org>
Cc:
Subject: Re: kern/17384
Date: Tue, 23 Jul 2002 20:04:00 -0700
Date: Tue, 2 Jul 2002 13:01:57 -0700 (PDT)
From: Bill Studenmund <wrstuden@netbsd.org>
Message-ID:
<Pine.NEB.4.33.0207021251160.25141-100000@vespasia.home-net.internetconnect.net>
| Please try revision 1.18 of syssrc/sys/conf/Makefile.kern.inc. That fixed
| it for me, and still works for in-/sys compiles.
OK, will do .. let you know tomorrow (assuming the anoncvs update I am
doing now doesn't hang like the one that cron normally runs overnight...)
But that looks impressive - certainly a more dramatic change than the
one I made!
kre
State-Changed-From-To: open->closed
State-Changed-By: wrstuden
State-Changed-When: Wed Jul 24 10:05:53 PDT 2002
State-Changed-Why:
Fixed
>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.