NetBSD Problem Report #42702

From www@NetBSD.org  Sat Jan 30 09:39:03 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id AA09263BBAC
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 30 Jan 2010 09:39:03 +0000 (UTC)
Message-Id: <20100130093903.3EFE763B886@www.NetBSD.org>
Date: Sat, 30 Jan 2010 09:39:03 +0000 (UTC)
From: eau@phear.org
Reply-To: eau@phear.org
To: gnats-bugs@NetBSD.org
Subject: ./build.sh release  with some options in mk.conf fail!
X-Send-Pr-Version: www-1.0

>Number:         42702
>Category:       port-amd64
>Synopsis:       ./build.sh release  with some options in mk.conf fail!
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 30 09:40:00 +0000 2010
>Originator:     Eric Auge
>Release:        netbsd 5.0.1
>Organization:
>Environment:
NetBSD foobsd.no.phear.org 5.0.1 NetBSD 5.0.1 (GENERIC) #0: Thu Jul 30 00:08:07 UTC 2009 builds@b7.netbsd.org:/home/builds/ab/netbsd-5-0-1-RELEASE/amd64/200907292356Z-obj/home/builds/ab/netbsd-5-0-1-RELEASE/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
build.sh -m amd64 release cleaned and rebuilt from scratch fails with the following issue:

[...]
chmod +w bootxx.amd64
/usr/src/../amd64.tools/bin/nbinstallboot -mamd64 -e -o console=com0 bootxx.amd64
nbinstallboot: Invalid magic in exiting bootstrp
nbinstallboot: Edit bootstrap operation failed
*** Failed command: /usr/src/../amd64.tools/bin/nbinstallboot -mamd64 -e -o console=com0 bootxx.amd64
*** Error code 1

Stop.
nbmake: stopped in /usr/src/distrib/amd64/cdroms/bootcd-com

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

Stop.
[...]
>How-To-Repeat:
my mk.conf is the following:

MKDOC=yes
MKDYNAMICROOT=yes
MKGCC=yes
MKGCCCMDS=yes
MKGDB=yes
MKHESIOD=yes
MKMAN=yes
MKHTML=yes
MKPIE=yes
MKSKEY=yes
MKIPFILTEr=no
MKYP=no
MKSTRIPIDENT=yes
USE_SSP=yes


and i do the following 
cd /usr/src
./build.sh -m amd64 -T ../amd64.tools -O ../amd64.obj -R ../amd64.release release

This is running in a virtualbox vm, i use it for cross compiling systems for updating various box on different arch (cobalt/macppc/sparc64/amd64)


>Fix:

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.