[postgis-tickets] [PostGIS] #4977: Can't compile PostGIS 3.2 on windows - breaking on protobuf-c

PostGIS trac at osgeo.org
Fri Aug 20 19:54:15 PDT 2021


#4977: Can't compile PostGIS 3.2 on windows - breaking on protobuf-c
------------------------------------+---------------------------
  Reporter:  robe                   |      Owner:  strk
      Type:  defect                 |     Status:  new
  Priority:  blocker                |  Milestone:  PostGIS 3.2.0
 Component:  build/upgrade/install  |    Version:  master
Resolution:                         |   Keywords:
------------------------------------+---------------------------
Description changed by robe:

Old description:

> I thought it was just something up with my desktop but notice winnie is
> having the same issue.
>

> {{{
> 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
> lwgeom_rectree.o long_xact.o lwgeom_sqlmm.o lwgeom_rtree.o
> lwgeom_transform.o lwgeom_window.o gserialized_typmod.o
> gserialized_gist_2d.o gserialized_gist_nd.o gserialized_supportfn.o
> gserialized_spgist_2d.o gserialized_spgist_3d.o gserialized_spgist_nd.o
> brin_2d.o brin_nd.o brin_common.o gserialized_estimate.o
> geography_inout.o geography_btree.o geography_centroid.o
> geography_measurement.o geography_measurement_trees.o geometry_inout.o
> postgis_libprotobuf.o vector_tile.pb-c.o geobuf.pb-c.o mvt.o
> lwgeom_out_mvt.o geobuf.o lwgeom_out_geobuf.o lwgeom_out_geojson.o
> postgis_legacy.o -Wl,--enable-auto-import
> -L/projects/postgresql/rel/pg13w64gcc81/lib -L/projects/rel-
> libiconv-1.15w64gcc81/lib -L/projects/zlib/rel-zlib-1.2.11w64gcc81/lib
> -lm  ../deps/wagyu/libwagyu.la -lstdc++ ../libpgcommon/libpgcommon.a
> ../liblwgeom/.libs/liblwgeom.a  -LE:/jenkins/geos/rel-3.9w64gcc81/lib
> -lgeos_c -LE:/jenkins/proj/rel-7.1.1w64gcc81/lib -lproj
> -LE:/jenkins/json-c/rel-0.12w64gcc81/lib -ljson-c   -lprotobuf-c
> -L/projects/libxml/rel-libxml2-2.9.9w64gcc81/lib -lxml2 -liconv -lws2_32
> -L/projects/CGAL/rel-sfcgal-1.3.9w64gcc81/lib -lSFCGAL -Wl,--exclude-
> libs,ALL -Wl,--enable-auto-import
> -L/projects/postgresql/rel/pg13w64gcc81/lib -L/projects/rel-
> libiconv-1.15w64gcc81/lib -L/projects/zlib/rel-zlib-1.2.11w64gcc81/lib
> -lm -static-libstdc++ -lstdc++ -Wl,-Bdynamic -lm
> -LE:/jenkins/postgresql/rel/pg13w64gcc81/lib -lpostgres -lpgcommon
> -lpgport -lxml2 -lz -lws2_32 -lm  -lws2_32 -Wl,--export-all-symbols -Wl
> ,--out-implib=libpostgis-3.2.a
> C:/ming64gcc81/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
> cannot find -lprotobuf-c
> collect2.exe: error: ld returned 1 exit status
> make[1]: ***
> [E:/jenkins/postgresql/rel/pg13w64gcc81/lib/pgxs/src/makefiles/../../src/Makefile.shlib:370:
> postgis-3.2.dll] Error 1
> make[1]: Leaving directory '/projects/postgis/branches/3.2/postgis'
> make: *** [GNUmakefile:22: all] Error 1
>
> e:\jenkins\postgis>exit 2
> Build step 'Execute Windows batch command' marked build as failure
> An attempt to send an e-mail to empty list of recipients, ignored.
> }}}
>

> Looks like winnie' has been broken for a week or so.  I haven't tried
> compiling in past week.

