[postgis-tickets] [PostGIS] #5121: winnie is broken with this strange error lto1.exe: internal compiler error: in gen_subprogram_die, at dwarf2out.c:22668

PostGIS trac at osgeo.org
Wed Mar 30 20:16:22 PDT 2022


#5121: winnie is broken with this strange error lto1.exe: internal compiler error:
in gen_subprogram_die, at dwarf2out.c:22668
-----------------------+---------------------------
 Reporter:  robe       |      Owner:  robe
     Type:  defect     |     Status:  new
 Priority:  blocker    |  Milestone:  PostGIS 3.3.0
Component:  buildbots  |    Version:  master
 Keywords:             |
-----------------------+---------------------------
 {{{
 export-all-symbols -Wl,--out-implib=libpostgis-3.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/pg14w64gcc81/lib/pgxs/src/makefiles/../../src/Makefile.shlib:374:
 postgis-3.3.dll] Error 1
 make[1]: Leaving directory '/projects/postgis/branches/3.3/postgis'
 make: *** [GNUmakefile:24: all] Error 1
 }}}

 And searching for this on the internet, led me back to my old ticket from
 2 years ago #4583

 Which Raul kindly pointed out was because of #4754.

 @komzpa I recall an LTO commit of yours recently.  I admittedly have not
 been paying too much attention, been ignoring the problem hoping it would
 go away.

 bessie32 is also failing, but could be a different issue


 {{{
 15:52:22 libtool: link: gcc8 -std=gnu99 -Wall -Wmissing-prototypes
 -Wpointer-arith -Wendif-labels -Wmissing-format-attribute -Wformat-
 security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-
 format-trunc -fno-math-errno -fno-signed-zeros -Wall -flto -fPIC -DPIC
 -I./../rt_core -I./.. -I. -I../.. -I../../liblwgeom -I../../liblwgeom
 -I/usr/local/include -I/usr/local/include -I/usr/local/include
 -I/usr/local/include raster2pgsql.o -flto -o raster2pgsql
 ../rt_core/librtcore.a ../../liblwgeom/.libs/liblwgeom.a -L/usr/local/lib
 -lm -lproj -ljson-c -lSFCGAL -lgdal -lgeos_c -lintl -liconv
 15:52:23 /usr/local/bin/ld: /tmp//cczKohy3.ltrans0.ltrans.o: undefined
 reference to symbol 'rtrealloc'
 15:52:23 /usr/local/bin/ld: /usr/local/lib/librttopo.so.1: error adding
 symbols: DSO missing from command line
 15:52:23 collect2: error: ld returned 1 exit status
 15:52:23 gmake[3]: *** [Makefile:86: raster2pgsql] Error 1
 15:52:23 gmake[3]: Leaving directory
 '/usr/home/jenkins/workspace/PostGIS_Worker_Run/label/bessie32/b0741830443c896ebbf15b51486a2b23787b7485/raster/loader'
 15:52:23 gmake[2]: *** [Makefile:35: rtloader] Error 2
 15:52:23 gmake[2]: Leaving directory
 '/usr/home/jenkins/workspace/PostGIS_Worker_Run/label/bessie32/b0741830443c896ebbf15b51486a2b23787b7485/raster'
 15:52:23 gmake[1]: *** [GNUmakefile:24: all] Error 1
 15:52:23 gmake[1]: Leaving directory
 '/usr/home/jenkins/workspace/PostGIS_Worker_Run/label/bessie32/b0741830443c896ebbf15b51486a2b23787b7485'
 15:52:23 *** Error code 2
 15:52:23
 }}}


 But bessie (64-bit FreeBSD seems fine)

 I still need to confirm I have the same issue on by dev.

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