Subject: Problem building distribution on alpha
To: None <port-alpha@netbsd.org, current-users@netbsd.org>
From: Arto Huusko <arto.huusko@utu.fi>
List: current-users
Date: 04/27/2005 21:04:50
This is a multi-part message in MIME format.

--Boundary_(ID_kgEYYJOZOUXJ/ic0LwYC1w)
Content-type: text/plain; charset=us-ascii; format=flowed
Content-transfer-encoding: 7BIT

There is a small problem with building distribution on alpha.
When distribution target is built in etc directory, MAKEDEV
is created in the source directory, not destination. This
leads to failure just a bit later:

Like so:

distribution ===> etc   (with: INSTALL_DONE=1)
STRIP=/local/netbsd/current/alpha/tools/bin/alpha--netbsd-strip 
/local/netbsd/current/alpha/tools/bin/nbinstall  -N /source/current/src/etc 
-d -o root -g wheel -m 755 -T base_pkg /local/netbsd/current/alpha/dest 
/local/netbsd/current/alpha/tools/bin/nbmtree -def 
/source/current/src/etc/mtree /NetBSD.dist -N /source/current/src/etc  -p 
/local/netbsd/current/alpha/dest/ -U

install-etc-files ===> etc
#    create  etc//source/current/src/etc/MAKEDEV
MACHINE=alpha MACHINE_ARCH=alpha  NETBSDSRCDIR=/source/current/src  awk -f 
/source/current/src/etc/MAKEDEV.awk /source/current/src/etc/MAKEDEV.tmpl 
 >/source/current/src/etc/MAKEDEV

^^^^ PROBLEM HERE ^^^^

#   install  /local/netbsd/current/alpha/dest/etc/master.passwd
cd /source/current/src/etc && 
STRIP=/local/netbsd/current/alpha/tools/bin/alpha-
-netbsd-strip /local/netbsd/current/alpha/tools/bin/nbinstall  -N 
/source/current/src/etc -c  -r -T etc_pkg -o root -g wheel -m 600 
master.passwd /local/netbsd/current/alpha/dest/etc
/local/netbsd/current/alpha/tools/bin/nbpwd_mkdb -p -L -d 
/local/netbsd/current/alpha/dest/ 
/local/netbsd/current/alpha/dest/etc/master.passwd
#   install  /local/netbsd/current/alpha/dest/etc/ttys
cd /local/netbsd/current/alpha/obj/etc && 
STRIP=/local/netbsd/current/alpha/tools/bin/alpha--netbsd-strip 
/local/netbsd/current/alpha/tools/bin/nbinstall  -N /source/current/src/etc 
-c  -r -T etc_pkg -o root -g wheel -m 644 
/source/current/src/etc/etc.alpha/ttys /local/netbsd/current/alpha/dest/etc
#   install  /local/netbsd/current/alpha/dest/dev/MAKEDEV
cd /local/netbsd/current/alpha/obj/etc && 
STRIP=/local/netbsd/current/alpha/tools/bin/alpha--netbsd-strip 
/local/netbsd/current/alpha/tools/bin/nbinstall  -N /source/current/src/etc 
-c  -r -T etc_pkg -o root -g wheel -m 555  MAKEDEV 
/local/netbsd/current/alpha/dest/dev
nbinstall: MAKEDEV: stat: No such file or directory


I've attached etc/release for the build; all the relevant variables(?)
should be there.

However, what makes this strange is that just yesterday I built i386
from the exact same sources. Only difference in the whole process is
that I had MKX11=yes for i386, but not for alpha.

And here's a relevant snippet from i386 for comparison:

install-etc-files ===> etc
#    create  etc/MAKEDEV
MACHINE=i386 MACHINE_ARCH=i386  NETBSDSRCDIR=/source/current/src  awk -f 
/source/current/src/etc/MAKEDEV.awk /source/current/src/etc/MAKEDEV.tmpl > 
MAKEDEV

Both i386 and alpha were built to clean obj and dest.

--Boundary_(ID_kgEYYJOZOUXJ/ic0LwYC1w)
Content-type: text/plain; name=release
Content-transfer-encoding: 7BIT
Content-disposition: inline; filename=release

