NetBSD Problem Report #46994

From campbell@mumble.net  Fri Sep 21 22:40:27 2012
Return-Path: <campbell@mumble.net>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id D437A63E231
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 21 Sep 2012 22:40:26 +0000 (UTC)
Message-Id: <20120921224007.75C9A604B3@jupiter.mumble.net>
Date: Fri, 21 Sep 2012 22:40:06 +0000 (UTC)
From: Taylor R Campbell <campbell+netbsd@mumble.net>
Reply-To: Taylor R Campbell <campbell+netbsd@mumble.net>
To: gnats-bugs@gnats.NetBSD.org
Subject: `build.sh modules' is broken
X-Send-Pr-Version: 3.95

>Number:         46994
>Category:       misc
>Synopsis:       `build.sh modules' is broken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 21 22:45:00 +0000 2012
>Closed-Date:    Sat Sep 29 05:10:54 +0000 2012
>Last-Modified:  Sat Sep 29 05:10:54 +0000 2012
>Originator:     Taylor R Campbell <campbell+netbsd@mumble.net>
>Release:        NetBSD 6.99.11
>Organization:
>Environment:
Architecture: amd64
Machine: amd64
>Description:

	The do-sys-modules target in the top-level Makefile is gone, so
	`build.sh modules' no longer works.

	If I try making dependall and install in sys/modules manually,
	then I see the following failure:

#   install  /home/riastradh/netbsd/current/src/../obj.amd64/destdir.amd64/usr/libdata/ldscripts/kmodule
/home/riastradh/netbsd/current/src/../tools.amd64/bin/x86_64--netbsd-install -U -M /home/riastradh/netbsd/current/src/../obj.amd64/destdir.amd64/METALOG -D /home/riastradh/netbsd/current/src/../obj.amd64/destdir.amd64 -h sha256 -N /home/riastradh/netbsd/current/src/etc -c -p -r  -o root  -g wheel  -m 444   kmodule /home/riastradh/netbsd/current/src/../obj.amd64/destdir.amd64/usr/libdata/ldscripts/kmodule 
x86_64--netbsd-install: /home/riastradh/netbsd/current/src/../obj.amd64/destdir.amd64/usr/libdata/ldscripts: mkstemp: No such file or directory
*** [/home/riastradh/netbsd/current/src/../obj.amd64/destdir.amd64/usr/libdata/ldscripts/kmodule] Error code 1

>How-To-Repeat:

	Attempt `build.sh modules'.  Failing that, attempt
	`nbmake-amd64 dependall && nbmake-amd64 install' in sys/modules
	manually.

>Fix:

	Yes, please!

>Release-Note:

>Audit-Trail:
From: "Izumi Tsutsui" <tsutsui@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46994 CVS commit: src
Date: Sat, 29 Sep 2012 04:02:43 +0000

 Module Name:	src
 Committed By:	tsutsui
 Date:		Sat Sep 29 04:02:43 UTC 2012

 Modified Files:
 	src: build.sh

 Log Message:
 Fix build.sh "modules" target build which has been broken since
 do-sys-modules target was removed from src/Makefile in rev 1.299.
 Fixes PR/46994.
 Also remove a redundant bomb message which is already handled by
 make_in_dir().


 To generate a diff of this commit:
 cvs rdiff -u -r1.255 -r1.256 src/build.sh

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

State-Changed-From-To: open->closed
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Sat, 29 Sep 2012 14:10:54 +0900
State-Changed-Why:
Fixed.
Note for manual install in sys/modules before do-distrib-dirs
MKBINUTILS=no is required as build.sh does.


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