make installworld fails : touch not found ?

Morton Lin mtlin1 at
Fri May 16 23:15:42 PDT 2003

Hi, hackers :

Yesterday night and this morning, I cvsup my system to latest STABLE branch
source (RELENG_4). All make buildworld, buildkernel, and installkernel
procedure was completed with no error. But when I boot into single user mode
and try to make installworld, I always got " touch: not found " error.
Does anyone encounter this situation ? I have no idea about that.  :-(

Here is error message :

---------[make installworld ]-----------------------------------------------

mkdir -p /tmp/install.466
for prog in [ awk cap_mkdb cat chflags chmod chown  date echo egrep find
grep  l
n make makewhatis mkdir mtree mv perl pwd_mkdb rm sed sh sysctl  test true
 wc zic; do  cp `which $prog` /tmp/install.466;  done
cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj  MACHINE_ARCH=i386  MACHINE=i386
bdata/perl/5.00503  GROFF_BIN_PATH=/usr/obj/usr/src/i386/usr/bin
r/bin:/usr/obj/usr/src/i386/usr/games:/tmp/install.466 make -f Makefile.inc1
>>> Making hierarchy
cd /usr/src; make -f Makefile.inc1 hierarchy
cd /usr/src/etc;                make distrib-dirs
set - `grep "^[a-zA-Z]" /usr/src/etc/locale.deprecated`;  while [ $# -gt 0 ]
do  for dir in /usr/share/locale  /usr/share/nls  /usr/local/share/nls;  do
t -d /${dir} && cd /${dir};  test -L "$2" && rm -rf "$2";  test \! -L "$1"
&& te
st -d "$1" && mv "$1" "$2";  done;  shift; shift;  done
mtree -deU -f /usr/src/etc/mtree/BSD.root.dist -p /
mtree -deU -f /usr/src/etc/mtree/BSD.var.dist -p /var
mtree -deU -f /usr/src/etc/mtree/BSD.usr.dist -p /usr
mtree -deU -f /usr/src/etc/mtree/BSD.include.dist  -p /usr/include
mtree -deU -f /usr/src/etc/mtree/BSD.include.dist  -p
mtree -deU -f /usr/src/etc/mtree/BSD.sendmail.dist -p /
cd /; rm -f /sys; ln -s usr/src/sys sys
cd /usr/share/man/en.ISO8859-1; ln -sf ../man* .
cd /usr/share/man;  set - `grep "^[a-zA-Z]" /usr/src/etc/man.alias`;  while
[ $#
 -gt 0 ] ;  do  rm -rf "$1";  ln -s "$2" "$1";  shift; shift;  done
cd /usr/share/locale;  set - `grep "^[a-zA-Z]" /usr/src/etc/locale.alias`;
e [ $# -gt 0 ] ;  do  rm -rf "$1";  ln -s "$2" "$1";  shift; shift;  done
cd /usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* .
cd /usr/share/nls;  set - `grep "^[a-zA-Z]" /usr/src/etc/nls.alias`;  while
[ $#
 -gt 0 ] ;  do  rm -rf "$1";  ln -s "$2" "$1";  shift; shift;  done

>>> Installing everything..
cd /usr/src; make -f Makefile.inc1 install
===> share/info
===> include
creating osreldate.h from
setvar PARAMFILE /usr/src/include/../sys/sys/param.h;  .
/conf/;                        echo "$COPYRIGHT" > osreldate.h;
                 echo "#ifdef _KERNEL" >> osreldate.h;
echo '#
error "osreldate.h must not be used in the kernel, use sys/param.h"' >>
e.h;  echo "#else" >> osreldate.h;                               echo
\#'undef _
_FreeBSD_version' >> osreldate.h;        echo \#'define __FreeBSD_version'
ATE >> osreldate.h;  echo "#endif" >> osreldate.h
touch: not found
*** Error code 127

Stop in /usr/src/include.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

And here were my kernel config file, make.conf, and dmesg message :

------ [modified LINT] --------------------------------------------------
machine         i386

ident           ANGEL

maxusers        64

makeoptions     CONF_CFLAGS=-fno-builtin  #Don't allow use of memcmp, etc.

options         MAXDSIZ="(512*1024*1024)"
options         MAXSSIZ="(256*1024*1024)"
options         DFLDSIZ="(256*1024*1024)"

cpu             I686_CPU                # aka Pentium Pro(tm)

options         CPU_ATHLON_SSE_HACK
options         CPU_ENABLE_SSE

options         COMPAT_43

options         SYSVSHM         # include support for shared memory

options         SYSVSEM         # include support for semaphores

options         SYSVMSG         # include support for message queues

options         UCONSOLE

options         USERCONFIG              #boot -c editor

options         INET                    #Internet communications protocols
options         INET6                   #IPv6 communications protocols
options         IPSEC                   #IP security
options         IPSEC_ESP               #IP security (crypto; define w/

pseudo-device   ether                   #Generic Ethernet
pseudo-device   loop                    #Network loopback device
pseudo-device   bpf                     #Berkeley packet filter

pseudo-device   gif                     #IPv6 and IPv4 tunneling
pseudo-device   faith   1               #for IPv6 and IPv4 translation
pseudo-device   stf                     #6to4 IPv6 over IPv4 encapsulation

options         MROUTING                # Multicast routing
options         IPFIREWALL              #firewall
options         IPFIREWALL_VERBOSE      #enable logging to syslogd(8)
options         IPFIREWALL_FORWARD      #enable transparent proxy support

options         IPFIREWALL_VERBOSE_LIMIT=100    #limit verbosity
options         IPFIREWALL_DEFAULT_TO_ACCEPT    #allow everything by default
options         IPV6FIREWALL            #firewall for IPv6
options         IPV6FIREWALL_VERBOSE
options         IPV6FIREWALL_VERBOSE_LIMIT=100
options         IPDIVERT                #divert sockets

options         RANDOM_IP_ID

options                ACCEPT_FILTER_DATA
options                ACCEPT_FILTER_HTTP

options         ICMP_BANDLIM

options         DEVICE_POLLING

options         FFS                     #Fast filesystem
options         NFS                     #Network File System

options         CD9660                  #ISO 9660 filesystem
options         CD9660_ROOT             #CD-ROM usable as root device
options         FFS_ROOT                #FFS usable as root device

options         NFS_ROOT                #NFS usable as root device

options         SOFTUPDATES

options         QUOTA                   #enable disk quotas

options         P1003_1B
options         _KPOSIX_VERSION=199309L

options         HZ=1000

pseudo-device   pty             #Pseudo ttys
pseudo-device   speaker         #Play IBM BASIC-style noises out your
pseudo-device   gzip            #Exec gzipped a.out's
pseudo-device   vn              #Vnode driver (turns a file into a device)
pseudo-device   md              #Memory/malloc disk
pseudo-device   snp             #Snoop device - to look at pty/vty/etc..

device          isa

device          atkbdc0 at isa? port IO_KBD

device          atkbd0  at atkbdc? irq 1

device          psm0    at atkbdc? irq 12

device          vga0    at isa?

options         VESA

pseudo-device   splash

device          sc0     at isa?
options         MAXCONS=16              # number of virtual consoles
options         SC_DISABLE_REBOOT       # disable reboot key sequence
options         SC_HISTORY_SIZE=5000    # number of history buffer lines

device          npx0    at nexus? port IO_NPX flags 0x0 irq 13

device          ata
device          atadisk         # ATA disk drives
device          atapicd         # ATAPI CDROM drives
                                # needs CAM to be present (scbus & pass)
options         ATA_STATIC_ID

device          wdc0    at isa? port IO_WD1 irq 14

device          wcd

device          fdc0    at isa? port IO_FD1 irq 6 drq 2

device          fd0     at fdc0 drive 0

device          sio0    at isa? port IO_COM1 flags 0x10 irq 4
device          sio1    at isa? port IO_COM2 irq 3

device          pci

device          agp

device          miibus

device          fxp             # Intel EtherExpress PRO/100B (82557, 82558)

device          ppc0    at isa? irq 7
device          ppbus
device          lpt
device          plip

device          ppi

options         NMBCLUSTERS=8192

device          uhci
device          usb

device          mgadrm

options         COMPAT_LINUX

-------------[ make.conf ]-------------------------------------------------
CFLAGS= -O -pipe
BDECFLAGS=      -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \
                -Wcast-qual -Wchar-subscripts -Winline \
                -Wmissing-prototypes -Wnested-externs -Wpointer-arith \
                -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strin

[SUP related message deleted]

dmesg ] ----------------------------------------------------------
Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 4.8-RELEASE #0: Thu Apr  3 10:53:38 GMT 2003
    root at
Timecounter "i8254"  frequency 1193182 Hz
CPU: AMD Athlon(tm) XP 2000+ (1667.40-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x681  Stepping = 1

  AMD Features=0xc0400000<AMIE,DSP,3DNow!>
real memory  = 536805376 (524224K bytes)
avail memory = 517066752 (504948K bytes)
Preloaded elf kernel "kernel.old" at 0xc051d000.
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 8 entries at 0xc00fdef0
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
agp0: <VIA Generic host to PCI bridge> mem 0xc0000000-0xcfffffff at device
0.0 o
n pci0
pcib1: <PCI to PCI bridge (vendor=1106 device=b099)> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <Matrox MGA G200 AGP graphics accelerator> at 0.0 irq 11
fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0xc000-0xc03f mem
ffff,0xd5100000-0xd5100fff irq 5 at device 11.0 on pci0
fxp0: Ethernet address 00:d0:b7:09:09:8e
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: <PCI to ISA bridge (vendor=1106 device=3147)> at device 17.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 8233 ATA133 controller> port 0xc400-0xc40f at device 17.1 on
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <VIA 83C572 USB controller> port 0xc800-0xc81f irq 5 at device 17.2
on pc
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xcc00-0xcc1f irq 5 at device 17.3
on pc
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
atapci1: <HighPoint HPT372 ATA133 controller> port
xd800-0xd807,0xd400-0xd403,0xd000-0xd007 irq 10 at device 19.0 on pci0
ata2: at 0xd000 on atapci1
ata3: at 0xd800 on atapci1
orm0: <Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xcffff,0xd0000-0xd0fff
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ad0: DMA limited to UDMA33, non-ATA66 cable or device
ad0: 38166MB <ST340014A> [77545/16/63] at ata0-master UDMA33
acd0: DVD-ROM <DVD-ROM DDU1621> at ata1-slave PIO4
Mounting root from ufs:/dev/ad0s1a

I just wonder whether or not my memory have some problem ? But
when I build world and kernel, everything is OK.  :-(

BTW, here is my upgrading procedure :

o) cd /usr/src ; make update (cvsup)
o) time make buildworld  (only 493.500s)
o) time make buildkernel KERNCONF=LINT (only 33.306s)
o) make installkernel KERNCONF=LINT
o) shutdown -r now
o) boot -s
    >) fsck -p
    >) mount -u /
    >) mount -a -t ufs
    >) swapon -a
    >) adjkerntz -i
o) cd /usr/src ; make installworld

then fails.   :-(
It shows my system can not find "touch" utility.

In my another Pentium-233 MMX platform, all upgrading steps
were smooth and successful.

Any comments and suggestions will be appreciated.
And sorry for my poor English.

Best Regards,
Morton Lin.

More information about the freebsd-stable mailing list