[postgis-devel] on parallel and recursive make

Sandro Santilli strk at kbt.io
Wed Nov 4 04:48:01 PST 2020


On Wed, Nov 04, 2020 at 01:16:09PM +0100, rmrodriguez at carto.com wrote:
> On Wed, Nov 4, 2020 at 12:55 PM Sandro Santilli <strk at kbt.io> wrote:
> > I've seen Travis errors like: .a: unrecognized object
> > which suggests the linker was trying to use an object file _while_
> > the object file was being written by another thread (race condition
> > between checking if the file exists and creating the file).
> 
> I've started seeing them now in my local build. I think I bisected it
> to a recent change (402fdc0e8191422b23996eafde93b2dce33c1595) as the
> previous commit seems to work fine
> (72e4e9de69b44c56f8bff8515dcdb9f3511f009a), just beware that since
> this only happens rarely it might be a previous commit. What's for
> sure is that this didn't happen a month ago nor in other stable
> branches.

It was by luck, beause "make check" would check each component
in isolation, thus never descending in subcomponents in parallel.
The recent change allowed to run all tests at once, so we need to
build all components at once, and if each of the components is built
in parallel, they end up building liblwgeom in parallel.

--strk;


More information about the postgis-devel mailing list