New description:

 I thought it was just something up with my desktop but notice winnie is
 having the same issue.


 {{{
   PostGIS is now configured for x86_64-pc-mingw64

  -------------- Compiler Info -------------
   C compiler:           gcc -std=gnu99 -g -O2 -fno-math-errno -fno-signed-
 zeros
   C++ compiler (Wagyu): gcc -std=c++11 -x c++
   CPPFLAGS:
 -IC:/ming64gcc81/projects/geos/rel-3.10w64gcc81/include
 -IC:/ming64gcc81/projects/proj/rel-7.2.0w64gcc81/include
 -IC:/ming64gcc81/projects/protobuf/rel-3.2.0w64gcc81/include
 -I/projects/libxml/rel-libxml2-2.9.9w64gcc81/include/libxml2
 -IC:/ming64gcc81/projects/json-c/rel-0.12w64gcc81/include/json-c
 -IC:/ming64gcc81/projects/pcre/rel-8.33w64gcc81/include   -DNDEBUG
   LDFLAGS:               -lm
   SQL preprocessor:     /mingw64/bin/cpp -traditional-cpp -w -P

  -------------- Additional Info -------------
   Interrupt Tests:   DISABLED use: --with-interrupt-tests to enable

  -------------- Dependencies --------------
   GEOS config:          /projects/geos/rel-3.10w64gcc81/bin/geos-config
   GEOS version:         3.10.0dev
   GDAL config:          /projects/gdal/rel-3.2.0w64gcc81/bin/gdal-config
   GDAL version:         3.2.0
   PostgreSQL config:
 /projects/postgresql/rel/pg14w64gcc81/bin/pg_config
   PostgreSQL version:   PostgreSQL 14beta1
   PROJ4 version:        72
   Libxml2 config:       /projects/libxml/rel-
 libxml2-2.9.9w64gcc81/bin/xml2-config
   Libxml2 version:      2.9.9
   JSON-C support:       yes
   protobuf support:     yes
   protobuf-c version:   1002001
   PCRE support:         yes
   Perl:                 /usr/bin/perl

  --------------- Extensions ---------------
   PostGIS Raster:                     enabled
   PostGIS Topology:                   enabled
   SFCGAL support:                     disabled
   Address Standardizer support:       enabled

 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
 lwgeom_rectree.o long_xact.o lwgeom_sqlmm.o lwgeom_rtree.o
 lwgeom_transform.o lwgeom_window.o gserialized_typmod.o
 gserialized_gist_2d.o gserialized_gist_nd.o gserialized_supportfn.o
 gserialized_spgist_2d.o gserialized_spgist_3d.o gserialized_spgist_nd.o
 brin_2d.o brin_nd.o brin_common.o gserialized_estimate.o geography_inout.o
 geography_btree.o geography_centroid.o geography_measurement.o
 geography_measurement_trees.o geometry_inout.o postgis_libprotobuf.o
 vector_tile.pb-c.o geobuf.pb-c.o mvt.o lwgeom_out_mvt.o geobuf.o
 lwgeom_out_geobuf.o lwgeom_out_geojson.o postgis_legacy.o -Wl,--enable-
 auto-import -L/projects/postgresql/rel/pg13w64gcc81/lib -L/projects/rel-
 libiconv-1.15w64gcc81/lib -L/projects/zlib/rel-zlib-1.2.11w64gcc81/lib -lm
 ../deps/wagyu/libwagyu.la -lstdc++ ../libpgcommon/libpgcommon.a
 ../liblwgeom/.libs/liblwgeom.a  -LE:/jenkins/geos/rel-3.9w64gcc81/lib
 -lgeos_c -LE:/jenkins/proj/rel-7.1.1w64gcc81/lib -lproj
 -LE:/jenkins/json-c/rel-0.12w64gcc81/lib -ljson-c   -lprotobuf-c
 -L/projects/libxml/rel-libxml2-2.9.9w64gcc81/lib -lxml2 -liconv -lws2_32
 -L/projects/CGAL/rel-sfcgal-1.3.9w64gcc81/lib -lSFCGAL -Wl,--exclude-
 libs,ALL -Wl,--enable-auto-import
 -L/projects/postgresql/rel/pg13w64gcc81/lib -L/projects/rel-
 libiconv-1.15w64gcc81/lib -L/projects/zlib/rel-zlib-1.2.11w64gcc81/lib -lm
 -static-libstdc++ -lstdc++ -Wl,-Bdynamic -lm
 -LE:/jenkins/postgresql/rel/pg13w64gcc81/lib -lpostgres -lpgcommon
 -lpgport -lxml2 -lz -lws2_32 -lm  -lws2_32 -Wl,--export-all-symbols -Wl
 ,--out-implib=libpostgis-3.2.a
 C:/ming64gcc81/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
 cannot find -lprotobuf-c
 collect2.exe: error: ld returned 1 exit status
 make[1]: ***
 [E:/jenkins/postgresql/rel/pg13w64gcc81/lib/pgxs/src/makefiles/../../src/Makefile.shlib:370:
 postgis-3.2.dll] Error 1
 make[1]: Leaving directory '/projects/postgis/branches/3.2/postgis'
 make: *** [GNUmakefile:22: all] Error 1

 e:\jenkins\postgis>exit 2
 Build step 'Execute Windows batch command' marked build as failure
 An attempt to send an e-mail to empty list of recipients, ignored.
 }}}


 Looks like winnie' has been broken for a week or so.  I haven't tried
 compiling in past week.

--

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4977#comment:1>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list