NetBSD Problem Report #39390

From reed@reedmedia.net  Thu Aug 21 18:26:45 2008
Return-Path: <reed@reedmedia.net>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id CAE9763B877
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 21 Aug 2008 18:26:44 +0000 (UTC)
Message-Id: <7096-1219342074@reedmedia.net>
Date: Thu, 21 Aug 2008 13:07:55 -0500
From: reed@reedmedia.net
Reply-To: reed@reedmedia.net
To: gnats-bugs@gnats.NetBSD.org
Subject: BSDOBJDIR not checked for until after nbmake is built
X-Send-Pr-Version: 3.95

>Number:         39390
>Category:       bin
>Synopsis:       BSDOBJDIR not checked for until after nbmake is built
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 21 18:30:01 +0000 2008
>Originator:     reed@reedmedia.net
>Release:        NetBSD 4.99.62
>Organization:
  Jeremy C. Reed
>Environment:


System: NetBSD tx.reedmedia.net 4.99.62 NetBSD 4.99.62 (GENERIC) #13: Wed Aug 6 17:23:27 CDT 2008 reed@tx.reedmedia.net:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
Today's current.
./build.sh kernel=GENERIC 
fails after building nbmake:

tx:src$  ./build.sh kernel=GENERIC
===> build.sh command: ./build.sh kernel=GENERIC
===> build.sh started: Thu Aug 21 12:51:39 CDT 2008
===> NetBSD version:   4.99.72
===> MACHINE:          amd64
===> MACHINE_ARCH:     x86_64
===> Build platform:   NetBSD 4.99.62 amd64
===> HOST_SH:          /bin/sh
===> No /usr/src/obj/tooldir.NetBSD-4.99.62-x86_64/bin/nbmake, needs building.
===> Bootstrapping nbmake
checking for sh... /bin/sh
checking for gcc... cc
...
cc  -O -DDEFSHELL_CUSTOM="/bin/sh" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstSucc.c
cc  -O -o nbmake *.o  
BSDOBJDIR /usr/obj does not exist, bailing...

*** Failed target:  obj

Nothing in my mk.conf is related.

Also I don't know why my TOP_objdir is /usr/src but the above is /usr/obj

I do see it may be built but validatemakeparams is done after rebuildmake.

I think that the nbmake build doesn't use the same object directory.

>How-To-Repeat:

Get a real slow system and start build.sh and leave. Come back
later and notice nothing happened.

>Fix:
Check and fail immediately.

Or better yet create the missing directory (and fail if can't).

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.