rtklib: disable MIPS16 to work around GCC ICE
authorAlexandru Ardelean <redacted>
Sun, 24 May 2026 13:44:50 +0000 (16:44 +0300)
committerAlexandru Ardelean <redacted>
Mon, 25 May 2026 12:53:20 +0000 (15:53 +0300)
The MIPS variants (mips_24kc, mips_4kec, mipsel_24kc, mipsel_74kc) all
fail to compile preceph.c with an internal compiler error:

  during RTL pass: reload
  src/preceph.c:317:1: internal compiler error:
    in lra_update_fp2sp_elimination, at lra-eliminations.cc:1416

This is a GCC LRA pass bug triggered when compiling with -mips16. Set
PKG_BUILD_FLAGS:=no-mips16 to strip the -mips16 / -minterlink-mips16
flags from CFLAGS for this package, matching the approach already used
by stress-ng for the same class of issue.

Bump PKG_RELEASE since only the build flags change.

Signed-off-by: Alexandru Ardelean <redacted>
utils/rtklib/Makefile

index 0c902553a2f4e70ebde56d116b289b65193a8abd..57d75189f615b4f352e224ca31de90b276db55d7 100644 (file)
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=rtklib
 PKG_VERSION:=2.4.3.34
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://github.com/tomojitakasu/RTKLIB
@@ -19,6 +19,7 @@ PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
 PKG_LICENSE:=BSD-2-Clause
 
 PKG_BUILD_PARALLEL:=0
+PKG_BUILD_FLAGS:=no-mips16
 
 include $(INCLUDE_DIR)/package.mk
 
git clone https://git.99rst.org/PROJECT