Opened 4 years ago

Closed 4 years ago

#4583 closed defect (fixed)

windows build errors

Reported by: robe Owned by: komzpa
Priority: blocker Milestone: PostGIS 3.1.0
Component: QA/buildbots Version: master
Keywords: windows Cc:

Description

I'm seeing this on winnie, but I'm also having the same issue locally.

As far as I can tell this started happening sometime after Nov 10th I switch back to pre GDAL 3.0 to rule that out but still having the same issue.

/libxml/rel-libxml2-2.9.9w64gcc81/include/libxml2  -IE:/jenkins/postgresql/rel/pg12w64gcc81/include/server/port/win32 -DWIN32_STACK_RLIMIT=4194304  -c -o lwgeom_out_geojson.o lwgeom_out_geojson.c
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  -I../liblwgeom -std=gnu99 -g -O2 -fno-math-errno -fno-signed-zeros -flto -I../libpgcommon -I../deps/wagyu -I../deps/uthash/include  -IE:/jenkins/geos/rel-3.8.0w64gcc81/include -IE:/jenkins/proj/rel-6.2.1w64gcc81/include   -IE:/jenkins/protobuf/rel-3.2.0w64gcc81/include   -I/projects/libxml/rel-libxml2-2.9.9w64gcc81/include/libxml2 -I/projects/CGAL/rel-sfcgal-1.3.2w64gcc81/include -IE:/jenkins/json-c/rel-0.12w64gcc81/include/json-c   -IE:/jenkins/pcre/rel-8.33w64gcc81/include     -DDLL_EXPORT -DPIC -I/projects/CGAL/rel-sfcgal-1.3.2w64gcc81/include -I. -I./ -IE:/jenkins/postgresql/rel/pg12w64gcc81/include/server -IE:/jenkins/postgresql/rel/pg12w64gcc81/include/internal  -I/projects/zlib/rel-zlib-1.2.11w64gcc81/include  -I/projects/libxml/rel-libxml2-2.9.9w64gcc81/include -I./src/include/port/win32 -DEXEC_BACKEND -I/projects/libxml/rel-libxml2-2.9.9w64gcc81/include/libxml2  -IE:/jenkins/postgresql/rel/pg12w64gcc81/include/server/port/win32 -DWIN32_STACK_RLIMIT=4194304  -c -o postgis_legacy.o postgis_legacy.c
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 -LE:/jenkins/postgresql/rel/pg12w64gcc81/lib  -L/projects/zlib/rel-zlib-1.2.11w64gcc81/lib -L/projects/libxml/rel-libxml2-2.9.9w64gcc81/lib -Wl,--allow-multiple-definition -Wl,--disable-auto-import -L/projects/libxml/rel-libxml2-2.9.9w64gcc81/lib  -Wl,--as-needed   ../deps/wagyu/libwagyu.la -lstdc++ ../libpgcommon/libpgcommon.a ../liblwgeom/.libs/liblwgeom.a  -LE:/jenkins/geos/rel-3.8.0w64gcc81/lib -lgeos_c -LE:/jenkins/proj/rel-6.2.1w64gcc81/lib -lproj   -LE:/jenkins/json-c/rel-0.12w64gcc81/lib -ljson-c   -LE:/jenkins/protobuf/rel-3.2.0w64gcc81/lib -lprotobuf-c   -L/projects/libxml/rel-libxml2-2.9.9w64gcc81/lib -lxml2 -liconv -lws2_32 -L/projects/CGAL/rel-sfcgal-1.3.2w64gcc81/lib -lSFCGAL -Wl,--exclude-libs,ALL -Wl,--enable-auto-import -L/projects/postgresql/rel/pg12w64gcc81/lib -L/projects/rel-libiconv-1.15w64gcc81/lib -L/projects/zlib/rel-zlib-1.2.11w64gcc81/lib -lm -flto -L/projects/CGAL/rel-sfcgal-1.3.2w64gcc81/lib -lSFCGAL -static-libstdc++ -lstdc++ -Wl,-Bdynamic -lm -LE:/jenkins/postgresql/rel/pg12w64gcc81/lib -lpostgres -lpgcommon -lpgport -lxml2 -lz -lws2_32 -lm  -lws2_32 -Wl,--export-all-symbols -Wl,--out-implib=libpostgis-3.a
lto1.exe: internal compiler error: in gen_subprogram_die, at dwarf2out.c:22668
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://sourceforge.net/projects/mingw-w64> for instructions.
lto-wrapper.exe: fatal error: C:\ming64gcc81\mingw64\bin\gcc.exe returned 1 exit status
compilation terminated.
C:/ming64gcc81/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: error: lto-wrapper failed
collect2.exe: error: ld returned 1 exit status
make[1]: *** [E:/jenkins/postgresql/rel/pg12w64gcc81/lib/pgxs/src/makefiles/../../src/Makefile.shlib:386: postgis-3.dll] Error 1
make[1]: Leaving directory '/projects/postgis/branches/3.1/postgis'
make: *** [GNUmakefile:20: all] Error 1

3.0 branch seems to be fine but that one last ran in Nov 10th also.

Change History (3)

comment:1 by Algunenano, 4 years ago

Introduced by #4574. It also broke the FreeBSD build.

comment:2 by Algunenano, 4 years ago

Owner: changed from robe to komzpa

comment:3 by Algunenano, 4 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.