[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
Fri Apr 1 09:52:50 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
Resolution: | Keywords:
------------------------+---------------------------
Comment (by robe):
Okay tested on my mingw setup (my setup is old BTW gcc 8.1 but that is
another story)
At anyrate the patch seems to screw up ability to find CC.
{{{
cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-
statement -Werror=vla -Wendif-labels -Wmissing-format-attribute
-Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-
strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation
-Wno-stringop-truncation -g -O2 -I../liblwgeom -I../liblwgeom -std=gnu99
-g -O2 -fno-math-errno -fno-signed-zeros -Wall -flto -I../libpgcommon
-I../deps/flatgeobuf -I../deps/wagyu -I../deps/uthash/include
-I/projects/geos/rel-3.11w64gcc81/include
-IC:/ming64gcc81/projects/proj/rel-7.2.1w64gcc81/include
-IC:/ming64gcc81/projects/protobuf/rel-3.2.0w64gcc81/include
-I/projects/libxml/rel-libxml2-2.9.9w64gcc81/include/libxml2
-I/projects/CGAL/rel-sfcgal-1.4.0w64gcc81/include
-IC:/ming64gcc81/projects/json-c/rel-0.12w64gcc81/include/json-c
-IC:/ming64gcc81/projects/pcre/rel-8.33w64gcc81/include -DNDEBUG
-I/projects/postgresql/rel/pg15w64gcc81/include -I/projects/rel-
libiconv-1.16w64gcc81/include -DDLL_EXPORT -DPIC -I. -I./
-IC:/MING64~1/projects/POSTGR~1/rel/PG15W6~1/include/server
-IC:/MING64~1/projects/POSTGR~1/rel/PG15W6~1/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
-I/projects/libxml/rel-libxml2-2.9.9w64gcc81/include/libxml2
-IC:/ming64gcc81/projects/lz4/rel-lz4-1.9.3w64gcc81/include
-IC:/MING64~1/projects/POSTGR~1/rel/PG15W6~1/include/server/port/win32
-DWIN32_STACK_RLIMIT=4194304 -c -o postgis_module.o postgis_module.c
/bin/sh: line 1: cc: command not found
}}}
Looking at the postgis/Makefile generated, it seems to have
{{{
CUSTOM_CC := $(CC)
}}}
Which I am assuming is the culprit. By comparison, the generated
liblwgeom/Makefile has
{{{
CC = x86_64-w64-mingw32-gcc
}}}
trying to change Makefile.in to below gets me back to the original error
{{{
CUSTOM_CC := @CC@
}}}
FWIW I think @strk was saying we should get rid of PGXS as it's causing
more issues than helping.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5121#comment:3>
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