package/belle-sip: work around bug 99410
cover package/belle-sip: work around bug 99410
This pachset introduces gcc bug 99410 and uses it work around package belle-sip.
Giulio Benetti (2):
toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_99410 package/belle-sip: fix build failure due to gcc bug 99410
package/belle-sip/belle-sip.mk | 8 ++++++++ toolchain/Config.in | 7 +++++++ 2 files changed, 15 insertions(+)
Signature · 1 line
2.25.1
PATCH 1/2 toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_99410
git package fails to build for the Nios2 architecture with optimization enabled with gcc < 8.x:
http://autobuild.buildroot.net/results/71f26fd81db8e9b19b3f18f3f3cefd9c768f094f/
It's been reported upstream:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410
--- toolchain/Config.in | 7 +++++++ 1 file changed, 7 insertions(+)
toolchain/Config.in +7 -0
@@ -166,6 +166,13 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_93847 bool default y if BR2_nios2 && !BR2_TOOLCHAIN_GCC_AT_LEAST_9 +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410 +# Error: branch offset out of range on Nios II. This bug +# no longer exists in gcc >= 8.x. +config BR2_TOOLCHAIN_HAS_GCC_BUG_99140 + bool + default y if BR2_nios2 && !BR2_TOOLCHAIN_GCC_AT_LEAST_8 + config BR2_TOOLCHAIN_HAS_NATIVE_RPC bool
Signature · 1 line
2.25.1
PATCH 1/2 toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_99410
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Giulio" == Giulio Benetti <[email protected]> writes:
git package fails to build for the Nios2 architecture with optimization
s/git/belle-sip/
Committed with that fixed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 2/2 package/belle-sip: fix build failure due to gcc bug 99410
In reply to Giulio BenettiThe belle-sip package exhibits gcc bug 99410 when built for the Nios2 architecture with optimization enabled, which causes a build failure.
As done for other packages in Buildroot work around this gcc bug by setting optimization to -O0 if BR2_TOOLCHAIN_HAS_GCC_BUG_99410=y.
Fixes:
http://autobuild.buildroot.net/results/71f26fd81db8e9b19b3f18f3f3cefd9c768f094f/
--- package/belle-sip/belle-sip.mk | 8 ++++++++ 1 file changed, 8 insertions(+)
package/belle-sip/belle-sip.mk +8 -0
@@ -32,4 +32,12 @@ else ifeq ($(BR2_SHARED_LIBS),y) BELLE_SIP_CONF_OPTS += -DENABLE_SHARED=ON -DENABLE_STATIC=OFF endif +BELLE_SIP_CFLAGS = $(TARGET_CFLAGS) + +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_99140),y) +BELLE_SIP_CFLAGS += -O0 +endif + +BELLE_SIP_CONF_OPTS += -DCMAKE_C_FLAGS="$(BELLE_SIP_CFLAGS)" + $(eval $(cmake-package))
Signature · 1 line
2.25.1
PATCH 2/2 package/belle-sip: fix build failure due to gcc bug 99410
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Giulio" == Giulio Benetti <[email protected]> writes:
The belle-sip package exhibits gcc bug 99410 when built for the Nios2 architecture with optimization enabled, which causes a build failure.
Quoted 7 lines
As done for other packages in Buildroot work around this gcc bug by setting optimization to -O0 if BR2_TOOLCHAIN_HAS_GCC_BUG_99410=y.
Fixes:
http://autobuild.buildroot.net/results/71f26fd81db8e9b19b3f18f3f3cefd9c768f094f/Signed-off-by Giulio Benetti <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
cover package/belle-sip: work around bug 99410
In reply to Giulio BenettiSorry but this patchset is not correct, that is not a gcc bug but a binutils bug, specifically:
https://sourceware.org/bugzilla/show_bug.cgi?id=27243
So going to rename and send a v2 patchset.
Best regards
Signature · 2 lines
Giulio Benetti Benetti Engineering sas
Quoted 11 lines · Giulio Benetti
This pachset introduces gcc bug 99410 and uses it work around package belle-sip.
Giulio Benetti (2):
toolchain: introduceBR2_TOOLCHAIN_HAS_GCC_BUG_99410package/belle-sip: fix build failure due to gcc bug 99410package/belle-sip/belle-sip.mk | 8 ++++++++ toolchain/Config.in | 7 +++++++ 2 files changed, 15 insertions(+)
cover package/belle-sip: work around bug 99410
Quoted 5 lines · Giulio Benetti
Sorry but this patchset is not correct, that is not a gcc bug but a binutils bug, specifically:
https://sourceware.org/bugzilla/show_bug.cgi?id=27243So going to rename and send a v2 patchset.
I was too in hurry, this is correct as I've mentioned here:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410
Sorry for the noise
Best regards
Signature · 2 lines
Giulio Benetti Benetti Engineering sas