Subject: toolchain/27143: build.sh of a system built 10/3 can't identify the system type
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <htodd@twofifty.com>
List: netbsd-bugs
Date: 10/04/2004 14:15:33
>Number:         27143
>Category:       toolchain
>Synopsis:       build.sh now thinks an i386 system is "unknown"
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 04 21:16:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Hisashi Todd Fujinaka
>Release:        NetBSD 2.99.9
>Organization:
No organization.
>Environment:
	
	
System: NetBSD allison 2.99.9 NetBSD 2.99.9 (ALLISON) #939: Fri Oct 1 08:53:44 PDT 2004 htodd@allison:/disk/0/obj/sys/arch/i386/compile.i386/ALLISON i386
Architecture: i386
Machine: i386
>Description:
uname works for the system, but build.sh appears to think the system type is unknown.

build.sh params seems semi-normal but has an odd line:
#    objdir  /usr/obj/tools.unknown

The whole of build.sh params follows:

===> build.sh command: ./build.sh params
===> build.sh started: Mon Oct  4 14:13:32 PDT 2004
===> No nonexistent/bin/nbmake, needs building.
===> Bootstrapping nbmake
checking for sh... /bin/sh
checking for gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix... 
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking how to run the C preprocessor... cc -E
checking for regex.h... yes
checking for poll.h... yes
checking for regfree in -lregex... no
checking for library containing regfree... none required
checking for setenv... yes
checking for strdup... yes
checking for strerror... yes
checking for strftime... yes
checking for vsnprintf... yes
configure: creating ./config.status
config.status: creating buildmake.sh
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/arch.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/buf.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/compat.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/cond.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/dir.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/for.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/hash.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/job.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/main.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/make.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/parse.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/str.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/suff.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/targ.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/trace.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/util.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/var.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstAppend.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstAtEnd.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstAtFront.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstClose.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstConcat.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstDatum.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstDeQueue.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstDestroy.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstDupl.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstEnQueue.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstFind.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstFindFrom.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstFirst.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstForEach.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstForEachFrom.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstInit.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstInsert.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstIsAtEnd.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstIsEmpty.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstLast.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstMember.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstNext.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstOpen.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstRemove.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstReplace.c
cc  -O -D_PATH_BSHELL="/bin/sh" -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /usr/src/tools/make/../../usr.bin/make/lst.lib/lstSucc.c
cc  -O -o nbmake *.o  
#    objdir  /usr/obj/tools.unknown
===> MACHINE:          i386
===> MACHINE_ARCH:     i386
===> TOOLDIR path:     /usr/src/tooldir.NetBSD-2.99.9-i386
===> DESTDIR path:     /usr/src/destdir.i386
===> RELEASEDIR path:  /usr/src/releasedir
===> Created /usr/src/tooldir.NetBSD-2.99.9-i386/bin/nbmake
===> makewrapper:      /usr/src/tooldir.NetBSD-2.99.9-i386/bin/nbmake-i386
===> Updated /usr/src/tooldir.NetBSD-2.99.9-i386/bin/nbmake-i386
params ===> etc
           BSDOBJDIR = '/usr/obj'
           BSDSRCDIR = '/usr/src'
             BUILDID = (undefined)
             DESTDIR = '/usr/src/destdir.i386'
  EXTERNAL_TOOLCHAIN = (undefined)
     INSTALLWORLDDIR = (undefined)
         KERNARCHDIR = 'arch/i386'
         KERNCONFDIR = '/usr/src/sys/arch/i386/conf'
          KERNOBJDIR = '/usr/src/sys/arch/i386/compile'
          KERNSRCDIR = '/usr/src/sys'
             MACHINE = 'i386'
        MACHINE_ARCH = 'i386'
                MAKE = '/usr/src/tooldir.NetBSD-2.99.9-i386/bin/nbmake'
            MAKECONF = '/etc/mk.conf'
           MAKEFLAGS = ' -d e -m /usr/src/share/mk HOST_OSTYPE=NetBSD-2.99.9-i386 MKOBJDIRS=yes USETOOLS=yes _SRC_TOP_=/usr/src _SRC_TOP_OBJ_=/usr/src _THISDIR_=etc/'
          MAKEOBJDIR = (undefined)
    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 = 'yes'
           MKHOSTOBJ = (undefined)
              MKHTML = 'yes'
            MKIEEEFP = 'yes'
              MKINFO = 'yes'
         MKKERBEROS4 = 'yes'
          MKKERBEROS = 'yes'
           MKLINKLIB = 'yes'
              MKLINT = 'yes'
               MKMAN = 'yes'
              MKMANZ = 'no'
               MKNLS = 'yes'
               MKOBJ = 'yes'
           MKOBJDIRS = 'yes'
               MKPIC = 'yes'
        MKPICINSTALL = 'yes'
            MKPICLIB = 'yes'
           MKPOSTFIX = 'yes'
           MKPROFILE = 'yes'
          MKSENDMAIL = 'yes'
             MKSHARE = 'yes'
              MKSKEY = 'yes'
         MKSOFTFLOAT = 'no'
         MKSTATICLIB = 'yes'
          MKUNPRIVED = 'no'
            MKUPDATE = 'no'
              MKUUCP = 'yes'
               MKX11 = 'no'
                MKYP = 'yes'
          NBUILDJOBS = (undefined)
        NETBSDSRCDIR = '/usr/src'
          NOCLEANDIR = (undefined)
       NODISTRIBDIRS = (undefined)
          NOINCLUDES = (undefined)
          OBJMACHINE = 'YES'
          RELEASEDIR = '/usr/src/releasedir'
   TOOLCHAIN_MISSING = 'no'
             TOOLDIR = '/usr/src/tooldir.NetBSD-2.99.9-i386'
            USETOOLS = 'yes'
      USR_OBJMACHINE = (undefined)
           X11SRCDIR = '/usr/xsrc'
===> Successful make params
===> build.sh started: Mon Oct  4 14:13:32 PDT 2004
===> build.sh ended:   Mon Oct  4 14:13:40 PDT 2004
===> Summary of results:
	 build.sh command: ./build.sh params
	 build.sh started: Mon Oct  4 14:13:32 PDT 2004
	 No nonexistent/bin/nbmake, needs building.
	 Bootstrapping nbmake
	 MACHINE:          i386
	 MACHINE_ARCH:     i386
	 TOOLDIR path:     /usr/src/tooldir.NetBSD-2.99.9-i386
	 DESTDIR path:     /usr/src/destdir.i386
	 RELEASEDIR path:  /usr/src/releasedir
	 Created /usr/src/tooldir.NetBSD-2.99.9-i386/bin/nbmake
	 makewrapper:      /usr/src/tooldir.NetBSD-2.99.9-i386/bin/nbmake-i386
	 Updated /usr/src/tooldir.NetBSD-2.99.9-i386/bin/nbmake-i386
	 Successful make params
	 build.sh started: Mon Oct  4 14:13:32 PDT 2004
	 build.sh ended:   Mon Oct  4 14:13:40 PDT 2004
===> .


	
>How-To-Repeat:
	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: