NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

toolchain/49750: Cross build breaks on -current



>Number:         49750
>Category:       toolchain
>Synopsis:       Cross build breaks on -current
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 16 12:15:00 +0000 2015
>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)



Home | Main Index | Thread Index | Old Index