NetBSD Problem Report #55923

From paul@whooppee.com  Wed Jan 13 14:59:53 2021
Return-Path: <paul@whooppee.com>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id CC8161A9217
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 13 Jan 2021 14:59:53 +0000 (UTC)
Message-Id: <20210113145950.D8DC030F2C4@speedy.whooppee.com>
Date: Wed, 13 Jan 2021 06:59:50 -0800 (PST)
From: paul@whooppee.com
Reply-To: paul@whooppee.com
To: gnats-bugs@NetBSD.org
Subject: amd64 build failure with KERNEL_DIR and MK*DEBUG*
X-Send-Pr-Version: 3.95

>Number:         55923
>Category:       kern
>Synopsis:       amd64 build failure with KERNEL_DIR and various MK*DEBUG*
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pgoyette
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 13 15:00:00 +0000 2021
>Closed-Date:    Thu Jan 14 19:33:40 +0000 2021
>Last-Modified:  Thu Jan 14 19:33:40 +0000 2021
>Originator:     Paul Goyette
>Release:        NetBSD 9.99.77
>Organization:
+--------------------+--------------------------+-----------------------+
| Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:     |
| (Retired)          | FA29 0E3B 35AF E8AE 6651 | paul@whooppee.com     |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette@netbsd.org   |
+--------------------+--------------------------+-----------------------+
>Environment:


System: NetBSD speedy.whooppee.com 9.99.77 NetBSD 9.99.77 (SPEEDY 2020-12-09 16:52:22 UTC) #0: Thu Dec 10 00:56:59 UTC 2020 paul@speedy.whooppee.com:/build/netbsd-local/obj/amd64/sys/arch/amd64/compile/SPEEDY amd64
Architecture: x86_64
Machine: amd64
>Description:
With the following invocation of build.sh

	./build.sh	-T /build/netbsd-local/tools/x86_64/amd64	\
			-D /build/netbsd-local/dest/amd64		\
			-O /build/netbsd-local/obj/amd64		\
			-R /build/netbsd-local/release			\
			-V RELEASEMACHINEDIR=amd64			\
			-V MKDEBUG=yes					\
			-V MKKDEBUG=yes					\
			-V MKDEBUGLIB=yes				\
			-V KERNEL_DIR=yes				\
			-V MKPAM=no					\
			-U						\
			-x						\
			-N2						\
			-m amd64					\
			-j1						\
		release

the following error occurs:

	...
	   ===============================
	checkflist ===> distrib/sets
	cd /build/netbsd-local/src_ro/distrib/sets &&  DESTDIR=/build/netbsd-local/dest/amd64  MACHINE=amd64  MACHINE_ARCH=x86_64  AWK=/build/netbsd-local/tools/x86_64/amd64/bin/nbawk  CKSUM=/build/netbsd-local/tools/x86_64/amd64/bin/nbcksum  DB=/build/netbsd-local/tools/x86_64/amd64/bin/nbdb  EGREP=/build/netbsd-local/tools/x86_64/amd64/bin/nbgrep\ -E  HOST_SH=/bin/sh  MAKE=/build/netbsd-local/tools/x86_64/amd64/bin/nbmake  MKTEMP=/build/netbsd-local/tools/x86_64/amd64/bin/nbmktemp MTREE=/build/netbsd-local/tools/x86_64/amd64/bin/nbmtree  PAX=/build/netbsd-local/tools/x86_64/amd64/bin/nbpax  COMPRESS_PROGRAM=/build/netbsd-local/tools/x86_64/amd64/bin/nbxz  GZIP=-n  XZ_OPT=-9  TAR_SUFF=tar.xz  PKG_CREATE=/build/netbsd-local/tools/x86_64/amd64/bin/nbpkg_create  SED=/build/netbsd-local/tools/x86_64/amd64/bin/nbsed  TSORT=/build/netbsd-local/tools/x86_64/amd64/bin/nbtsort\ -q /bin/sh /build/netbsd-local/src_ro/distrib/sets/checkflist  -L base,x  -M /build/netbsd-local/dest/amd64/METALO
 G.saniti
 sed
	=======  1 extra files in DESTDIR  =========
	Files in DESTDIR but missing from flist.
	File is obsolete or flist is out of date ?
	------------------------------------------
	./usr/libdata/debug/netbsd
	=========  end of 1 extra files  ===========
	*** [checkflist] Error code 1
	nbmake[2]: stopped in /build/netbsd-local/src_ro/distrib/sets
	...

The extra file is actually a directory.

It would appear that the directory should indeed exist (probably as a
result of MKKDEBUG=yes), but the sets lists do not provide for this
directory or its contents.

>How-To-Repeat:
	See above
>Fix:


>Release-Note:

>Audit-Trail:
From: Paul Goyette <paul@whooppee.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/55923: amd64 build failure with KERNEL_DIR and MK*DEBUG*
Date: Wed, 13 Jan 2021 07:03:58 -0800 (PST)

 Note that this is probably not a "kern" bug, but I did not see a
 "build" option, and it's definitely not an "install" issue.

From: Paul Goyette <paul@whooppee.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/55923: amd64 build failure with KERNEL_DIR and MK*DEBUG*
Date: Thu, 14 Jan 2021 11:27:59 -0800 (PST)

 (logging to PR audit trail - doesn't seem to be picked up automatically)

 Module Name:    src
 Committed By:   pgoyette
 Date:           Thu Jan 14 19:07:03 UTC 2021

 Modified Files:
          src/distrib/sets/lists/debug: mi

 Log Message:
 /home/paul/XXX.txt


 To generate a diff of this commit:
 cvs rdiff -u -r1.346 -r1.347 src/distrib/sets/lists/debug/mi

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

 -------------------------

 Module Name:    src
 Committed By:   pgoyette
 Date:           Thu Jan 14 19:11:48 UTC 2021

 Modified Files:
          src/distrib/sets/lists/debug: mi

 Log Message:
 Update sets lists to accomodate KERNEL_DIR.  When both KERNEL_DIR and
 MKDEBUG are defined, we create empty $DESTDIR/usr/libdata/debug/netbsd/
 directory.

 Should fix ``build.sh release'' issue reported in kern/55923

 XXX Since nothing ever seems to populate this directory, perhaps we should
 XXX simply prevent its creation?  If we do create it, should its creation
 XXX perhaps be conditioned on MKKDEBUG rather than MKDEBUG?

 XXX There is still another problem with ``build.sh install-image'' but I
 XXX open a new PR for that.


 To generate a diff of this commit:
 cvs rdiff -u -r1.347 -r1.348 src/distrib/sets/lists/debug/mi

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 +--------------------+--------------------------+-----------------------+
 | Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:     |
 | (Retired)          | FA29 0E3B 35AF E8AE 6651 | paul@whooppee.com     |
 | Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette@netbsd.org   |
 +--------------------+--------------------------+-----------------------+

Responsible-Changed-From-To: kern-bug-people->pgoyette
Responsible-Changed-By: pgoyette@NetBSD.org
Responsible-Changed-When: Thu, 14 Jan 2021 19:33:40 +0000
Responsible-Changed-Why:
I fixed it.


State-Changed-From-To: open->closed
State-Changed-By: pgoyette@NetBSD.org
State-Changed-When: Thu, 14 Jan 2021 19:33:40 +0000
State-Changed-Why:
Bug is fixed.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.