NetBSD Problem Report #49750

From www@NetBSD.org  Mon Mar 16 12:12:06 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id B0FC0A6553
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 16 Mar 2015 12:12:06 +0000 (UTC)
Message-Id: <20150316121205.69104A65BA@mollari.NetBSD.org>
Date: Mon, 16 Mar 2015 12:12:05 +0000 (UTC)
From: cherry@NetBSD.org
Reply-To: cherry@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: Cross build breaks on -current
X-Send-Pr-Version: www-1.0

>Number:         49750
>Category:       toolchain
>Synopsis:       Cross build breaks on -current
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    toolchain-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 16 12:15:00 +0000 2015
>Closed-Date:    Wed Feb 20 22:41:35 +0000 2019
>Last-Modified:  Wed Feb 20 22:41:35 +0000 2019
>Originator:     Cherry G. Mathew
>Release:        
>Organization:
>Environment:
native toolchain snippet of relevance on build machine:

           BUILDSEED = 'NetBSD-8'
             DESTDIR = '/tmp/xen64-obj/home/dev/src/destdir.amd64'
          DISTRIBVER = '7.99.1'
  EXTERNAL_TOOLCHAIN = (undefined)
            HAVE_GCC = '48'
            HAVE_GDB = '7'
           HAVE_LLVM = (undefined)
            HAVE_PCC = (undefined)
     INSTALLWORLDDIR = (undefined)
         KERNARCHDIR = (undefined)
         KERNCONFDIR = (undefined)
          KERNOBJDIR = (undefined)
          KERNSRCDIR = (undefined)
             MACHINE = 'amd64'
        MACHINE_ARCH = 'x86_64'
                MAKE = '/tmp/src/tools-obj/bin/nbmake'
            MAKECONF = '/etc/mk.conf'

>Description:
-current breaks on a cross build minus patch below.
>How-To-Repeat:
#Unprivileged cross build to /tmp/
BUILDDIR=/tmp/xen32-obj
COMMONFLAGS="-j8 -mi386 -u -U -M $BUILDDIR -T $BUILDDIR/tools-obj"

./build.sh $COMMONFLAGS $@ tools
./build.sh $COMMONFLAGS $@ kernel=XEN3_DOMU

>Fix:
cvs diff: Diffing .
Index: Makefile
===================================================================
RCS file: /cvsroot/src/tools/compat/Makefile,v
retrieving revision 1.73
diff -u -r1.73 Makefile
--- Makefile    18 Jan 2015 18:09:10 -0000      1.73
+++ Makefile    16 Mar 2015 12:01:27 -0000
@@ -125,7 +125,7 @@

 # Install include files in ${TOOLDIR}/include/compat
 includes: .PHONY ${HOST_INCINSTDIRS} .WAIT ${HOST_INCINSTFILES}
-       @(cd include && find . -name '*.h' -print | while read f ; do \
+       @(cd ${.CURDIR}/include && find . -name '*.h' -print | while read f ; do \
            ${HOST_INSTALL_FILE} $$f ${HOST_INCSDIR}/compat/$$f ; \
        done)

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: mrg@NetBSD.org
State-Changed-When: Thu, 20 Dec 2018 22:18:59 +0000
State-Changed-Why:
does this still happen?


From: "Mathew, Cherry G." <cherry@zyx.in>
To: gnats-bugs@gnats.netbsd.org
Cc: 
Subject: Re: toolchain/49750
Date: Thu, 21 Feb 2019 01:02:14 +0800

 This problem seems to have magically gone away=2E

 Please close=2E

 Thanks

 Cherry
 --=20
 Sent from my phone=2E Please excuse my brevity=2E

State-Changed-From-To: feedback->closed
State-Changed-By: mrg@NetBSD.org
State-Changed-When: Wed, 20 Feb 2019 22:41:35 +0000
State-Changed-Why:
closed at submitters request


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.