From owner-freebsd-questions@FreeBSD.ORG Sat Jan 5 13:45:23 2008 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 7BF1716A46C for ; Sat, 5 Jan 2008 13:45:23 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id 503D613C465 for ; Sat, 5 Jan 2008 13:45:23 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from bb.ipt.ru ([194.62.233.89]) by services.ipt.ru with esmtp (Exim 4.54 (FreeBSD)) id 1JB9Kz-000747-EC; Sat, 05 Jan 2008 16:45:21 +0300 To: Unga References: <335191.37524.qm@web57003.mail.re3.yahoo.com> From: Boris Samorodov Date: Sat, 05 Jan 2008 16:43:47 +0300 In-Reply-To: <335191.37524.qm@web57003.mail.re3.yahoo.com> (Unga's message of "Sat\, 5 Jan 2008 05\:25\:29 -0800 \(PST\)") Message-ID: <08004060@bb.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: 7.0-PRERELEASE installworld fails 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, 05 Jan 2008 13:45:23 -0000 On Sat, 5 Jan 2008 05:25:29 -0800 (PST) Unga wrote: > --- Boris Samorodov wrote: > > > I'm making a kernel upgrade on 7.0-BETA4 with the > > > today's sources downloaded by cvsup. > > > > Upgrade to what? (RELENG_7, RELENG_7_0, HEAD, etc.) > RELENG_7 > > What architecture do you use (i386, amd64, etc.) > i386 > > Did you use startdard make.conf (i.e. empty)? > Yep, startdard make.conf. > cat /etc/make.conf > # added by use.perl 2007-12-23 12:18:54 > PERL_VER=5.8.8 > PERL_VERSION=5.8.8 > > Did you use GENERIC kernel? > Yep, its GENERIC. Hm, all this is just plain generic... > > > make installworld fails with following error: ...but none should be compiled at installworld stage: > > > cc -O2 -fno-strict-aliasing -pipe > > > -I/usr/src/lib/csu/i386-elf/../common -I/usr > > > /src/lib/csu/i386-elf/../../libc/include > > > -Wsystem-headers -Wall -Wno-format-y2k > > > -W -Wno-unused-parameter -Wstrict-prototypes > > > -Wmissing-prototypes -Wpointer-arit > > > h -Wreturn-type -Wcast-qual -Wwrite-strings > > -Wswitch > > > -Wshadow -Wcast-align -Wunu > > > sed-parameter -Wchar-subscripts -Winline > > > -Wnested-externs -Wredundant-decls -Wno > > > -pointer-sign -c /usr/src/lib/csu/i386-elf/crt1.c > > > /usr/src/lib/csu/i386-elf/crt1.c:33:20: error: > > > stdlib.h: No such file or directory > > > In file included from > > > /usr/src/lib/csu/i386-elf/crt1.c:35: > > > > > > /usr/src/lib/csu/i386-elf/../../libc/include/libc_private.h:178:24: > > > error: sys/_types.h: No such file or directory > > > > This may be caused by incorrect system clocks. > > > My CMOS and date matches, date shows the time-zone Did you by any chance change time while source updating or world building? > correctly, therefore, these are the steps I did after > reboot to singe-user: > fsck -p > mount -u / > mount -a > swapon -a > /usr/local/bin/bash > cd /usr/src/ > adjkerntz -i > /usr/src/usr.sbin/mergemaster/mergemaster.sh -p > env -i make installworld >& installworld.log This may be an overkill but should do the job: # rm -r /usr/src /usr/obj # cd /usr/src # make buildworld # make kernel # mergemaster -p # make installworld # mergemaster -i WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve