[Buildroot] [git commit] package/belle-sip: fix build failure due to gcc bug 99410

Peter Korsgaard peter at korsgaard.com
Sat Mar 6 15:46:46 UTC 2021

commit: https://git.buildroot.net/buildroot/commit/?id=bf89616368ce8eb3212aea5212145e9e4ed8c0cd
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

The 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.


Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
 package/belle-sip/belle-sip.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/belle-sip/belle-sip.mk b/package/belle-sip/belle-sip.mk
index b5169be488..23b60e51f5 100644
--- a/package/belle-sip/belle-sip.mk
+++ b/package/belle-sip/belle-sip.mk
@@ -32,4 +32,12 @@ else ifeq ($(BR2_SHARED_LIBS),y)
+ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_99140),y)
 $(eval $(cmake-package))

More information about the buildroot mailing list