[PostGIS] #5847: woodie failing on recent stable branches with lto-wrapper issue

PostGIS trac at osgeo.org
Mon Feb 3 09:07:20 PST 2025


#5847: woodie failing on recent stable branches with lto-wrapper issue
---------------------------+---------------------------
  Reporter:  robe          |      Owner:  robe
      Type:  defect        |     Status:  new
  Priority:  medium        |  Milestone:  PostGIS 3.5.3
 Component:  QA/buildbots  |    Version:  3.4.x
Resolution:                |   Keywords:
---------------------------+---------------------------
Changes (by robe):

 * component:  postgis => QA/buildbots
 * owner:  pramsey => robe


Old description:

> PG17 check run
> {{{
> linux-gnu -lSFCGAL -lgmpxx -Wl,--exclude-libs,ALL  -lm -flto
> lto1: internal compiler error: resolution sub id 0xe4dae6eafbe92346 not
> in object file
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <file:///usr/share/doc/gcc-9/README.Bugs> for instructions.
> lto-wrapper: fatal error: gcc returned 1 exit status
> compilation terminated.
> /usr/bin/ld: error: lto-wrapper failed
> collect2: error: ld returned 1 exit status
> make[1]: ***
> [/usr/lib/postgresql/12/lib/pgxs/src/makefiles/../../src/Makefile.shlib:309:
> postgis-3.4.so] Error 1
> make[1]: Leaving directory
> '/woodpecker/src/git.osgeo.org/gitea/postgis/postgis/build/pg12/postgis'
> make: *** [GNUmakefile:25: all] Error 1
> make: Leaving directory
> '/woodpecker/src/git.osgeo.org/gitea/postgis/postgis/build/pg12'
> }}}
>

> I'm not sure if we have any other bots running with lto-wrapper as it
> caused issues with otehr ci.
>
> https://woodie.osgeo.org/repos/30/pipeline/2827/10
>
> This seems to have started with pgsignal changes.

New description:

 PG17 check run https://woodie.osgeo.org/repos/30/pipeline/2827/10

 {{{
 gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-
 statement -Werror=vla -Wendif-labels -Wmissing-format-attribute
 -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local
 -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard
 -Wno-format-truncation -Wno-stringop-truncation -g -g -O2 -flto=auto
 -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong
 -Wformat -Werror=format-security -fno-omit-frame-pointer -fPIC
 -fvisibility=hidden -shared -o postgis-3.5.so postgis_module.o
 lwgeom_accum.o lwgeom_union.o lwgeom_spheroid.o lwgeom_ogc.o
 lwgeom_functions_analytic.o lwgeom_functions_basic.o lwgeom_inout.o
 lwgeom_btree.o lwgeom_box.o lwgeom_box3d.o lwgeom_geos.o
 lwgeom_geos_predicates.o lwgeom_geos_prepared.o lwgeom_geos_clean.o
 lwgeom_geos_relatematch.o lwgeom_generate_grid.o lwgeom_export.o
 lwgeom_in_gml.o lwgeom_in_kml.o lwgeom_in_marc21.o lwgeom_out_marc21.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 lwgeom_itree.o lwgeom_sqlmm.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 flatgeobuf.o
 lwgeom_in_flatgeobuf.o lwgeom_out_flatgeobuf.o
 lwgeom_remove_irrelevant_points_for_view.o lwgeom_remove_small_parts.o
 postgis_legacy.o -lm -flto -fvisibility=hidden ../deps/wagyu/libwagyu.la
 -lstdc++ ../deps/flatgeobuf/libflatgeobuf.la -lstdc++
 ../libpgcommon/libpgcommon.a ../liblwgeom/.libs/liblwgeom.a
 -L/usr/local/lib -lgeos_c -lproj -ljson-c -L/usr/local/lib -lprotobuf-c
 -lxml2 -L/usr/lib/x86_64-linux-gnu -lSFCGAL -lgmpxx -Wl,--exclude-libs,ALL
 -lm -flto
 lto1: internal compiler error: resolution sub id 0x8463a2449baf1abb not in
 object file
 0xd13dc1 internal_error(char const*, ...)
         ???:0
 0x128605a lto_main()
         ???:0
 Please submit a full bug report,
 with preprocessed source if appropriate.
 Please include the complete backtrace with any bug report.
 See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.
 lto-wrapper: fatal error: gcc returned 1 exit status
 compilation terminated.
 /usr/bin/ld: error: lto-wrapper failed
 collect2: error: ld returned 1 exit status
 make[1]: ***
 [/usr/lib/postgresql/17/lib/pgxs/src/makefiles/../../src/Makefile.shlib:261:
 postgis-3.5.so] Error 1
 make[1]: Leaving directory
 '/woodpecker/src/git.osgeo.org/gitea/postgis/postgis/build/pg17/postgis'
 make: *** [GNUmakefile:36: all] Error 1
 }}}


 I'm not sure if we have any other bots running with lto-wrapper as it
 caused issues with otehr ci.


 This seems to have started with pgsignal changes.

 Although 3.4 seems to have similar issue and I don't recall us pushing
 pgsignal changes to that.

 https://woodie.osgeo.org/repos/30/pipeline/2835/16
 {{{
 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 -g -O2 -fstack-protector-
 strong -Wformat -Werror=format-security -fno-omit-frame-pointer -fPIC
 -shared -o postgis-3.4.so postgis_module.o lwgeom_accum.o lwgeom_union.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_geos_prepared.o lwgeom_geos_clean.o
 lwgeom_geos_relatematch.o lwgeom_generate_grid.o lwgeom_export.o
 lwgeom_in_gml.o lwgeom_in_kml.o lwgeom_in_marc21.o lwgeom_out_marc21.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 flatgeobuf.o
 lwgeom_in_flatgeobuf.o lwgeom_out_flatgeobuf.o postgis_legacy.o -lm -flto
 ../deps/wagyu/libwagyu.la -lstdc++ ../deps/flatgeobuf/libflatgeobuf.la
 -lstdc++ ../libpgcommon/libpgcommon.a ../liblwgeom/.libs/liblwgeom.a
 -L/usr/local/lib -lgeos_c -lproj -ljson-c -L/usr/local/lib -lprotobuf-c
 -lxml2 -L/usr/lib/x86_64-linux-gnu -lSFCGAL -lgmpxx -Wl,--exclude-libs,ALL
 -lm -flto
 lto1: internal compiler error: resolution sub id 0xe4dae6eafbe92346 not in
 object file
 Please submit a full bug report,
 with preprocessed source if appropriate.
 See <file:///usr/share/doc/gcc-9/README.Bugs> for instructions.
 lto-wrapper: fatal error: gcc returned 1 exit status
 compilation terminated.
 /usr/bin/ld: error: lto-wrapper failed
 collect2: error: ld returned 1 exit status
 make[1]: ***
 [/usr/lib/postgresql/12/lib/pgxs/src/makefiles/../../src/Makefile.shlib:309:
 postgis-3.4.so] Error 1
 make[1]: Leaving directory
 '/woodpecker/src/git.osgeo.org/gitea/postgis/postgis/build/pg12/postgis'
 make: *** [GNUmakefile:25: all] Error 1
 }}}

 so this could have something to do with my rebuild of woodie docker image
 to test pg17

--
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5847#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