Skip to contentSkip to conversation

toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_111001

PATCH In review Waldemar Brodkorb 2 participants 2 messages Aug 12, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_111001

e2fsprogs package fails to build for the SH4 architecture due to a gcc 13.2.0 bug that leads to:
during RTL pass: sh_treg_combine2
rw_bitmaps.c: In function read_bitmaps_range_start:
internal compiler error: Aborted

Let's add gcc bug to avoid to deal with architectures in packages when a gcc bug arises. Let's instead deal directly with gcc bug number.

It's been reported upstream:
https://gcc.gnu.org/bugzilla//show_bug.cgi?id=111001

No need to backport as gcc 13.20 was introduced recently in buildroot.

---
 toolchain/Config.in | 11 +++++++++++
 1 file changed, 11 insertions(+)
toolchain/Config.in +11 -0
index a37933bc12..da6bf5f4c8 100644
@@ -257,6 +257,17 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_110934
 	bool
 	default y if BR2_m68k
 
+# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111001
+# ICE: on SH4: during RTL pass: sh_treg_combine2
+# This bug exist in gcc = 13.2.0
+config BR2_TOOLCHAIN_HAS_GCC_BUG_111001
+	bool
+	default y if BR2_sh
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_13
+	depends on BR2_OPTIMIZE_1 || \
+		   BR2_OPTIMIZE_2 || \
+		   BR2_OPTIMIZE_3
+
 config BR2_TOOLCHAIN_HAS_NATIVE_RPC
 	bool
 
Signature · 6 lines
2.39.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 13 lines · On Sat, 12 Aug 2023 13:44:51 +0200 Waldemar Brodkorb <[email protected]> wrote:

e2fsprogs package fails to build for the SH4 architecture due to a gcc 13.2.0 bug that leads to:
during RTL pass: sh_treg_combine2
rw_bitmaps.c: In function read_bitmaps_range_start:
internal compiler error: Aborted

Let's add gcc bug to avoid to deal with architectures in packages when a gcc bug arises. Let's instead deal directly with gcc bug number.

It's been reported upstream:
https://gcc.gnu.org/bugzilla//show_bug.cgi?id=111001

Quoted 7 lines

No need to backport as gcc 13.20 was introduced recently in buildroot.

---
 toolchain/Config.in | 11 +++++++++++
 1 file changed, 11 insertions(+)

Both applied, thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot