NetBSD Problem Report #56190

From www@netbsd.org  Wed May 19 16:48:19 2021
Return-Path: <www@netbsd.org>
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 39DC51A924E
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 19 May 2021 16:48:19 +0000 (UTC)
Message-Id: <20210519164817.D065F1A924F@mollari.NetBSD.org>
Date: Wed, 19 May 2021 16:48:17 +0000 (UTC)
From: maxtaylor@mail.ru
Reply-To: maxtaylor@mail.ru
To: gnats-bugs@NetBSD.org
Subject: build.sh tools not work
X-Send-Pr-Version: www-1.0

>Number:         56190
>Category:       port-amd64
>Synopsis:       build.sh tools not work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lukem
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 19 16:50:00 +0000 2021
>Closed-Date:    Sat Jun 10 07:24:06 +0000 2023
>Last-Modified:  Sat Jun 10 07:24:06 +0000 2023
>Originator:     Maksim
>Release:        9.2
>Organization:
Home
>Environment:
NetBSD nb_gate 9.2 NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64

>Description:
Try make tools:
./build.sh  -a amd64 -O ./obj tools 
===> build.sh command:    ./build.sh -a amd64 -O ./obj tools
===> build.sh started:    Wed May 19 23:35:54 +07 2021
===> NetBSD version:      9.2
===> MACHINE:             amd64
===> MACHINE_ARCH:        x86_64
===> Build platform:      NetBSD 9.2 amd64
===> HOST_SH:             /bin/sh
===> MAKECONF file:       /etc/mk.conf (File not found)
===> TOOLDIR path:        /usr/src/./obj/tooldir.NetBSD-9.2-amd64
===> DESTDIR path:        /usr/src/./obj/destdir.amd64
===> RELEASEDIR path:     /usr/src/./obj/releasedir
===> Updated makewrapper: /usr/src/./obj/tooldir.NetBSD-9.2-amd64/bin/nbmake-amd64
obj ===> tools
obj ===> tools/host-mkdep
obj ===> tools/compat
obj ===> tools/binstall
nbmake[2]: "/usr/src/tools/binstall/../Makefile.host" line 30: Need an operator
nbmake[2]: Fatal errors encountered -- cannot continue
nbmake[2]: stopped in /usr/src/tools/binstall

*** Failed target:  obj-binstall
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="tools/"; real="/usr/src/tools" ;; *) this="tools/${dir}/"; real="/usr/src/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/src/./obj/tooldir.NetBSD-9.2-amd64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget binstall obj
*** Error code 1

Stop.
nbmake[1]: stopped in /usr/src/tools

*** Failed target:  obj-tools
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/src/./obj/tooldir.NetBSD-9.2-amd64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget tools obj
*** Error code 1

Stop.
nbmake: stopped in /usr/src

ERROR: Failed to make obj-tools
*** BUILD ABORTED ***

>How-To-Repeat:
Just try make : ./build.sh  -a amd64 -O ./obj tools
On release 9.2
>Fix:
I dont know.

>Release-Note:

>Audit-Trail:
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-amd64/56190: build.sh tools not work
Date: Fri, 4 Jun 2021 19:21:32 +0000

 On Wed, May 19, 2021 at 04:50:00PM +0000, maxtaylor@mail.ru wrote:
  > obj ===> tools/binstall
  > nbmake[2]: "/usr/src/tools/binstall/../Makefile.host" line 30: Need an operator

 This sounds like your tree is corrupted.

 Line 30 of src/tools/Makefile.host should be:

    .include "${.CURDIR}/Makefile"

 with no leading spaces.

 -- 
 David A. Holland
 dholland@netbsd.org

State-Changed-From-To: open->feedback
State-Changed-By: lukem@NetBSD.org
State-Changed-When: Thu, 18 May 2023 14:40:22 +0000
State-Changed-Why:
Is this still an issue with the latest source?


Responsible-Changed-From-To: port-amd64-maintainer->lukem
Responsible-Changed-By: lukem@NetBSD.org
Responsible-Changed-When: Sat, 20 May 2023 08:37:36 +0000
Responsible-Changed-Why:


State-Changed-From-To: feedback->closed
State-Changed-By: lukem@NetBSD.org
State-Changed-When: Sat, 10 Jun 2023 07:24:06 +0000
State-Changed-Why:
Unable to reproduce, no response to feedback,
and if this was more than a one-off issue we'd have
seen more reports given amd64 is the most common platform
and this was on our most recent major release


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.