NetBSD Problem Report #40492

From www@NetBSD.org  Tue Jan 27 00:26:09 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 1436063BFFA
	for <gnats-bugs@gnats.netbsd.org>; Tue, 27 Jan 2009 00:26:09 +0000 (UTC)
Message-Id: <20090127002608.D2A4763BAB8@narn.NetBSD.org>
Date: Tue, 27 Jan 2009 00:26:08 +0000 (UTC)
From: scotte@warped.com
Reply-To: scotte@warped.com
To: gnats-bugs@NetBSD.org
Subject: STRIPFLAGS causes Alpha build to fail
X-Send-Pr-Version: www-1.0

>Number:         40492
>Category:       install
>Synopsis:       STRIPFLAGS causes Alpha build to fail
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    install-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 27 00:30:00 +0000 2009
>Closed-Date:    Thu Apr 23 14:55:31 +0000 2009
>Last-Modified:  Thu Apr 23 14:55:31 +0000 2009
>Originator:     Scott Ellis
>Release:        -current 01/08/09
>Organization:
>Environment:
NetBSD intrepid 5.99.6 NetBSD 5.99.6 (INTREPID.P5W) #0: Thu Jan  8 16:04:32 PST 2009  scotte@intrepid:/nbu/source/netbsd/src/obj.amd64/nbu/source/netbsd/src/sys/arch/amd64/compile/INTREPID.P5W amd64
(Building -current as of 01/26/09)
>Description:
If /etc/mk.conf contains "STRIPFLAGS=-s" (to cause binaries to be stripped), a build of NetBSD/Alpha fails in stand/boot because "boot" isn't something that can be stripped (so strips fails with "unrecognized file type").

Oddly, this works on x86_64 (whose /usr/mdec/boot is also not an ELF binary!).  I don't suspect this is a cross-building problem, but perhaps it is.

>How-To-Repeat:
Include "STRIPFLAGS=-s" in /etc/mk.conf
Use build.sh to build NetBSD/Alpha -current
Note the build stops in /usr/src/sys/arch/alpha/stand/ (error from 'strip' when alpha--netbsd-install is called)
>Fix:

>Release-Note:

>Audit-Trail:
From: Izumi Tsutsui <tsutsui@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/40492 CVS commit: src/sys/arch/alpha/stand
Date: Mon, 20 Apr 2009 13:15:12 +0000

 Module Name:	src
 Committed By:	tsutsui
 Date:		Mon Apr 20 13:15:12 UTC 2009

 Modified Files:
 	src/sys/arch/alpha/stand: Makefile.bootprogs

 Log Message:
 Set STRIPFLAG= after ${MAKECONF} is included by <bsd.own.mk> via <bsd.prog.mk>.
 Fixes PR install/40492.


 To generate a diff of this commit:
 cvs rdiff -u -r1.29 -r1.30 src/sys/arch/alpha/stand/Makefile.bootprogs

 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: Thu, 23 Apr 2009 23:55:31 +0900
State-Changed-Why:
Fixed.


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