[postgis-devel] parallel build bug (in 2.1.8)

Brian M Hamlin maplabs at light42.com
Tue Jul 7 11:41:12 PDT 2015


Hi Greg -
 
  I routinely build with -j4 or 8, get the results, then re-build once 
without -j to finish .. I have been doing this for a year .. I wondered 
about the bug you mentioned, but I did not dig through the build system 
to find the details.. its a bit messy .. 
 
  best regards
    --Brian

On Tue, 07 Jul 2015 14:25:27 -0400, Greg Troxel  wrote:

In the pkgsrc build, make is invoked as "all docs" to build everything. 
Without -j, it works fine. With -j, deep down in docs, there is a rule
to build liblwgeom.a, which collides with the build from the all target. 

The following patches a dependency from docs to all, and also remove the
reach-back rule. They appear to fix doing parallel builds. If it
isn't appropriate to force all from docs, then arguably liblwgeom should
be split out and both all and docs depend on that. 

I still get:

gmake[1]: warning: jobserver unavailable: using -j1. Add '+' to parent 
make rule. 

Does building with -j8 work for other people?

--- GNUmakefile.in.orig 2015-07-07 17:51:48.000000000 +0000
+++ GNUmakefile.in
@@ -78,7 +78,7 @@ templategis-install:
templategis-uninstall:
$(MAKE) -C extras/template_gis uninstall

-docs:
+docs: all
$(MAKE) -C doc html

docs-clean:

--- doc/html/image_src/Makefile.in.orig 2014-12-01 08:47:21.000000000 +0000
+++ doc/html/image_src/Makefile.in
@@ -156,10 +156,6 @@ $(IMAGES_RESIZED): ../images/%.png: %.wk
generator: ../../../liblwgeom/.libs/liblwgeom.a $(OBJS)
$(CC) -o $@ $(OBJS) ../../../liblwgeom/.libs/liblwgeom.a -lm $(CUNIT_LDFLAGS)

-# Build liblwgeom
-../../../liblwgeom/.libs/liblwgeom.a:
- make -C ../../../liblwgeom liblwgeom.la
-
# Clean target
clean:
rm -f $(OBJS)

-------------------------

_______________________________________________
postgis-devel mailing list
postgis-devel at lists.osgeo.org
http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel

--
Brian M Hamlin
OSGeo California Chapter
blog.light42.com

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20150707/14ef2c5b/attachment.html>


More information about the postgis-devel mailing list