toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_43744
PATCH 1/2 toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_43744
gnuradio package fails to build for the SH4 architecture with optimization enabled with gcc 9.3.0:
http://autobuild.buildroot.net/results/1db/1db6c59c98e3c09fa13277076ee2fbe7967f1f6b/ http://autobuild.buildroot.net/results/f57/f5742e7fb6e8142bcdb53b7f4f5e9c1bea3558cd/
and I've tested it shows up with gcc 10.x and 11.x
I've commented it and supplied preprocessed file to reopen it since it was closed with gcc 4.x:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43744
--- toolchain/Config.in | 10 ++++++++++ 1 file changed, 10 insertions(+)
toolchain/Config.in +10 -0
@@ -109,6 +109,16 @@ config BR2_TOOLCHAIN_SUPPORTS_VARIADIC_MI_THUNK depends on !BR2_or1k depends on !BR2_xtensa +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43744. This bug no +# reappeared on gcc 9.x and is still not fixed on gcc 11.x +config BR2_TOOLCHAIN_HAS_GCC_BUG_43744 + bool + default y if BR2_sh4 + depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_8 || \ + BR2_TOOLCHAIN_GCC_AT_LEAST_9 || \ + BR2_TOOLCHAIN_GCC_AT_LEAST_10 || \ + BR2_TOOLCHAIN_GCC_AT_LEAST_11 + # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63261. This bug no # longer exists in gcc 8.x. config BR2_TOOLCHAIN_HAS_GCC_BUG_63261
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 package/gnuradio: disable package if affected from gcc bug 43744
This package is affected by gcc bug 43744 and I have not found a work around for it(i.e. the common -O0 we use or other), so let's disable it if gcc has such bug.
Fixes:
http://autobuild.buildroot.net/results/1db/1db6c59c98e3c09fa13277076ee2fbe7967f1f6b/
--- package/gnuradio/Config.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
package/gnuradio/Config.in +3 -1
@@ -4,7 +4,8 @@ comment "gnuradio needs a toolchain w/ C++, NPTL, wchar, dynamic library" depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \ !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS -comment "gnuradio needs a toolchain not affected by GCC bug 64735" +comment "gnuradio needs a toolchain not affected by GCC bug 43744 and 64735" + depends on BR2_TOOLCHAIN_HAS_GCC_BUG_43744 depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735 config BR2_PACKAGE_GNURADIO
@@ -15,6 +16,7 @@ config BR2_PACKAGE_GNURADIO depends on BR2_USE_MMU # use fork() depends on BR2_USE_WCHAR # boost depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS # boost-atomic, boost-filesystem + depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_43744 depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # boost-thread select BR2_PACKAGE_BOOST select BR2_PACKAGE_BOOST_ATOMIC
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 2/2] package/gnuradio: disable package if affected from gcc bug 43744
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Giulio" == Giulio Benetti <[email protected]> writes:
This package is affected by gcc bug 43744 and I have not found a work around for it(i.e. the common -O0 we use or other), so let's disable it if gcc has such bug.
Fixes:
http://autobuild.buildroot.net/results/1db/1db6c59c98e3c09fa13277076ee2fbe7967f1f6b/Signed-off-by Giulio Benetti <[email protected]>
What about the reverse dependencies, E.G. gqrx?
package/gqrx/Config.in: select BR2_PACKAGE_GNURADIO
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 2/2] package/gnuradio: disable package if affected from gcc bug 43744
Hello Peter,
Quoted 10 lines
Il giorno 10 ott 2021, alle ore 10:23, Peter Korsgaard <[email protected]> ha scritto:
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
"Giulio" == Giulio Benetti <[email protected]> writes:
This package is affected by gcc bug 43744 and I have not found a work around for it(i.e. the common -O0 we use or other), so let's disable it if gcc has such bug.
Quoted 6 lines
Quoted 4 lines
Fixes:
http://autobuild.buildroot.net/results/1db/1db6c59c98e3c09fa13277076ee2fbe7967f1f6b/Signed-off-by Giulio Benetti <[email protected]>What about the reverse dependencies, E.G. gqrx?
Sorry, every time I forget about reverse dependency. Tonight I’m going to fix it
Best regards
Giulio
Quoted 9 lines
package/gqrx/Config.in: select
BR2_PACKAGE_GNURADIOSignature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 2/2] package/gnuradio: disable package if affected from gcc bug 43744
In reply to Peter KorsgaardQuoted 3 lines · On Sun, 10 Oct 2021 10:23:07 +0200 Peter Korsgaard <[email protected]> wrote:
What about the reverse dependencies, E.G. gqrx?
package/gqrx/Config.in: select
BR2_PACKAGE_GNURADIO
Gaah. I've stopped reviewing/merging Buildroot patches for too long, and I've forgotten even the most basic checks... I'll try to be more careful.
Giulio: I suppose you will provide a follow-up patch that addresses the reverse dependencies?
Best regards,
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
Re: [Buildroot] [PATCH 2/2] package/gnuradio: disable package if affected from gcc bug 43744
Quoted 8 lines
Il giorno 10 ott 2021, alle ore 16:03, Thomas Petazzoni <[email protected]> ha scritto:
On Sun, 10 Oct 2021 10:23:07 +0200
Quoted 2 lines · Peter Korsgaard
What about the reverse dependencies, E.G. gqrx?
Quoted 8 lines
Quoted 1 line
package/gqrx/Config.in: select
BR2_PACKAGE_GNURADIOGaah. I've stopped reviewing/merging Buildroot patches for too long, and I've forgotten even the most basic checks... I'll try to be more careful.
Giulio: I suppose you will provide a follow-up patch that addresses the reverse dependencies?
Sure, tonight I’m going to send a patch. Every time I forget the reverse dependencies :-/
Giulio
Quoted 8 lines
Best regards,
Thomas
Signature · 3 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
Re: [Buildroot] [PATCH 2/2] package/gnuradio: disable package if affected from gcc bug 43744
In reply to Peter KorsgaardHi Peter, Thomas, All,
Quoted 6 lines · Peter Korsgaard
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Giulio" == Giulio Benetti <[email protected]> writes:
This package is affected by gcc bug 43744 and I have not found a work around for it(i.e. the common -O0 we use or other), so let's disable it if gcc has such bug.
Quoted 8 lines
Quoted 4 lines
Fixes:
http://autobuild.buildroot.net/results/1db/1db6c59c98e3c09fa13277076ee2fbe7967f1f6b/Signed-off-by Giulio Benetti <[email protected]>What about the reverse dependencies, E.G. gqrx?
package/gqrx/Config.in: select
BR2_PACKAGE_GNURADIO
Here is the patch fixing reverse dependency for gnuradio:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
Best regards
Signature · 6 lines
Giulio Benetti Benetti Engineering sas _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 5 lines · On Sat, 9 Oct 2021 00:46:04 +0200 Giulio Benetti…
gnuradio package fails to build for the SH4 architecture with optimization enabled with gcc 9.3.0:
http://autobuild.buildroot.net/results/1db/1db6c59c98e3c09fa13277076ee2fbe7967f1f6b/ http://autobuild.buildroot.net/results/f57/f5742e7fb6e8142bcdb53b7f4f5e9c1bea3558cd/
and I've tested it shows up with gcc 10.x and 11.x
Quoted 8 lines
I've commented it and supplied preprocessed file to reopen it since it was closed with gcc 4.x:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43744Signed-off-by Giulio Benetti <[email protected]>--- toolchain/Config.in | 10 ++++++++++ 1 file changed, 10 insertions(+)
Series applied to master, 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