NetBSD Problem Report #3540

Received: (qmail-queue invoked from smtpd); 26 Apr 1997 00:03:16 -0000
Message-Id: <199704260002.RAA23312@adagio.fugue.com>
Date: Fri, 25 Apr 1997 17:02:44 -0700 (PDT)
From: Ted Lemon <mellon@adagio.fugue.com>
Reply-To: mellon@adagio.fugue.com
To: gnats-bugs@gnats.netbsd.org
Subject: Makefile.pmax doesn't work with Jason's cross-compilation hacks
X-Send-Pr-Version: 3.95

>Number:         3540
>Category:       port-pmax
>Synopsis:       Makefile.pmax doesn't work with Jason's cross-compilation hacks
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnats-admin
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 26 00:05:01 +0000 1997
>Closed-Date:    Sat Apr 26 02:21:45 +0000 1997
>Last-Modified:  Wed Aug 07 22:54:23 +0000 2002
>Originator:     Ted Lemon
>Release:        4/25/97
>Organization:
Barefoot Consulting
>Environment:
System: NetBSD adagio.fugue.com 1.2D NetBSD 1.2D (ADAGIO) #8: Sun Apr 20 21:51:46 PDT 1997 mellon@toccata.fugue.com:/NetBSD/current/current/sys/arch/pmax/compile/ADAGIO pmax


>Description:
	Makefile.pmax uses ``size'' instead of ${SIZE}.   When cross-
	compiling, this causes the kernel build to fail right at the
	bitter end.   :'(
>How-To-Repeat:
	Set up a cross-compilation environment per Jason's instructions.
	Configure a kernel.   Build it.   It fails right after the kernel
	is linked.
>Fix:

	Apply this patch (assuming that ${SIZE} is always defined):

Index: Makefile.pmax
===================================================================
RCS file: /cvsroot/src/sys/arch/pmax/conf/Makefile.pmax,v
retrieving revision 1.44
diff -c -2 -r1.44 Makefile.pmax
*** Makefile.pmax	1997/03/16 11:54:03	1.44
--- Makefile.pmax	1997/04/25 23:58:13
***************
*** 86,90 ****
  SYSTEM_LD=	@echo ${KERNLD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}' vers.o ; \
  		${KERNLD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ} vers.o
! SYSTEM_LD_TAIL=	@size $@; chmod 755 $@

  DEBUG?=
--- 86,90 ----
  SYSTEM_LD=	@echo ${KERNLD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}' vers.o ; \
  		${KERNLD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ} vers.o
! SYSTEM_LD_TAIL=	@${SIZE} $@; chmod 755 $@

  DEBUG?=
>Release-Note:
>Audit-Trail:

From: Jonathan Stone <jonathan@netbsd1.cygnus.com>
To: GNATS administrator <gnats-admin@NetBSD.ORG>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: port-pmax/3540: Makefile.pmax doesn't work with Jason's cross-compilation hacks
Date: 26 Apr 1997 02:22:18 -0000

 	`Jonathan Stone' made changes to this PR.

 --- /tmp/gnats009477	Fri Apr 25 19:21:30 1997
 +++ /tmp/gnatsa09477	Fri Apr 25 19:21:45 1997
 @@ -19,7 +19,7 @@
  >Severity:       serious
  >Priority:       high
  >Responsible:    gnats-admin (GNATS administrator)
 ->State:          open
 +>State:          closed
  >Class:          change-request
  >Submitter-Id:   net
  >Arrival-Date:   Fri Apr 25 17:05:01 1997

 Suggested change applied, with an additional
 	SIZE=?	size
 so that native kernel builds continue to work, too.
>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.