* [Buildroot] [PATCH 1/2] toolchain/Config.in: update gcc bug 101915 comment
@ 2022-08-06 22:22 Giulio Benetti
2022-08-06 22:22 ` [Buildroot] [PATCH 2/2] package/syslog-ng: work around gcc bug 101915 Giulio Benetti
2022-08-07 12:58 ` [Buildroot] [PATCH 1/2] toolchain/Config.in: update gcc bug 101915 comment Thomas Petazzoni via buildroot
0 siblings, 2 replies; 4+ messages in thread
From: Giulio Benetti @ 2022-08-06 22:22 UTC (permalink / raw)
To: buildroot
Cc: Thomas Petazzoni, Romain Naour, Chris Packham, Giulio Benetti,
Thomas De Schampheleire
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
toolchain/Config.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/toolchain/Config.in b/toolchain/Config.in
index 9612bdf8b2..fbc2f28553 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -200,7 +200,7 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_101737
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101915
# ICE: in extract_insn, at recog.c:2294 on microblaze.
-# This bug still exists in gcc = 11.1.0
+# This bug still exists in gcc = 12.1.0
config BR2_TOOLCHAIN_HAS_GCC_BUG_101915
bool
default y if BR2_microblaze
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 2/2] package/syslog-ng: work around gcc bug 101915
2022-08-06 22:22 [Buildroot] [PATCH 1/2] toolchain/Config.in: update gcc bug 101915 comment Giulio Benetti
@ 2022-08-06 22:22 ` Giulio Benetti
2022-09-14 21:23 ` Peter Korsgaard
2022-08-07 12:58 ` [Buildroot] [PATCH 1/2] toolchain/Config.in: update gcc bug 101915 comment Thomas Petazzoni via buildroot
1 sibling, 1 reply; 4+ messages in thread
From: Giulio Benetti @ 2022-08-06 22:22 UTC (permalink / raw)
To: buildroot
Cc: Thomas Petazzoni, Romain Naour, Chris Packham, Giulio Benetti,
Thomas De Schampheleire
With Microblaze Gcc version 12.1.0 the build fails due to gcc bug
101915: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101915. The bug
show up when building syslog-ng with optimization but not when building
with -O0. To work around this, if BR2_TOOLCHAIN_HAS_GCC_BUG_101915=y,
we force using -O0.
Fixes:
http://autobuild.buildroot.net/results/b57/b57d51ed320a8e1bbfcf8d44875c113d868f82ee/
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
package/syslog-ng/syslog-ng.mk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/package/syslog-ng/syslog-ng.mk b/package/syslog-ng/syslog-ng.mk
index 6cad6a5ecd..64b3b24498 100644
--- a/package/syslog-ng/syslog-ng.mk
+++ b/package/syslog-ng/syslog-ng.mk
@@ -17,6 +17,13 @@ SYSLOG_NG_DEPENDENCIES = host-bison host-flex host-pkgconf \
SYSLOG_NG_AUTORECONF = YES
SYSLOG_NG_CONF_OPTS = --disable-manpages --localstatedir=/var/run \
--disable-java --disable-java-modules --disable-mongodb
+SYSLOG_NG_CFLAGS = $(TARGET_CFLAGS)
+
+ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_101915),y)
+SYSLOG_NG_CFLAGS += -O0
+endif
+
+SYSLOG_NG_CONF_ENV = CFLAGS="$(SYSLOG_NG_CFLAGS)"
ifeq ($(BR2_PACKAGE_GEOIP),y)
SYSLOG_NG_DEPENDENCIES += geoip
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/2] toolchain/Config.in: update gcc bug 101915 comment
2022-08-06 22:22 [Buildroot] [PATCH 1/2] toolchain/Config.in: update gcc bug 101915 comment Giulio Benetti
2022-08-06 22:22 ` [Buildroot] [PATCH 2/2] package/syslog-ng: work around gcc bug 101915 Giulio Benetti
@ 2022-08-07 12:58 ` Thomas Petazzoni via buildroot
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-08-07 12:58 UTC (permalink / raw)
To: Giulio Benetti
Cc: Romain Naour, Chris Packham, Thomas De Schampheleire, buildroot
On Sun, 7 Aug 2022 00:22:01 +0200
Giulio Benetti <giulio.benetti@benettiengineering.com> wrote:
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
> ---
> toolchain/Config.in | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Both applied, thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-09-14 21:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-06 22:22 [Buildroot] [PATCH 1/2] toolchain/Config.in: update gcc bug 101915 comment Giulio Benetti
2022-08-06 22:22 ` [Buildroot] [PATCH 2/2] package/syslog-ng: work around gcc bug 101915 Giulio Benetti
2022-09-14 21:23 ` Peter Korsgaard
2022-08-07 12:58 ` [Buildroot] [PATCH 1/2] toolchain/Config.in: update gcc bug 101915 comment 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.