From owner-freebsd-questions@FreeBSD.ORG Sat Oct 24 12:34:00 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D154106566C for ; Sat, 24 Oct 2009 12:34:00 +0000 (UTC) (envelope-from bcook@poughkeepsieschools.org) Received: from a.outbound.bsdwebsolutions.com (a.outbound.bsdwebsolutions.com [64.72.68.2]) by mx1.freebsd.org (Postfix) with ESMTP id C7EC68FC26 for ; Sat, 24 Oct 2009 12:33:59 +0000 (UTC) Received: from mail.bsdwebsolutions.com ([64.72.68.15]) by a.outbound.bsdwebsolutions.com with esmtps (TLSv1:AES256-SHA:256) (BSD Web Solutions, Inc.) (envelope-from ) id 1N1fol-0005rl-At for freebsd-questions@freebsd.org; Sat, 24 Oct 2009 08:33:59 -0400 Received: from [207.241.248.11] (port=55331 helo=mail.poughkeepsieschools.org) by mail.bsdwebsolutions.com with esmtps (TLSv1:AES256-SHA:256) (BSD WebSolutions, Inc.) (envelope-from ) id 1N1fol-000LQG-7f for freebsd-questions@freebsd.org ; Sat, 24 Oct 2009 08:33:59 -0400 Received: from [96.233.198.34] (port=3753 helo=[192.168.1.2]) by mail.poughkeepsieschools.org with esmtpsa (TLSv1:AES256-SHA:256) (BSD WebSolutions, Inc.) (envelope-from ) id 1N1fok-0006fs-S8 for freebsd-questions@freebsd.org (authenticated as bcook@poughkeepsieschools.org); Sat, 24 Oct 2009 08:33:59 -0400 Message-ID: <4AE2F431.7070504@poughkeepsieschools.org> Date: Sat, 24 Oct 2009 08:33:53 -0400 From: "B. Cook" User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4AE2E84F.6060703@poughkeepsieschools.org> In-Reply-To: <4AE2E84F.6060703@poughkeepsieschools.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: 207.241.248.11 Subject: Re: most bizarre libc.so.7 problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Oct 2009 12:34:00 -0000 B. Cook wrote, On 10/24/2009 7:43 AM: > I have a machine at home that I build releng_7 on from time to time; > about once a month or so. > > yesterday I did that, and this AM I have libc.so.7 errors all over the > place. > > turns out libc.so.7 was not in /lib > > I had to boot into /rescue/sh and get my zfs stuff mounted and do a > quick cp from /usr/obj/usr/src/lib/libc/libc.so.7 to /lib/libc.so.7 > > then everything was fine.. > > do I'm doing a buildworld again while I'm here and see if something > failed on my part.. > > I've been doing this for a while and never had this problem.. > > below is what I do.. > > cat -n /root/build-world > 1 #!/bin/sh > 2 cd /usr/src > 3 make update > 4 #chflags -R noschg /usr/obj/* > 5 rm -rf /usr/obj/* > 6 mkdir /var/log/build > 7 make -j4 buildworld 2>&1 | tee /var/log/build/bworld-`date > "+%Y%m%d-%H%M"`.log && \ > 8 make -j4 buildkernel 2>&1 | tee /var/log/build/bkernel-`date > "+%Y%m%d-%H%M"`.log && \ > 9 make installkernel 2>&1 | tee /var/log/build/ikernel-`date > "+%Y%m%d-%H%M"`.log && \ > 10 make installworld 2>&1 | tee /var/log/build/iworld-`date > "+%Y%m%d-%H%M"`.log && \ > 11 date | mail -s `hostname -s` name@domain.com && > 12 sync && \ > 13 reboot > > Not sure if something changed, or if something happened.. > > thanks in advance > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" So installworld is what is failing.. below are the relevant portions of the log that shows whats going on.. here is the output of the iworld log.. cat -n iworld-20091023-0710.log 1 mkdir -p /tmp/install.ljWDSoNZ 2 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 cp `which $prog` /tmp/install.ljWDSoNZ; done 3 cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=amd64 MACHINE=amd64 CPUTYPE= GROFF_BIN_PATH=/usr/obj/usr/src/tmp/legacy/usr/bin GROFF_FONT_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/tmac PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/tmp/install.ljWDSoNZ make -f Makefile.inc1 reinstall 4 -------------------------------------------------------------- 5 >>> Making hierarchy 6 -------------------------------------------------------------- 7 cd /usr/src; make -f Makefile.inc1 hierarchy 8 cd /usr/src/etc; make distrib-dirs 9 mtree -eU -f /usr/src/etc/mtree/BSD.root.dist -p / 10 boot changed 11 type expected dir found link 12 ./boot/defaults missing (directory not created: File exists) 13 ./boot/firmware missing (directory not created: File exists) 14 ./boot/kernel missing (directory not created: File exists) 15 ./boot/modules missing (directory not created: File exists) 16 ./boot/zfs missing (directory not created: File exists) 17 mtree -eU -f /usr/src/etc/mtree/BSD.var.dist -p /var 18 empty changed 19 flags expected "schg" found "none" not modified: Invalid argument 20 mtree -eU -f /usr/src/etc/mtree/BSD.usr.dist -p /usr 21 ./share/locale/ca_AD.ISO8859-1 missing (created) 22 ./share/locale/ca_FR.ISO8859-1 missing (created) 23 ./share/locale/ca_IT.ISO8859-1 missing (created) 24 ./share/locale/ca_AD.ISO8859-15 missing (created) 25 ./share/locale/ca_FR.ISO8859-15 missing (created) 26 ./share/locale/ca_IT.ISO8859-15 missing (created) 27 ./share/locale/ca_AD.UTF-8 missing (created) 28 ./share/locale/ca_FR.UTF-8 missing (created) 29 ./share/locale/ca_IT.UTF-8 missing (created) 30 mtree -eU -f /usr/src/etc/mtree/BSD.include.dist -p /usr/include 31 mtree -deU -f /usr/src/etc/mtree/BIND.chroot.dist -p /var/named 32 mtree -deU -f /usr/src/etc/mtree/BSD.sendmail.dist -p / 33 cd /; rm -f /sys; ln -s usr/src/sys sys 34 cd /usr/share/man/en.ISO8859-1; ln -sf ../man* . 35 cd /usr/share/man/en.UTF-8; ln -sf ../man* . 36 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 37 cd /usr/share/openssl/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 38 cd /usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* . 39 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 40 41 -------------------------------------------------------------- 42 >>> Installing everything 43 -------------------------------------------------------------- 44 cd /usr/src; make -f Makefile.inc1 install 45 ===> share/info (install) 46 ===> lib (install) 47 ===> lib/csu/amd64 (install) 48 install -o root -g wheel -m 444 crt1.o crti.o crtn.o gcrt1.o /usr/lib 49 ===> lib/libc (install) 50 install -C -o root -g wheel -m 444 libc.a /usr/lib 51 install -C -o root -g wheel -m 444 libc_p.a /usr/lib 52 install -s -o root -g wheel -m 444 -fschg -S libc.so.7 /lib 53 install: /lib/libc.so.7: chflags: Invalid argument 54 *** Error code 71 55 56 Stop in /usr/src/lib/libc. 57 *** Error code 1 58 59 Stop in /usr/src/lib. 60 *** Error code 1 61 62 Stop in /usr/src. 63 *** Error code 1 64 65 Stop in /usr/src. 66 *** Error code 1 67 68 Stop in /usr/src. 69 *** Error code 1 70 71 Stop in /usr/src. my last build was in June .. -rw-r--r-- 1 root wheel 1102019 Jun 3 12:01 iworld-20090603-1159.log -rw-r--r-- 1 root wheel 3667 Oct 23 07:10 iworld-20091023-0710.log Looks like in June, it was just not a dramatic fail.. cat -n iworld-20090603-1159.log | less 1 mkdir -p /tmp/install.BOVU5mkk 2 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 cp `which $prog` /tmp/install.BOVU5mkk; done 3 cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=amd64 MACHINE=amd64 CPUTYPE= GROFF_BIN_PATH=/usr/obj/usr/src/tmp/legacy/usr/bin GROFF_FONT_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/tmac PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/tmp/install.BOVU5mkk make -f Makefile.inc1 reinstall 4 -------------------------------------------------------------- 5 >>> Making hierarchy 6 -------------------------------------------------------------- 7 cd /usr/src; make -f Makefile.inc1 hierarchy 8 cd /usr/src/etc; make distrib-dirs 9 mtree -eU -f /usr/src/etc/mtree/BSD.root.dist -p / 10 boot changed 11 type expected dir found link 12 ./boot/defaults missing (directory not created: File exists) 13 ./boot/firmware missing (directory not created: File exists) 14 ./boot/kernel missing (directory not created: File exists) 15 ./boot/modules missing (directory not created: File exists) 16 ./boot/zfs missing (directory not created: File exists) 17 mtree -eU -f /usr/src/etc/mtree/BSD.var.dist -p /var 18 empty changed 19 flags expected "schg" found "none" not modified: Operation not supported 20 mtree -eU -f /usr/src/etc/mtree/BSD.usr.dist -p /usr 21 ./share/man/en.UTF-8 missing (created) 22 ./share/man/en.UTF-8/cat1 missing (created) 23 ./share/man/en.UTF-8/cat1aout missing (created) 24 ./share/man/en.UTF-8/cat2 missing (created) 25 ./share/man/en.UTF-8/cat3 missing (created) 26 ./share/man/en.UTF-8/cat4 missing (created) 27 ./share/man/en.UTF-8/cat4/amd64 missing (created) 28 ./share/man/en.UTF-8/cat4/arm missing (created) 29 ./share/man/en.UTF-8/cat4/i386 missing (created) 30 ./share/man/en.UTF-8/cat4/powerpc missing (created) 31 ./share/man/en.UTF-8/cat4/sparc64 missing (created) 32 ./share/man/en.UTF-8/cat5 missing (created) 33 ./share/man/en.UTF-8/cat6 missing (created) 34 ./share/man/en.UTF-8/cat7 missing (created) 35 ./share/man/en.UTF-8/cat8 missing (created) 36 ./share/man/en.UTF-8/cat8/amd64 missing (created) 37 ./share/man/en.UTF-8/cat8/i386 missing (created) 38 ./share/man/en.UTF-8/cat8/powerpc missing (created) 39 ./share/man/en.UTF-8/cat8/sparc64 missing (created) 40 ./share/man/en.UTF-8/cat9 missing (created) 41 mtree -eU -f /usr/src/etc/mtree/BSD.include.dist -p /usr/include 42 mtree -deU -f /usr/src/etc/mtree/BIND.chroot.dist -p /var/named 43 mtree -deU -f /usr/src/etc/mtree/BSD.sendmail.dist -p / 44 cd /; rm -f /sys; ln -s usr/src/sys sys 45 cd /usr/share/man/en.ISO8859-1; ln -sf ../man* . 46 cd /usr/share/man/en.UTF-8; ln -sf ../man* . 47 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 48 cd /usr/share/openssl/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 49 cd /usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* . 50 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 51 52 -------------------------------------------------------------- 53 >>> Installing everything 54 -------------------------------------------------------------- 55 cd /usr/src; make -f Makefile.inc1 install 56 ===> share/info (install) 57 ===> lib (install) 58 ===> lib/csu/amd64 (install) 59 install -o root -g wheel -m 444 crt1.o crti.o crtn.o gcrt1.o /usr/lib 60 ===> lib/libc (install) 61 install -C -o root -g wheel -m 444 libc.a /usr/lib 62 install -C -o root -g wheel -m 444 libc_p.a /usr/lib 63 install -s -o root -g wheel -m 444 -fschg -S libc.so.7 /lib 64 install: /lib/libc.so.7: chflags: Operation not supported 65 ln -fs /lib/libc.so.7 /usr/lib/libc.so 66 install -o root -g wheel -m 444 libc_pic.a /usr/lib 67 install -o root -g wheel -m 444 btree.3.gz /usr/share/man/man3 68 install -o root -g wheel -m 444 dbm.3.gz /usr/share/man/man3 69 install -o root -g wheel -m 444 dbopen.3.gz /usr/share/man/man3 70 install -o root -g wheel -m 444 hash.3.gz /usr/share/man/man3 ... When I first setup zfs I follwed this: http://www.ish.com.au/solutions/articles/freebsdzfs which has always seemed to follow what is on the freebsd wiki (zfs) If there is something that I missed or that I am missing; please let me know thank you for your time in advance