[postgis-tickets] [PostGIS] #4408: can't compile --with-wagyu under mingw64
PostGIS
trac at osgeo.org
Fri May 31 14:32:36 PDT 2019
#4408: can't compile --with-wagyu under mingw64
----------------------+---------------------------
Reporter: robe | Owner: Algunenano
Type: defect | Status: new
Priority: blocker | Milestone: PostGIS 3.0.0
Component: postgis | Version: trunk
Resolution: | Keywords:
----------------------+---------------------------
Comment (by robe):
here is the error including the command prior
{{{
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-
statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-
security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-
format-truncation -Wno-stringop-truncation -g -O2 -shared -static-libgcc
-o postgis-3.dll 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_sfcgal.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 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
-LC:/MING64~1/projects/POSTGR~1/rel/PG12W6~2/lib -L/projects/zlib/rel-
zlib-1.2.11w64gcc81/lib -L/projects/libxml/rel-libxml2-2.7.8w64gcc81/lib
-Wl,--allow-multiple-definition -Wl,--disable-auto-import
-L/projects/libxml/rel-libxml2-2.7.8w64gcc81/lib -Wl,--as-needed
../deps/wagyu/libwagyu.la -lstdc++ ../libpgcommon/libpgcommon.a
../liblwgeom/.libs/liblwgeom.a
-LC:/ming64gcc81/projects/geos/rel-3.8w64gcc81/lib -lgeos_c
-L/projects/proj/rel-6.0.0w64gcc81/lib -lproj
-L/projects/protobuf/rel-3.2.0w64gcc81/lib -lprotobuf-c -L/projects/libxml
/rel-libxml2-2.7.8w64gcc81/lib -lxml2 -lws2_32 -L/projects/CGAL/rel-
sfcgal-1.3.2w64gcc81/lib -lSFCGAL -Wl,--exclude-libs,ALL -L/projects/CGAL
/rel-sfcgal-1.3.2w64gcc81/lib -lSFCGAL
-LC:/MING64~1/projects/POSTGR~1/rel/PG12W6~2/lib -lpostgres -lpgcommon
-lpgport -lxml2 -lz -lws2_32 -lm -lws2_32 -Wl,--export-all-symbols -Wl
,--out-implib=libpostgis-3.a
../deps/wagyu/libwagyu.la(lwgeom_wagyu.o):lwgeom_wagyu.cpp:(.rdata$_ZTISt13runtime_error[_ZTISt13runtime_error]+0x0):
undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
../deps/wagyu/libwagyu.la(lwgeom_wagyu.o):lwgeom_wagyu.cpp:(.rdata$_ZTISt9exception[_ZTISt9exception]+0x0):
undefined reference to `vtable for __cxxabiv1::__class_type_info'
../deps/wagyu/libwagyu.la(lwgeom_wagyu.o):lwgeom_wagyu.cpp:(.rdata$.refptr._ZSt7nothrow[.refptr._ZSt7nothrow]+0x0):
undefined reference to `std::nothrow'
collect2.exe: error: ld returned 1 exit status
make[1]: ***
[C:/MING64~1/projects/POSTGR~1/rel/PG12W6~2/lib/pgxs/src/MAKEFI~1/../../src/Makefile.shlib:386:
postgis-3.dll] Error 1
make[1]: Leaving directory '/projects/postgis/branches/3.0/postgis'
make: *** [GNUmakefile:20: all] Error 1
}}}
in config.log - no warning just a
{{{
configure:18519: result: none required
configure:18595: result: WAGYU: Wagyu usage requested
configure:18726: checking for C++ compiler version
configure:18735: gcc --version >&5
gcc.exe (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0
}}}
and configure out shows this
{{{
-------------- Compiler Info -------------
C compiler: x86_64-w64-mingw32-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.8w64gcc81/include
-I/projects/proj/rel-6.0.0w64gcc81/include
-I/projects/protobuf/rel-3.2.0w64gcc81/include -I/projects/libxml/rel-
libxml2-2.7.8w64gcc81/include/libxml2 -I/projects/CGAL/rel-
sfcgal-1.3.2w64gcc81/include
-I/projects/json-c/rel-0.12w64gcc81/include/json-c
SQL preprocessor: /mingw/bin/cpp -traditional-cpp -w -P
-------------- Additional Info -------------
Interrupt Tests: DISABLED use: --with-interrupt-tests to enable
-------------- Dependencies --------------
GEOS config: /projects/geos/rel-3.8w64gcc81/bin/geos-config
GEOS version: 3.8.0
GDAL config: /projects/gdal/rel-2.3.1w64gcc81/bin/gdal-config
GDAL version: 2.3.1
SFCGAL config: /projects/CGAL/rel-sfcgal-1.3.2w64gcc81/bin
/sfcgal-config
SFCGAL version: 1.3.2
PostgreSQL config:
/projects/postgresql/rel/pg12w64gcc81/bin/pg_config
PostgreSQL version: PostgreSQL 12beta1
PROJ4 version: 60
Libxml2 config: /projects/libxml/rel-
libxml2-2.7.8w64gcc81/bin/xml2-config
Libxml2 version: 2.7.8
JSON-C support: no
protobuf-c support: yes
PCRE support: no
Perl: /bin/perl
Wagyu: yes
--------------- Extensions ---------------
PostGIS Raster: enabled
}}}
I'm going to go ahead and turn on winnie's wagyu -- she's still building
with an older compiler but sometimes that one for whatever reason doesn't
run into the same issues my newer one does.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4408#comment:2>
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