All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_109809
@ 2024-02-05 17:23 Giulio Benetti
  2024-02-05 17:23 ` [Buildroot] [PATCH 2/2] package/htop: fix build failure due to gcc bug 109809 Giulio Benetti
  0 siblings, 1 reply; 3+ messages in thread
From: Giulio Benetti @ 2024-02-05 17:23 UTC (permalink / raw)
  To: buildroot
  Cc: Romain Naour, Giulio Benetti, Thomas De Schampheleire,
	Thomas Petazzoni

htop package fails to build for the RISCV64 architecture with optimization
enabled with gcc = 13.2.0 and it's still present in gcc = 14.x as reported
upstream:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109809

So let's introduce BR2_TOOLCHAIN_HAS_GCC_BUG_109809 to handle packages
affected by it like htop.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 toolchain/Config.in | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/toolchain/Config.in b/toolchain/Config.in
index 34e0ae2c5f..64084dffe3 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -250,6 +250,14 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_107728
 	depends on BR2_TOOLCHAIN_USES_GLIBC
 	depends on BR2_OPTIMIZE_0
 
+# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109809
+# ICE: in dwarf2out_frame_debug_cfa_offset
+# Shows up starting from Gcc 13.2.0 and still has to be fixed
+config BR2_TOOLCHAIN_HAS_GCC_BUG_109809
+	bool
+	default y if BR2_RISCV_64
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_13
+
 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934
 # ICE: on M68K: in change_address_1, at emit-rtl.cc:2287
 # This bug exists in gcc = 12.3.0 and gcc = 13.2.0
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-08-06 20:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-05 17:23 [Buildroot] [PATCH 1/2] toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_109809 Giulio Benetti
2024-02-05 17:23 ` [Buildroot] [PATCH 2/2] package/htop: fix build failure due to gcc bug 109809 Giulio Benetti
2024-08-06 20:28   ` Thomas Petazzoni via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.