NetBSD 3.99.3/alpha

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

Build settings:
          Build date   Wed Apr 27 17:17:49 UTC 2005
            Built by   root@lady

           BSDOBJDIR = '/usr/obj'
           BSDSRCDIR = '/source/current/src'
             BUILDID = (undefined)
             DESTDIR = '/local/netbsd/current/alpha/dest'
  EXTERNAL_TOOLCHAIN = (undefined)
     INSTALLWORLDDIR = (undefined)
         KERNARCHDIR = 'arch/alpha'
         KERNCONFDIR = '/source/current/src/sys/arch/alpha/conf'
          KERNOBJDIR = '/local/netbsd/current/alpha/obj/sys/arch/alpha/compile'
          KERNSRCDIR = '/source/current/src/sys'
             MACHINE = 'alpha'
        MACHINE_ARCH = 'alpha'
                MAKE = '/local/netbsd/current/alpha/tools/bin/nbmake'
            MAKECONF = '/etc/mk.conf'
           MAKEFLAGS = ' -d e -m /source/current/src/share/mk -d e -m /source/current/src/share/mk -j 1 -J 3,4 HOST_OSTYPE=NetBSD-3.99.3-i386 MKOBJDIRS=yes NOPOSTINSTALL=1 USETOOLS=yes _SRC_TOP_=/source/current/src _SRC_TOP_OBJ_=/local/netbsd/current/alpha/obj _THISDIR_=etc/'
          MAKEOBJDIR = '/local/netbsd/current/alpha/obj/etc'
    MAKEOBJDIRPREFIX = (undefined)
         MAKEVERBOSE = '2'
               MKBFD = 'yes'
          MKCATPAGES = 'yes'
            MKCRYPTO = 'yes'
       MKCRYPTO_IDEA = 'no'
       MKCRYPTO_MDC2 = 'no'
        MKCRYPTO_RC5 = 'no'
               MKCVS = 'yes'
               MKDOC = 'yes'
       MKDYNAMICROOT = 'yes'
               MKGCC = 'yes'
           MKGCCCMDS = 'yes'
               MKGDB = 'yes'
            MKHESIOD = 'no'
           MKHOSTOBJ = (undefined)
              MKHTML = 'yes'
            MKIEEEFP = 'yes'
             MKINET6 = 'yes'
              MKINFO = 'yes'
          MKIPFILTER = 'yes'
         MKKERBEROS4 = 'no'
          MKKERBEROS = 'no'
           MKLINKLIB = 'yes'
              MKLINT = 'yes'
               MKMAN = 'yes'
              MKMANZ = 'no'
               MKNLS = 'yes'
               MKOBJ = 'yes'
           MKOBJDIRS = 'yes'
               MKPAM = 'yes'
                MKPF = 'yes'
               MKPIC = 'yes'
        MKPICINSTALL = 'yes'
            MKPICLIB = 'yes'
           MKPOSTFIX = 'yes'
           MKPROFILE = 'yes'
          MKSENDMAIL = 'no'
             MKSHARE = 'yes'
              MKSKEY = 'no'
         MKSOFTFLOAT = 'no'
         MKSTATICLIB = 'yes'
          MKUNPRIVED = 'no'
            MKUPDATE = 'no'
              MKUUCP = 'no'
               MKX11 = 'no'
                MKYP = 'yes'
          NBUILDJOBS = (undefined)
        NETBSDSRCDIR = '/source/current/src'
          NOCLEANDIR = 'yes'
       NODISTRIBDIRS = (undefined)
          NOINCLUDES = (undefined)
          OBJMACHINE = 'YES'
          RELEASEDIR = '/local/netbsd/current/alpha/release'
   TOOLCHAIN_MISSING = 'no'
             TOOLDIR = '/local/netbsd/current/alpha/tools'
            USETOOLS = 'yes'
      USR_OBJMACHINE = (undefined)
           X11SRCDIR = '/source/current/xsrc'

--Boundary_(ID_kgEYYJOZOUXJ/ic0LwYC1w)--