Opened 9 years ago
Closed 9 years ago
#3345 closed defect (duplicate)
Building latest stable and development versions fails on multiple cores
Reported by: | bypasser | Owned by: | pramsey |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.2.1 |
Component: | postgis | Version: | 2.2.x |
Keywords: | Cc: |
Description
Building the the latest stable (2.2.0) and development (2.2.1dev) package in a clean chroot on an up to date Arch Linux system fails while the -j4 makeflag is enabled.
Disabling the option of multiple cores to be used to build the software let's the compile process finish successfully. This was not the case in the previous versions.
Link to the used PKGBUILD: https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/postgis An "option=(!makeflags)" had to be added to compile postgis.
v2.2.0
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fpic -shared -o postgis-2.2.so postgis_module.o lwgeom_accum.o lwgeom_spheroid.o lwgeom_ogc.o lwgeom_functions_analytic.o lwgeom_inout.o lwgeom_functions_basic.o lwgeom_btree.o lwgeom_box.o lwgeom_box3d.o lwgeom_geos.o lwgeom_backend_api.o lwgeom_geos_prepared.o lwgeom_geos_clean.o lwgeom_geos_relatematch.o lwgeom_export.o lwgeom_in_gml.o lwgeom_in_kml.o lwgeom_in_geohash.o lwgeom_in_geojson.o lwgeom_in_encoded_polyline.o lwgeom_triggers.o lwgeom_dump.o lwgeom_dumppoints.o lwgeom_functions_lrs.o lwgeom_functions_temporal.o long_xact.o lwgeom_sqlmm.o lwgeom_rtree.o lwgeom_transform.o gserialized_typmod.o gserialized_gist_2d.o gserialized_gist_nd.o gserialized_estimate.o geography_inout.o geography_btree.o geography_measurement.o geography_measurement_trees.o geometry_inout.o -L/usr/lib -Wl,-O1,--sort-common,--as-needed,-z,relro -Wl,--as-needed -Wl,-rpath,'/usr/lib',--enable-new-dtags ../libpgcommon/libpgcommon.a ../liblwgeom/.libs/liblwgeom.a -L/usr/lib -lgeos_c -lproj -ljson-c -lxml2 -lz -lm -ldl -Wl,--exclude-libs,ALL make[1]: Leaving directory '/build/postgis/src/postgis-2.2.0/postgis' ---- Making all in regress make[1]: Entering directory '/build/postgis/src/postgis-2.2.0/regress' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/build/postgis/src/postgis-2.2.0/regress' ---- Making all in raster make[1]: Entering directory '/build/postgis/src/postgis-2.2.0/raster' make -C rt_core make -C rt_pg make -C loader make -C rt_pg rtpostgis.sql make[2]: Entering directory '/build/postgis/src/postgis-2.2.0/raster/rt_pg' make[2]: Entering directory '/build/postgis/src/postgis-2.2.0/raster/rt_core' gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_util.o rt_util.c make[2]: Entering directory '/build/postgis/src/postgis-2.2.0/raster/rt_pg' make[2]: Entering directory '/build/postgis/src/postgis-2.2.0/raster/loader' make -C ../rt_core make[3]: Entering directory '/build/postgis/src/postgis-2.2.0/raster/rt_core' gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_util.o rt_util.c make[2]: *** No rule to make target '../rt_core/librtcore.a', needed by 'rtpostgis.o'. Stop. make[2]: Leaving directory '/build/postgis/src/postgis-2.2.0/raster/rt_pg' Makefile:28: recipe for target 'pglib' failed make[1]: *** [pglib] Error 2 make[1]: *** Waiting for unfinished jobs.... gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_spatial_relationship.o rt_spatial_relationship.c /usr/bin/cpp -traditional-cpp -w -P -I../../postgis/ -I../../ rtpostgis.sql.in | grep -v '^#' | \ /usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/rtpostgis-2.2'g" > rtpostgis.sql make[2]: Leaving directory '/build/postgis/src/postgis-2.2.0/raster/rt_pg' gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_mapalgebra.o rt_mapalgebra.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_geometry.o rt_geometry.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_spatial_relationship.o rt_spatial_relationship.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_statistics.o rt_statistics.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_pixel.o rt_pixel.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_warp.o rt_warp.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_geometry.o rt_geometry.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_band.o rt_band.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_band.o rt_band.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_raster.o rt_raster.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_serialize.o rt_serialize.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_wkb.o rt_wkb.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_raster.o rt_raster.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_context.o rt_context.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../rt_core -I../../liblwgeom -I/usr/include -I/usr/include -c raster2pgsql.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_context.o rt_context.c ar rs librtcore.a rt_util.o rt_spatial_relationship.o rt_mapalgebra.o rt_geometry.o rt_statistics.o rt_pixel.o rt_warp.o rt_band.o rt_raster.o rt_serialize.o rt_wkb.o rt_context.o ar: creating librtcore.a make[3]: Leaving directory '/build/postgis/src/postgis-2.2.0/raster/rt_core' ar rs librtcore.a rt_util.o rt_spatial_relationship.o rt_mapalgebra.o rt_geometry.o rt_statistics.o rt_pixel.o rt_warp.o rt_band.o rt_raster.o rt_serialize.o rt_wkb.o rt_context.o make[2]: Leaving directory '/build/postgis/src/postgis-2.2.0/raster/rt_core' /bin/sh ../../libtool --mode=link gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../rt_core -I../../liblwgeom -I/usr/include -I/usr/include ../rt_core/librtcore.a raster2pgsql.o -Wl,-O1,--sort-common,--as-needed,-z,relro ../../liblwgeom/liblwgeom.la -L/usr/lib -lgdal -L/usr/lib -lgeos_c -lc -lm -o raster2pgsql libtool: link: gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../rt_core -I../../liblwgeom -I/usr/include -I/usr/include raster2pgsql.o -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -o .libs/raster2pgsql ../rt_core/librtcore.a ../../liblwgeom/.libs/liblwgeom.so -L/usr/lib -lproj -ljson-c -lgdal -lgeos_c -lc -lm make[2]: Leaving directory '/build/postgis/src/postgis-2.2.0/raster/loader' make[1]: Leaving directory '/build/postgis/src/postgis-2.2.0/raster' GNUmakefile:16: recipe for target 'all' failed make: *** [all] Error 1
v2.2.1dev
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fpic -shared -o postgis-2.2.so postgis_module.o lwgeom_accum.o lwgeom_spheroid.o lwgeom_ogc.o lwgeom_functions_analytic.o lwgeom_inout.o lwgeom_functions_basic.o lwgeom_btree.o lwgeom_box.o lwgeom_box3d.o lwgeom_geos.o lwgeom_backend_api.o lwgeom_geos_prepared.o lwgeom_geos_clean.o lwgeom_geos_relatematch.o lwgeom_export.o lwgeom_in_gml.o lwgeom_in_kml.o lwgeom_in_geohash.o lwgeom_in_geojson.o lwgeom_in_encoded_polyline.o lwgeom_triggers.o lwgeom_dump.o lwgeom_dumppoints.o lwgeom_functions_lrs.o lwgeom_functions_temporal.o long_xact.o lwgeom_sqlmm.o lwgeom_rtree.o lwgeom_transform.o gserialized_typmod.o gserialized_gist_2d.o gserialized_gist_nd.o gserialized_estimate.o geography_inout.o geography_btree.o geography_measurement.o geography_measurement_trees.o geometry_inout.o -L/usr/lib -Wl,-O1,--sort-common,--as-needed,-z,relro -Wl,--as-needed -Wl,-rpath,'/usr/lib',--enable-new-dtags ../libpgcommon/libpgcommon.a ../liblwgeom/.libs/liblwgeom.a -L/usr/lib -lgeos_c -lproj -ljson-c -lxml2 -lz -lm -ldl -Wl,--exclude-libs,ALL make[1]: Leaving directory '/build/postgis/src/postgis-2.2.1dev/postgis' ---- Making all in regress make[1]: Entering directory '/build/postgis/src/postgis-2.2.1dev/regress' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/build/postgis/src/postgis-2.2.1dev/regress' ---- Making all in raster make[1]: Entering directory '/build/postgis/src/postgis-2.2.1dev/raster' make -C rt_core make -C rt_pg make -C loader make -C rt_pg rtpostgis.sql make[2]: Entering directory '/build/postgis/src/postgis-2.2.1dev/raster/rt_core' gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_util.o rt_util.c make[2]: Entering directory '/build/postgis/src/postgis-2.2.1dev/raster/rt_pg' make[2]: Entering directory '/build/postgis/src/postgis-2.2.1dev/raster/rt_pg' make[2]: Entering directory '/build/postgis/src/postgis-2.2.1dev/raster/loader' make -C ../rt_core make[3]: Entering directory '/build/postgis/src/postgis-2.2.1dev/raster/rt_core' gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_spatial_relationship.o rt_spatial_relationship.c make[2]: *** No rule to make target '../rt_core/librtcore.a', needed by 'rtpostgis.o'. Stop. /usr/bin/cpp -traditional-cpp -w -P -I../../postgis/ -I../../ rtpostgis.sql.in | grep -v '^#' | \ /usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/rtpostgis-2.2'g" > rtpostgis.sql make[2]: Leaving directory '/build/postgis/src/postgis-2.2.1dev/raster/rt_pg' Makefile:28: recipe for target 'pglib' failed make[1]: *** [pglib] Error 2 make[1]: *** Waiting for unfinished jobs.... gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_mapalgebra.o rt_mapalgebra.c make[2]: Leaving directory '/build/postgis/src/postgis-2.2.1dev/raster/rt_pg' gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_spatial_relationship.o rt_spatial_relationship.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_geometry.o rt_geometry.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_geometry.o rt_geometry.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_statistics.o rt_statistics.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_statistics.o rt_statistics.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_pixel.o rt_pixel.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_pixel.o rt_pixel.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_warp.o rt_warp.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_warp.o rt_warp.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_band.o rt_band.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_raster.o rt_raster.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_band.o rt_band.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_serialize.o rt_serialize.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_wkb.o rt_wkb.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_serialize.o rt_serialize.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_context.o rt_context.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../rt_core -I../../liblwgeom -I/usr/include -I/usr/include -c raster2pgsql.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../../liblwgeom -I/usr/include -I/usr/include -D_FORTIFY_SOURCE=2 -c -o rt_context.o rt_context.c ar rs librtcore.a rt_util.o rt_spatial_relationship.o rt_mapalgebra.o rt_geometry.o rt_statistics.o rt_pixel.o rt_warp.o rt_band.o rt_raster.o rt_serialize.o rt_wkb.o rt_context.o ar: creating librtcore.a make[3]: Leaving directory '/build/postgis/src/postgis-2.2.1dev/raster/rt_core' ar rs librtcore.a rt_util.o rt_spatial_relationship.o rt_mapalgebra.o rt_geometry.o rt_statistics.o rt_pixel.o rt_warp.o rt_band.o rt_raster.o rt_serialize.o rt_wkb.o rt_context.o make[2]: Leaving directory '/build/postgis/src/postgis-2.2.1dev/raster/rt_core' /bin/sh ../../libtool --mode=link gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../rt_core -I../../liblwgeom -I/usr/include -I/usr/include ../rt_core/librtcore.a raster2pgsql.o -Wl,-O1,--sort-common,--as-needed,-z,relro ../../liblwgeom/liblwgeom.la -L/usr/lib -lgdal -L/usr/lib -lgeos_c -lc -lm -o raster2pgsql libtool: link: gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPIC -Wall -Wmissing-prototypes -I../rt_core -I../../liblwgeom -I/usr/include -I/usr/include raster2pgsql.o -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -o .libs/raster2pgsql ../rt_core/librtcore.a ../../liblwgeom/.libs/liblwgeom.so -L/usr/lib -lgdal -lgeos_c -lc -lm make[2]: Leaving directory '/build/postgis/src/postgis-2.2.1dev/raster/loader' make[1]: Leaving directory '/build/postgis/src/postgis-2.2.1dev/raster' GNUmakefile:16: recipe for target 'all' failed make: *** [all] Error 1
Change History (2)
comment:1 by , 9 years ago
Summary: | Building latest stable and developmen versions fails on multiple cores → Building latest stable and development versions fails on multiple cores |
---|
comment:2 by , 9 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Do you confirm this was fixed in trunk ? See #3335, of which this is a duplicate.