Skip to content

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

Currently the builds of 14.1-3 are failing on armhf and armel

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 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 Ubuntus postgresql-14.

Merge request reports

Loading