Re: buildworld broken

From: Ian Lepore <ian_at_freebsd.org>
Date: Mon, 09 Nov 2015 10:56:12 -0700
On Mon, 2015-11-09 at 06:09 -0800, Chris H wrote:
> On Sun, 8 Nov 2015 10:28:17 -0800 Steve Kargl
> <sgk_at_troutmask.apl.washington.edu> wrote
> 
> > On Sun, Nov 01, 2015 at 11:19:09PM -0800, NGie Cooper wrote:
> > > 
> > > > /usr/obj/usr/src/tmp/usr/lib/libcrypto.so: undefined reference
> > > > to
> > > > 'PKCS7_dataInit' /usr/obj/usr/src/tmp/usr/lib/libcrypto.so:
> > > > undefined
> > > > reference to 'PKCS7_dataDecode'
> > > > /usr/obj/usr/src/tmp/usr/lib/libcrypto.so: undefined reference
> > > > to
> > > > 'PKCS7_signatureVerify' > 
> > > Hi Steve,
> > >     What are your custom build options? Have you patched your
> > > copy of
> > >     FreeBSD? > Thanks!
> > 
> > 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
> 
> I must perform a
>   chflags -R noschg
> on /usr/obj prior to blowing it away. Is it different for you,
> or did you just omit that step?
> 

In 19 years of using freebsd, I have never once needed to chflags on an
obj directory.  Nothing in the build process sets any non-standard
flags in the obj dirs, and a simple rm -rf will remove everything just
fine (you would need to sudo the rm -rf if you built as root).

-- Ian

> > % 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.
> > 
> > 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.
> > 
Received on Mon Nov 09 2015 - 16:56:19 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:00 UTC