Skip to content
Snippets Groups Projects
Verified Commit c9520a88 authored by Christian Ehrhardt's avatar Christian Ehrhardt
Browse files

server/postgresql.mk: avoid gcc 11 ICE on armhf and armel

Currently the builds of 14.1-3 are failing [1][2]:

during RTL pass: mach
/<<PKGBUILDDIR>>/build/../src/backend/storage/buffer/bufmgr.c: In function ‘ReadBuffer_common’:
/<<PKGBUILDDIR>>/build/../src/backend/storage/buffer/bufmgr.c:1085:1: internal compiler error: in create_fix_barrier, at config/arm/arm.c:17891
 1085 | }
      | ^
0x106b1cf internal_error(char const*, ...)
	???:0
0x19f163 fancy_abort(char const*, int, char const*)
	???:0

This is due to a bug in gcc-11.2 [3] and will eventually be resolved
there. But for now to get builds going again we have to work around it.

This is the submission of a similar (before centralized d/rules) fix
that was uploaded to Ubuntu [4] postgresql-14.

[1]: https://buildd.debian.org/status/fetch.php?pkg=postgresql-14&arch=armhf&ver=14.1-3&stamp=1638530270&raw=0
[2]: https://buildd.debian.org/status/fetch.php?pkg=postgresql-14&arch=armel&ver=14.1-3&stamp=1638530561&raw=0
[3]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103395
[4]: https://launchpad.net/ubuntu/+source/postgresql-14/1
parent ae60bc0a
No related branches found
No related tags found
1 merge request!15server/postgresql.mk: avoid gcc 11 ICE on armhf and armel
......@@ -99,6 +99,12 @@ ifeq ($(DEB_HOST_ARCH),amd64)
CFLAGS += -fno-omit-frame-pointer
endif
# Work around an ICE bug in GCC 11.2.0, see
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103395
ifneq ($(findstring $(DEB_HOST_ARCH), armel armhf),)
CFLAGS+= -DSTAP_SDT_ARG_CONSTRAINT=g
endif
ifeq ($(DEB_HOST_ARCH_OS),linux)
CONFIGURE_FLAGS += --with-systemd
CONFIGURE_FLAGS += --with-selinux
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment