Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Nov 2015 14:43:30 -0800
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        David Wolfskill <david@catwhisker.org>, NGie Cooper <yaneurabeya@gmail.com>, freebsd-current@freebsd.org
Subject:   Re: buildworld broken
Message-ID:  <20151108224330.GA52017@troutmask.apl.washington.edu>
In-Reply-To: <20151108194316.GD1500@albert.catwhisker.org>
References:  <20151101164707.GA5847@troutmask.apl.washington.edu> <CD2B8B15-BFD7-48AA-BFAA-41BFE48635D7@gmail.com> <20151108182817.GA49944@troutmask.apl.washington.edu> <20151108194316.GD1500@albert.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151108224330.GA52017>