Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Sep 2020 14:10:13 -0600
From:      Ian Lepore <ian@freebsd.org>
To:        Mark Johnston <markj@freebsd.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org, kan@freebsd.org
Subject:   Re: svn commit: r365889 - head/share/mk
Message-ID:  <3a0ce4f32721320bd04e400cfda05f2383d46220.camel@freebsd.org>
In-Reply-To: <20200918194400.GA36442@raichu>
References:  <202009181903.08IJ3YTM014958@repo.freebsd.org> <311b50c504a5dc1e54a1442aa4f759b14f263b67.camel@freebsd.org> <20200918194400.GA36442@raichu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 2020-09-18 at 15:44 -0400, Mark Johnston wrote:
> On Fri, Sep 18, 2020 at 01:27:23PM -0600, Ian Lepore wrote:
> > On Fri, 2020-09-18 at 19:03 +0000, Mark Johnston wrote:
> > > Author: markj
> > > Date: Fri Sep 18 19:03:34 2020
> > > New Revision: 365889
> > > URL: https://svnweb.freebsd.org/changeset/base/365889
> > > 
> > > Log:
> > >   Install library symlinks atomically.
> > >   
> > >   As we do for shared library binaries, pass -S to install(1) when
> > >   installing symlinks.  Doing so helps avoid transient failures when
> > >   libraries are being reinstalled, which seems to be the root cause
> > > of
> > >   spurious libgcc_s.so link failures during CI builds.
> > >   
> > 
> > Actually, I believe this will just paper over the real problem, which
> > is the fact that we're building and installing the same library
> > multiple times during early build steps.  Nobody has yet been able to
> > explain why we do that, and I haven't been able to figure out why by
> > analyzing any differences in the generated files, but I'm not done
> > trying.
> 
> Sorry, this deserved more commentary in the commit log.
> 
> Indeed, we install libgcc_s.so multiple times during buildworld.  As far
> as I can see, it's intentional insofar as libgcc_s.so is listed in
> multiple library targets: it's in both _prereq_libs and _startup_libs in
> Makefile.inc1.  In particular, from scanning the log from a recent
> instance of the failure, libgcc_s gets built once but installed multiple
> times.
> 
> Why that's the case, or whether it's still necessary, is not clear to
> me.  But adding -S seemed like a desirable change in general, so I went
> forward with it.

Yeah, it has been listed in both prereq and startup list since it was
first added by kan@ in 2007 or so.  I wonder if he remembers why (added
to cc list)?

-- Ian




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