NetBSD Problem Report #55929

From paul@whooppee.com  Thu Jan 14 21:27:51 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 10B701A9217
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 14 Jan 2021 21:27:51 +0000 (UTC)
Message-Id: <20210114212748.42D1730F2C4@speedy.whooppee.com>
Date: Thu, 14 Jan 2021 13:27:48 -0800 (PST)
From: paul@whooppee.com
Reply-To: paul@whooppee.com
To: gnats-bugs@NetBSD.org
Subject: ``build.sh install-image'' doesn't work with KERNEL_DIR=yes
X-Send-Pr-Version: 3.95

>Number:         55929
>Category:       install
>Synopsis:       ``build.sh install-image'' doesn't work with KERNEL_DIR=yes
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 14 21:30:00 +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:
	Running ``build.sh install-image'' fails if the distribution
	was built with KERNEL_DIR=yes

	Here's the relevant log file:

===> build.sh command:    ./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=no -V KERNEL_DIR=yes -V MKPAM=no -U -u -x -N2 -m amd64 -j1 install-image
===> build.sh started:    Thu Jan 14 21:20:38 UTC 2021
===> NetBSD version:      9.99.77
===> MACHINE:             amd64
===> MACHINE_ARCH:        x86_64
===> Build platform:      NetBSD 9.99.77 amd64
===> HOST_SH:             /bin/sh
===> MAKECONF file:       /etc/mk.conf
===> TOOLDIR path:        /build/netbsd-local/tools/x86_64/amd64
===> DESTDIR path:        /build/netbsd-local/dest/amd64
===> RELEASEDIR path:     /build/netbsd-local/release
===> Updated makewrapper: /build/netbsd-local/tools/x86_64/amd64/bin/nbmake-amd64
install-image ===> etc
install_image ===> /build/netbsd-local/src_ro/distrib	(with: INSTIMG_RELEASEDIR=/build/netbsd-local/release/images)
install_image ===> /build/netbsd-local/src_ro/distrib/notes
install_image ===> /build/netbsd-local/src_ro/distrib/utils
install_image ===> /build/netbsd-local/src_ro/distrib/amd64
install_image ===> /build/netbsd-local/src_ro/distrib/amd64/installimage
/build/netbsd-local/tools/x86_64/amd64/bin/nbsed							 -e "s/@@MACHINE@@/amd64/"				 -e "s/@@VERSION@@/9.99.77/"				 < /build/netbsd-local/src_ro/distrib/amd64/installimage/boot.cfg.in > boot.cfg
Missing /build/netbsd-local/release/amd64/binary/sets/kern-GENERIC.tar.xz, aborting

*** Failed target:  imgroot.fs
*** Failed command: if [ ! -f /build/netbsd-local/release/amd64/binary/sets/kern-GENERIC.tar.xz ]; then echo "Missing /build/netbsd-local/release/amd64/binary/sets/kern-GENERIC.tar.xz, aborting"; false; fi
*** Error code 1

Stop.
nbmake[4]: stopped in /build/netbsd-local/src_ro/distrib/amd64/installimage
*** [install_image] Error code 1

nbmake[3]: stopped in /build/netbsd-local/src_ro/distrib/amd64
1 error

nbmake[3]: stopped in /build/netbsd-local/src_ro/distrib/amd64

*** Failed target:  install_image-amd64
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="/build/netbsd-local/src_ro/distrib/"; real="/build/netbsd-local/src_ro/distrib" ;; *) this="/build/netbsd-local/src_ro/distrib/${dir}/"; real="/build/netbsd-local/src_ro/distrib/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /build/netbsd-local/tools/x86_64/amd64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget amd64 install_image
*** Error code 2

Stop.
nbmake[2]: stopped in /build/netbsd-local/src_ro/distrib
*** [install-image] Error code 1

nbmake[1]: stopped in /build/netbsd-local/src_ro/etc
1 error

nbmake[1]: stopped in /build/netbsd-local/src_ro/etc
*** [install-image] Error code 2

nbmake: stopped in /build/netbsd-local/src_ro

nbmake: stopped in /build/netbsd-local/src_ro

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

>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.