[postgis-devel] parallel build bug (in 2.1.8)
Greg Troxel
gdt at ir.bbn.com
Tue Jul 7 11:25:27 PDT 2015
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 180 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20150707/ba953ba3/attachment.sig>
More information about the postgis-devel
mailing list