From owner-svn-src-all@FreeBSD.ORG Tue Aug 13 17:31:57 2013 Return-Path: Delivered-To: svn-src-all@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 ESMTP id 3E19117A; Tue, 13 Aug 2013 17:31:57 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F330326D4; Tue, 13 Aug 2013 17:31:56 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1V9IRn-0004Vi-N3; Tue, 13 Aug 2013 17:31:55 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id r7DHVqCC036024; Tue, 13 Aug 2013 11:31:52 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/0LEOfLUzfUA3xlo5T5qwT Subject: Re: svn commit: r254217 - head/sys/conf From: Ian Lepore To: Glen Barber In-Reply-To: <20130813171302.GQ2432@glenbarber.us> References: <201308111357.r7BDvF7H065442@svn.freebsd.org> <1376407389.3320.209.camel@revolution.hippie.lan> <20130813153222.GL2432@glenbarber.us> <1376413337.3320.224.camel@revolution.hippie.lan> <20130813171302.GQ2432@glenbarber.us> Content-Type: text/plain; charset="us-ascii" Date: Tue, 13 Aug 2013 11:31:52 -0600 Message-ID: <1376415112.3320.229.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Aug 2013 17:31:57 -0000 On Tue, 2013-08-13 at 13:13 -0400, Glen Barber wrote: > On Tue, Aug 13, 2013 at 11:02:17AM -0600, Ian Lepore wrote: > > It fails for me during buildworld (I haven't gotten to buildkernel yet). > > This is a cross-build of armv6 from i386, if that matters. > > > > It looks like the build is failing in sys/boot/fdt. > > ===> sys/boot/fdt (installincludes) > 1 error > *** Error code 2 > 1 error > *** Error code 2 > > > When I use "make -s" the build fails immediately in "building an up to > > date make" because it somehow has $DESTDIR/usr/lib/libc.a as a > > dependency for bmake/unit-tests, and clearly that isn't going to exist > > before installworld has created it (when DESTDIR is other than / which > > is always is for me). For some reason I can't even begin to figure out, > > I don't get that error with the -s left off. > > > > Odd. '-s' should suppress build output (similar to adding "@" to the > beginning of the Makefile command lines). > > > Hrm, I just noticed I get the same bmake build error at the beginning > > with and without the -s, the difference is that without -s it ignores > > the error and keeps building. Seems like a different bug. > > > > Yes, that is strange. > > > So, leaving the make -s problems aside, a regular "make buildworld" > > results in http://people.freebsd.org/~ian/make.buildworld.log (the > > failure is around line 6178). > > > > I don't know what's different between make with and without -s but > > perhaps it somehow toggles this problem. > > > > BTW, I'm seeing this problem at r254281, and did not see it at r253965. > > > > At this point, I am just ready to revert all of the changes that allow > use of svnliteversion from base to determine the svn version. In my > buildkernel, newvers.sh does correctly expand '$(realpath ${0})' to > $SYSBASE/sys/conf/newvers.sh. I do not know why it is not the same for > the cross build. Although, I could just call svn{,lite}version on > $SYSBASE/Makefile. > > root@nucleus:/usr/src # make -j8 -s buildkernel > -------------------------------------------------------------- > >>> Kernel build for NUCLEUS started on Tue Aug 13 13:09:53 EDT 2013 > -------------------------------------------------------------- > ===> NUCLEUS > -------------------------------------------------------------- > >>> stage 1: configuring the kernel > -------------------------------------------------------------- > Kernel build directory is /usr/obj/usr/src/sys/NUCLEUS > Don't forget to do ``make cleandepend && make depend'' > -------------------------------------------------------------- > >>> stage 2.1: cleaning up the object tree > -------------------------------------------------------------- > -------------------------------------------------------------- > >>> stage 2.2: rebuilding the object tree > -------------------------------------------------------------- > -------------------------------------------------------------- > >>> stage 2.3: build tools > -------------------------------------------------------------- > -------------------------------------------------------------- > >>> stage 3.1: making dependencies > -------------------------------------------------------------- > -------------------------------------------------------------- > >>> stage 3.2: building everything > -------------------------------------------------------------- > + [ ! -z '' ] > + [ -x /usr/bin/svnversion ] > + [ ! -z '' ] > + [ -x /usr/local/bin/svnversion ] > + [ -z ] > + realpath /usr/src/sys/conf/newvers.sh > + /usr/local/bin/svnversion /usr/src/sys/conf/newvers.sh > + [ 0 -eq 0 ] > + svnversion=/usr/local/bin/svnversion > + break > + [ -z /usr/local/bin/svnversion ] > + [ -x /usr/bin/p4 ] > + [ -x /usr/local/bin/p4 ] > + [ -d /usr/src/sys/conf/../../.git ] > + [ -n /usr/local/bin/svnversion ] > + cd /usr/src/sys/conf/.. > + /usr/local/bin/svnversion > + svn=253815:254284M > + svn=' r253815:254284M' > + [ -n '' ] > + [ -n '' ] > + cat > + echo 159 > linking kernel.debug > text data bss dec hex filename > 9082608 1113780 1035592 11231980 ab62ec kernel.debug > -------------------------------------------------------------- > >>> Kernel build for NUCLEUS completed on Tue Aug 13 13:11:49 EDT 2013 > -------------------------------------------------------------- > > Glen > I'm not even sure what $0 *should* expand to in a script that was sourced in. The manpage doesn't say anything meaningful to me about it. Maybe it's a kind of "indeterminate results" thing which is pretty much what we're seeing. I was thinking that $(realpath ${PARAMFILE}) might be a good way to tap dance around the problem, but PARAMFILE can be set by default from $SYSDIR and it's not clear to me that that'll always be right either. -- Ian