toolchain/Config.in: update gcc bug 101915 comment
PATCH 1/2 toolchain/Config.in: update gcc bug 101915 comment
--- toolchain/Config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
toolchain/Config.in +1 -1
@@ -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
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 package/syslog-ng: work around gcc bug 101915
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/
--- package/syslog-ng/syslog-ng.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/syslog-ng/syslog-ng.mk +7 -0
@@ -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
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 2/2] package/syslog-ng: work around gcc bug 101915
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Giulio" == Giulio Benetti <[email protected]> writes:
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.
Quoted 4 lines
Fixes:
http://autobuild.buildroot.net/results/b57/b57d51ed320a8e1bbfcf8d44875c113d868f82ee/Signed-off-by Giulio Benetti <[email protected]>
Committed to 2022.05.x and 2022.02.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 4 lines · On Sun, 7 Aug 2022 00:22:01 +0200 Giulio Benetti…
Signed-off-by Giulio Benetti <[email protected]>--- toolchain/Config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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