From owner-freebsd-current@FreeBSD.ORG Fri Feb 7 14:27:10 2014 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 68304C84; Fri, 7 Feb 2014 14:27:10 +0000 (UTC) Received: from caravan.chchile.org (caravan.chchile.org [178.32.125.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 28E301281; Fri, 7 Feb 2014 14:27:09 +0000 (UTC) Received: by caravan.chchile.org (Postfix, from userid 1000) id 7EFE1102659; Fri, 7 Feb 2014 14:17:14 +0000 (UTC) Date: Fri, 7 Feb 2014 15:17:14 +0100 From: Jeremie Le Hen To: Gleb Smirnoff , freebsd-current@FreeBSD.org Subject: -CURRENT on VBox is broken (was: Re: buildworld fails with "Zero byte read from file, skipping rest) of line" Message-ID: <20140207141714.GA94833@caravan.chchile.org> Mail-Followup-To: Gleb Smirnoff , freebsd-current@FreeBSD.org References: <20140114072620.GB83762@caravan.chchile.org> <20140114085818.GQ8472@FreeBSD.org> <20140115074053.GD83762@caravan.chchile.org> <20140115084035.GC26504@glebius.int.ru> <20140115113653.GE83762@caravan.chchile.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140115113653.GE83762@caravan.chchile.org> User-Agent: Mutt/1.5.22 (2013-10-16) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Feb 2014 14:27:10 -0000 On Wed, Jan 15, 2014 at 12:36:53PM +0100, Jeremie Le Hen wrote: > On Wed, Jan 15, 2014 at 12:40:35PM +0400, Gleb Smirnoff wrote: > > J> > > > J> > Can you try to reproduce this with unmapped I/O turned off in boot loader? > > J> > > J> I've never heard of that. Can you please point me to the right > > J> code/doc? > > > > In loader prompt: > > > > OK set vfs.unmapped_buf_allowed=0 > > OK boot > > No, unfortunately I still have the same problem without unmapped bufs. Ok, I'm back to try to try building world on VirtualBox with a recent -CURRENT. So, on a new workstation, I've installed a new VirtualBox, downloaded the latest i386 snapshot and installed it: FreeBSD-11.0-CURRENT-i386-20140203-r261419-disc1.iso Things started to be shady when I tried to build and install ports-mgmt/pkg: % install -s -o root -g wheel -m 555 pkg-static /usr/ports/ports-mgmt/pkg/work/stage/usr/local/sbin/pkg-static % strip: /usr/ports/ports-mgmt/pkg/work/stage/usr/local/sbin/pkg-static: File format not recognized So I tried to disallow VFS unmapped bufs as you advised me and this seems to have solved the problem (but maybe by chance, see below). Now I'm still running with vfs.unmapped_buf_allowed=0, I installed all the ports I need for basic development. I fetched freebsd-src from GitHub and tried to build world... And now it's started to be very wacky: it failed, multiple times, but never at the same place (I removed /usr/obj/* between each run). There is at least something consistent, it always fails with the same error ".../.depend: Zero byte read from file, skipping rest of line.": % [jlh@freefall ~/www/wacky_buildworld_on_vbox]$ grep -B 1 -A 5 'warning: Zero byte read from file' * % typescript.fail1.txt-TMP=_depend$$; sed -e 's/^\([^\.]*\).o[ ]*:/\1.o \1.po \1.So:/' < .depend > $TMP; mv $TMP .depend % typescript.fail1.txt:make[4]: "/usr/obj/usr/src/kerberos5/lib/libheimbase/.depend" line 3: warning: Zero byte read from file, skipping rest of line. % typescript.fail1.txt-make[4]: "/usr/obj/usr/src/kerberos5/lib/libheimbase/.depend" line 3: Need an operator % typescript.fail1.txt-make[4]: "/usr/obj/usr/src/kerberos5/lib/libheimbase/.depend" line 4: Need an operator % typescript.fail1.txt-make[4]: Fatal errors encountered -- cannot continue % typescript.fail1.txt-make[4]: stopped in /usr/src/kerberos5/lib/libheimbase % typescript.fail1.txt-*** Error code 1 % -- % typescript.fail2.txt-TMP=_depend$$; sed -e 's/^\([^\.]*\).o[ ]*:/\1.o \1.po \1.So:/' < .depend > $TMP; mv $TMP .depend % typescript.fail2.txt:make[3]: "/usr/obj/usr/src/tmp/usr/src/kerberos5/lib/libvers/.depend" line 3: warning: Zero byte read from file, skipping rest of line. % typescript.fail2.txt-make[3]: "/usr/obj/usr/src/tmp/usr/src/kerberos5/lib/libvers/.depend" line 3: Need an operator % typescript.fail2.txt-make[3]: "/usr/obj/usr/src/tmp/usr/src/kerberos5/lib/libvers/.depend" line 4: Need an operator % typescript.fail2.txt-make[3]: Fatal errors encountered -- cannot continue % typescript.fail2.txt-make[3]: stopped in /usr/src/kerberos5/lib/libvers % typescript.fail2.txt-*** Error code 1 % -- % typescript.fail3.txt-echo libroken.so.11: /usr/obj/usr/src/tmp/usr/lib/libcrypt.a >> .depend % typescript.fail3.txt:make[4]: "/usr/obj/usr/src/kerberos5/lib/libroken/.depend" line 3: warning: Zero byte read from file, skipping rest of line. % typescript.fail3.txt-make[4]: "/usr/obj/usr/src/kerberos5/lib/libroken/.depend" line 3: Need an operator % typescript.fail3.txt-make[4]: "/usr/obj/usr/src/kerberos5/lib/libroken/.depend" line 4: Unknown directive % typescript.fail3.txt-make[4]: Fatal errors encountered -- cannot continue % typescript.fail3.txt-make[4]: stopped in /usr/src/kerberos5/lib/libroken % typescript.fail3.txt-*** Error code 1 % -- % typescript.fail4.txt-echo asn1_compile: /usr/lib/libc.a /usr/obj/usr/src/tmp/usr/src/kerberos5/tools/asn1_compile/../../lib/libroken/libroken.a /usr/obj/usr/src/tmp/usr/src/kerberos5/tools/asn1_compile/../../lib/libvers/libvers.a /usr/obj/usr/src/tmp/legacy/usr/lib/libegacy.a >> .depend % typescript.fail4.txt:make[3]: "/usr/obj/usr/src/tmp/usr/src/kerberos5/tools/asn1_compile/.depend" line 3: warning: Zero byte read from file, skipping rest of line. % typescript.fail4.txt-make[3]: "/usr/obj/usr/src/tmp/usr/src/kerberos5/tools/asn1_compile/.depend" line 3: Need an operator % typescript.fail4.txt-make[3]: "/usr/obj/usr/src/tmp/usr/src/kerberos5/tools/asn1_compile/.depend" line 4: Need an operator % typescript.fail4.txt-make[3]: Fatal errors encountered -- cannot continue % typescript.fail4.txt-make[3]: stopped in /usr/src/kerberos5/tools/asn1_compile Any idea how to debug this? -- Jeremie Le Hen Scientists say the world is made up of Protons, Neutrons and Electrons. They forgot to mention Morons.