From owner-freebsd-current@freebsd.org Sun Nov 8 22:43:35 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 57781A29BCA for ; Sun, 8 Nov 2015 22:43:35 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 39BE61FA5 for ; Sun, 8 Nov 2015 22:43:35 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.15.2/8.15.2) with ESMTPS id tA8MhUwt006379 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 8 Nov 2015 14:43:30 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id tA8MhUeX006378; Sun, 8 Nov 2015 14:43:30 -0800 (PST) (envelope-from sgk) Date: Sun, 8 Nov 2015 14:43:30 -0800 From: Steve Kargl To: David Wolfskill , NGie Cooper , freebsd-current@freebsd.org Subject: Re: buildworld broken Message-ID: <20151108224330.GA52017@troutmask.apl.washington.edu> References: <20151101164707.GA5847@troutmask.apl.washington.edu> <20151108182817.GA49944@troutmask.apl.washington.edu> <20151108194316.GD1500@albert.catwhisker.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151108194316.GD1500@albert.catwhisker.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-Mailman-Approved-At: Sun, 08 Nov 2015 23:41:37 +0000 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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: Sun, 08 Nov 2015 22:43:35 -0000 On Sun, Nov 08, 2015 at 11:43:16AM -0800, David Wolfskill wrote: > On Sun, Nov 08, 2015 at 10:28:17AM -0800, Steve Kargl wrote: > > ... > > Back to trying to build freebsd. I have discovered that > > 'make buildworld' is simply broken if one attempts to use > > a symlink for /usr/obj. At least doing doing > > > > % rm -rf /usr/obj > > % ln -s /mnt/obj /usr/obj > > % cd /usr/src > > % nice make -j2 buildworld > > > > with /mnt a UFS2 file system on a USB2 disk yields errors of the > > above form. > > My laptop -- where I build stable/10 & head daily -- is set up so that: > > g1-252(10.2-S)[1] ls -lT /usr/obj > lrwxr-xr-x 1 root wheel 14 Jul 19 06:39:21 2015 /usr/obj -> /common/S1/obj > g1-252(10.2-S)[2] > > In this case, /tmp is tmpfs and all others are UFS2+SU. > > > If one does > > > > % rm -rf /usr/obj > > % setenv OBJDIR /mnt/obj > > % cd /usr/src > > % nice make -j2 buildworld > > > > works. So, it appears soemthing inside the make infrastructure cannot > > follow symlinks. This used to work. > > In such cases, my first suspect is (ab)use of realpath. > Thanks for the response. Perhaps, you're right. I have no problem with changing my build methods to use OBJDIR instead of a symlink. Hopefully, whatever is broken in the make infrastructure won't have problems with the symlink from /usr/ports/distfiles to /mnt/distfiles. -- Steve