toolchain/Config.in: update gcc version for gcc bug 68485
PATCH 1/2 toolchain/Config.in: update gcc version for gcc bug 68485
--- toolchain/Config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
toolchain/Config.in +1 -1
@@ -139,7 +139,7 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_64735 !BR2_TOOLCHAIN_GCC_AT_LEAST_7 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68485. This bug still -# exists in gcc 9.x +# exists in gcc 11.x config BR2_TOOLCHAIN_HAS_GCC_BUG_68485 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/mariadb: work around gcc bug 68485
With Microblaze Gcc version <= 11.x the build fails due to gcc bug 68485:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68485. The bug show up when building mariadb with optimization but not when building with -O0. To work around this, if BR2_TOOLCHAIN_HAS_GCC_BUG_68458=y, we force using -O0.
Fixes:
http://autobuild.buildroot.net/results/9b5/9b5dce4958b602c80140440addb1f072332e53c2/
--- package/mariadb/mariadb.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/mariadb/mariadb.mk +4 -0
@@ -82,6 +82,10 @@ ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) MARIADB_CXXFLAGS += -latomic endif +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y) +MARIADB_CXXFLAGS += -O0 +endif + MARIADB_CONF_OPTS += \ -DCMAKE_CXX_FLAGS="$(MARIADB_CXXFLAGS)" \ -DINSTALL_DOCDIR=share/doc/mariadb-$(MARIADB_VERSION) \
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 2/2] package/mariadb: work around gcc bug 68485
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 <= 11.x the build fails due to gcc bug 68485:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68485. The bug show up when building mariadb with optimization but not when building with -O0. To work around this, if BR2_TOOLCHAIN_HAS_GCC_BUG_68458=y, we force using -O0.
Quoted 4 lines
Fixes:
http://autobuild.buildroot.net/results/9b5/9b5dce4958b602c80140440addb1f072332e53c2/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
toolchain/Config.in config BR2_TOOLCHAIN_HAS_GCC_BUG_64735 · line 142
Quoted 3 lines · On Fri, 29 Jul 2022 14:10:54 +0200 Giulio Benetti…
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68485. This bug still
toolchain/Config.in +1
-1-# exists in gcc 9.x +# exists in gcc 11.x
What about the recently introduced gcc 12.x ? :-)
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 8 lines · Thomas Petazzoni via buildroot
toolchain/Config.in config BR2_TOOLCHAIN_HAS_GCC_BUG_64735 · line 142
Quoted 3 lines · On Fri, 29 Jul 2022 14:10:54 +0200 Giulio Benetti…
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68485. This bug still
toolchain/Config.in +1
-1-# exists in gcc 9.x +# exists in gcc 11.xWhat about the recently introduced gcc 12.x ? :-)
You're right, gcc 12.x is still affected, do you want me to re-send?
Signature · 6 lines
Giulio Benetti Benetti Engineering sas _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 11 lines · On Fri, 29 Jul 2022 14:29:53 +0200 Giulio Benetti…
Quoted 8 lines · Thomas Petazzoni via buildroot
toolchain/Config.in config BR2_TOOLCHAIN_HAS_GCC_BUG_64735 · line 142
Quoted 3 lines · On Fri, 29 Jul 2022 14:10:54 +0200 Giulio Benetti…
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68485. This bug still
toolchain/Config.in +1
-1-# exists in gcc 9.x +# exists in gcc 11.xWhat about the recently introduced gcc 12.x ? :-)
You're right, gcc 12.x is still affected, do you want me to re-send?
Not needed, will fix when applying. Thanks!
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 13 lines · Thomas Petazzoni via buildroot
Quoted 10 lines · On Fri, 29 Jul 2022 14:29:53 +0200 Giulio Benetti…
Quoted 8 lines · Thomas Petazzoni via buildroot
toolchain/Config.in config BR2_TOOLCHAIN_HAS_GCC_BUG_64735 · line 142
Quoted 3 lines · On Fri, 29 Jul 2022 14:10:54 +0200 Giulio Benetti…
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68485. This bug stilltoolchain/Config.in +1
-1-# exists in gcc 9.x +# exists in gcc 11.xWhat about the recently introduced gcc 12.x ? :-)
Quoted 3 lines
Quoted 1 line
You're right, gcc 12.x is still affected, do you want me to re-send?
Not needed, will fix when applying. Thanks!
Perfect, thank you!
Signature · 6 lines
Giulio Benetti Benetti Engineering sas _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 4 lines · On Fri, 29 Jul 2022 14:10:54 +0200 Giulio Benetti…
Signed-off-by Giulio Benetti <[email protected]>--- toolchain/Config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Both applied, but mentioning gcc 12 instead of gcc 11. 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