make installworld DESTDIR=/mnt fails
Matthias Apitz
guru at unixarea.de
Mon Mar 30 00:45:07 PDT 2009
Hello,
I have created a boot-able USB key with -CURRENT from CVS following
this recipe:
# mkdir -p /usr/src/myHEAD/obj
# cd /usr/src/myHEAD
# cvs checkout src
# setenv MAKEOBJDIRPREFIX /usr/src/myHEAD/obj
# cd /usr/src/myHEAD/src
# make buildworld
# make buildkernel KERNCONF=GENERIC
(/dev/da0 is an empty USB key)
# fdisk -I da0
# fdisk -B da0
# bsdlabel -w da0s1 auto
# bsdlabel -B da0s1
# newfs /dev/da0s1a
# mount /dev/da0s1a /mnt
# make installworld DESTDIR=/mnt
# make installkernel DESTDIR=/mnt KERNCONF=GENERIC INSTALL_NODEBUG=t
# make distrib-dirs DESTDIR=/mnt
# make distribution DESTDIR=/mnt
# echo /dev/da0s1a / ufs rw 1 1 > /mnt/etc/fstab
# echo ifconfig_DEFAULT=DHCP > /mnt/etc/rc.conf
# echo hostname=demo >> /mnt/etc/rc.conf
the resulting USB key boots and works fine;
I've enriched this USB key with the actual source tree and the compiled
objects:
# cd /usr/src/
# tar -cf - myHEAD | ( cd /mnt ; tar -xpf - )
now I wanted to install based on this booted CURRENT another
PC, its empty disk is mounted below /mnt; the installation fails
as shown below;
what is the reason for this?
and; if my procedure is wrong, what would be the best way to
install CURRENT into a small EeePC having only SSD and being to
slow for compiling full kernel and world?
Thx
matthias
# setenv MAKEOBJDIRPREFIX /myHEAD/obj
# cd /myHEAD/src
# make installworld DESTDIR=/mnt
mkdir -p /tmp/install.Hwzry4NV
progs=$(for prog in [ awk cap_mkdb cat chflags chmod chown date echo egrep find grep install-info ln lockf make mkdir mtree mv pwd_mkdb rm sed sh sysctl test true uname wc zic; do if progpath=`which $prog`; then echo $progpath; else echo "Required tool $prog not found in PATH." >&2; exit 1; fi; done); libs=$(ldd -f "%o %p\n" -f "%o %p\n" $progs 2>/dev/null | sort -u | while read line; do set -- $line; if [ "$2 $3" != "not found" ]; then echo $2; else echo "Required library $1 not found." >&2; exit 1; fi; done); cp $libs $progs /tmp/install.Hwzry4NV
cp -R ${PATH_LOCALE:-"/usr/share/locale"} /tmp/install.Hwzry4NV/locale
cd /myHEAD/src; MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=i386 MACHINE=i386 CPUTYPE= GROFF_BIN_PATH=/usr/obj/myHEAD/src/tmp/legacy/usr/bin GROFF_FONT_PATH=/usr/obj/myHEAD/src/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/myHEAD/src/tmp/legacy/usr/share/tmac PATH=/usr/obj/myHEAD/src/tmp/legacy/usr/sbin:/usr/obj/myHEAD/src/tmp/legacy/usr/bin:/usr/obj/myHEAD/src/tmp/legacy/usr/games:/usr/obj/myHEAD/src/tmp/usr/sbin:/usr/obj/myHEAD/src/tmp/usr/bin:/usr/obj/myHEAD/src/tmp/usr/games:/tmp/install.Hwzry4NV LD_LIBRARY_PATH=/tmp/install.Hwzry4NV PATH_LOCALE=/tmp/install.Hwzry4NV/locale make -f Makefile.inc1 __MAKE_SHELL=/tmp/install.Hwzry4NV/sh reinstall; MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=i386 MACHINE=i386 CPUTYPE= GROFF_BIN_PATH=/usr/obj/myHEAD/src/tmp/legacy/usr/bin GROFF_FONT_PATH=/usr/obj/myHEAD/src/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/myHEAD/src/tmp/legacy/usr/share/tmac PATH=/usr/obj/myHEAD/src/tmp/legacy/usr/sbin:/usr/obj/myHEAD/src/tmp/legacy/usr/bin:/usr/obj/myHEAD/src/tmp/legacy/usr/games:/usr/obj/myHEAD/src/tmp/usr/sbin:/usr/obj/myHEAD/src/tmp/usr/bin:/usr/obj/myHEAD/src/tmp/usr/games:/tmp/install.Hwzry4NV LD_LIBRARY_PATH=/tmp/install.Hwzry4NV PATH_LOCALE=/tmp/install.Hwzry4NV/locale rm -rf /tmp/install.Hwzry4NV
--------------------------------------------------------------
>>> Making hierarchy
--------------------------------------------------------------
cd /myHEAD/src; make -f Makefile.inc1 hierarchy
cd /myHEAD/src/etc; make distrib-dirs
mtree -eU -f /myHEAD/src/etc/mtree/BSD.root.dist -p /mnt/
mtree -eU -f /myHEAD/src/etc/mtree/BSD.var.dist -p /mnt/var
mtree -eU -f /myHEAD/src/etc/mtree/BSD.usr.dist -p /mnt/usr
mtree -eU -f /myHEAD/src/etc/mtree/BSD.include.dist -p /mnt/usr/include
mtree -deU -f /myHEAD/src/etc/mtree/BIND.chroot.dist -p /mnt/var/named
mtree -deU -f /myHEAD/src/etc/mtree/BSD.sendmail.dist -p /mnt/
cd /mnt/; rm -f /mnt/sys; ln -s usr/src/sys sys
cd /mnt/usr/share/man/en.ISO8859-1; ln -sf ../man* .
cd /mnt/usr/share/man/en.UTF-8; ln -sf ../man* .
cd /mnt/usr/share/man; set - `grep "^[a-zA-Z]" /myHEAD/src/etc/man.alias`; while [ $# -gt 0 ] ; do rm -rf "$1"; ln -s "$2" "$1"; shift; shift; done
cd /mnt/usr/share/openssl/man; set - `grep "^[a-zA-Z]" /myHEAD/src/etc/man.alias`; while [ $# -gt 0 ] ; do rm -rf "$1"; ln -s "$2" "$1"; shift; shift; done
cd /mnt/usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* .
cd /mnt/usr/share/nls; set - `grep "^[a-zA-Z]" /myHEAD/src/etc/nls.alias`; while [ $# -gt 0 ] ; do rm -rf "$1"; ln -s "$2" "$1"; shift; shift; done
--------------------------------------------------------------
>>> Installing everything
--------------------------------------------------------------
cd /myHEAD/src; make -f Makefile.inc1 install
===> share/info (install)
install -o root -g wheel -m 444 dir-tmpl /mnt/usr/share/info/dir
install:No such file or directory
*** Error code 1
there is no /mnt/usr/share/info/dir:
# ls -l /mnt/usr/share/info
total 0
I have created it:
# mkdir /mnt/usr/share/info/dir
but now compilation fails
# make installworld DESTDIR=/mnt
mkdir -p /tmp/install.TXKoAHr9
progs=$(for prog in [ awk cap_mkdb cat chflags chmod chown date echo egrep find grep install-info ln lockf make mkdir mtree mv pwd_mkdb rm sed sh sysctl test true uname wc zic; do if progpath=`which $prog`; then echo $progpath; else echo "Required tool $prog not found in PATH." >&2; exit 1; fi; done); libs=$(ldd -f "%o %p\n" -f "%o %p\n" $progs 2>/dev/null | sort -u | while read line; do set -- $line; if [ "$2 $3" != "not found" ]; then echo $2; else echo "Required library $1 not found." >&2; exit 1; fi; done); cp $libs $progs /tmp/install.TXKoAHr9
cp -R ${PATH_LOCALE:-"/usr/share/locale"} /tmp/install.TXKoAHr9/locale
cp -R ${PATH_LOCALE:-"/usr/share/locale"} /tmp/install.TXKoAHr9/locale
cd /myHEAD/src; MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=i386 MACHINE=i386 CPUTYPE= GROFF_BIN_PATH=/usr/obj/myHEAD/src/tmp/legacy/usr/bin GROFF_FONT_PATH=/usr/obj/myHEAD/src/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/myHEAD/src/tmp/legacy/usr/share/tmac PATH=/usr/obj/myHEAD/src/tmp/legacy/usr/sbin:/usr/obj/myHEAD/src/tmp/legacy/usr/bin:/usr/obj/myHEAD/src/tmp/legacy/usr/games:/usr/obj/myHEAD/src/tmp/usr/sbin:/usr/obj/myHEAD/src/tmp/usr/bin:/usr/obj/myHEAD/src/tmp/usr/games:/tmp/install.TXKoAHr9 LD_LIBRARY_PATH=/tmp/install.TXKoAHr9 PATH_LOCALE=/tmp/install.TXKoAHr9/locale make -f Makefile.inc1 __MAKE_SHELL=/tmp/install.TXKoAHr9/sh reinstall; MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=i386 MACHINE=i386 CPUTYPE= GROFF_BIN_PATH=/usr/obj/myHEAD/src/tmp/legacy/usr/bin GROFF_FONT_PATH=/usr/obj/myHEAD/src/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/myHEAD/src/tmp/legacy/usr/share/tmac PATH=/usr/obj/myHEAD/src/tmp/legacy/usr/sbin:/usr/obj/myHEAD/src/tmp/legacy/usr/bin:/usr/obj/myHEAD/src/tmp/legacy/usr/games:/usr/obj/myHEAD/src/tmp/usr/sbin:/usr/obj/myHEAD/src/tmp/usr/bin:/usr/obj/myHEAD/src/tmp/usr/games:/tmp/install.TXKoAHr9 LD_LIBRARY_PATH=/tmp/install.TXKoAHr9 PATH_LOCALE=/tmp/install.TXKoAHr9/locale rm -rf /tmp/install.TXKoAHr9
--------------------------------------------------------------
>>> Making hierarchy
--------------------------------------------------------------
cd /myHEAD/src; make -f Makefile.inc1 hierarchy
cd /myHEAD/src/etc; make distrib-dirs
mtree -eU -f /myHEAD/src/etc/mtree/BSD.root.dist -p /mnt/
mtree -eU -f /myHEAD/src/etc/mtree/BSD.var.dist -p /mnt/var
mtree -eU -f /myHEAD/src/etc/mtree/BSD.usr.dist -p /mnt/usr
mtree -eU -f /myHEAD/src/etc/mtree/BSD.include.dist -p /mnt/usr/include
mtree -deU -f /myHEAD/src/etc/mtree/BIND.chroot.dist -p /mnt/var/named
mtree -deU -f /myHEAD/src/etc/mtree/BSD.sendmail.dist -p /mnt/
cd /mnt/; rm -f /mnt/sys; ln -s usr/src/sys sys
cd /mnt/usr/share/man/en.ISO8859-1; ln -sf ../man* .
cd /mnt/usr/share/man/en.UTF-8; ln -sf ../man* .
cd /mnt/usr/share/man; set - `grep "^[a-zA-Z]" /myHEAD/src/etc/man.alias`; while [ $# -gt 0 ] ; do rm -rf "$1"; ln -s "$2" "$1"; shift; shift; done
cd /mnt/usr/share/openssl/man; set - `grep "^[a-zA-Z]" /myHEAD/src/etc/man.alias`; while [ $# -gt 0 ] ; do rm -rf "$1"; ln -s "$2" "$1"; shift; shift; done
cd /mnt/usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* .
cd /mnt/usr/share/nls; set - `grep "^[a-zA-Z]" /myHEAD/src/etc/nls.alias`; while [ $# -gt 0 ] ; do rm -rf "$1"; ln -s "$2" "$1"; shift; shift; done
--------------------------------------------------------------
>>> Installing everything
--------------------------------------------------------------
cd /myHEAD/src; make -f Makefile.inc1 install
===> share/info (install)
===> lib (install)
===> lib/csu/i386-elf (install)
cc -O2 -pipe -I/myHEAD/src/lib/csu/i386-elf/../common -I/myHEAD/src/lib/csu/i386-elf/../../libc/include -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c crt1.c
cc: not found
*** Error code 127
the 'cc' is there:
# cc
cc: No input files specified
--
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <matthias.apitz at oclc.org> - w http://www.oclc.org/ http://www.UnixArea.de/
More information about the freebsd-current
mailing list