From patchwork Fri Mar 5 15:15:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1447972 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=RaM6a6Je; dkim-atps=neutral Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DsWhW0Crfz9sW1 for ; Sat, 6 Mar 2021 02:23:07 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 724358455D; Fri, 5 Mar 2021 15:23:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aS__ayhzI6qG; Fri, 5 Mar 2021 15:23:04 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 852478456C; Fri, 5 Mar 2021 15:23:03 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 5F27A1BF285 for ; Fri, 5 Mar 2021 15:22:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 4C46842FB8 for ; Fri, 5 Mar 2021 15:22:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=aruba.it Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YklyqqDuI6UE for ; Fri, 5 Mar 2021 15:22:35 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from smtpcmd0986.aruba.it (smtpcmd0986.aruba.it [62.149.156.86]) by smtp2.osuosl.org (Postfix) with ESMTP id EECDF42FC6 for ; Fri, 5 Mar 2021 15:22:34 +0000 (UTC) Received: from ubuntu.localdomain ([146.241.168.111]) by Aruba Outgoing Smtp with ESMTPSA id ICAsluxQXppTXICAulWhBJ; Fri, 05 Mar 2021 16:15:33 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1614957333; bh=7JruU3raZmKgTAJnqlzotKTtYuNrfdN9vrSSh0OiucI=; h=From:To:Subject:Date:MIME-Version; b=RaM6a6Je64k55EgPLL0IomqGTc344qZNDm3POY5S55TvP6+jPO4lEkXMjf8avhTFR uLQHizkkEhs15D1p8KUgbrXa8XOdSgsxeDztPkT8pWWISkPXKySDDYS8t2u5n7guGj LcUGQ+m1bMTwlVDlf8XDmrTipQ++HOMf7I23cAVGig2xvEGVL2wcKI8GnwhZM8KWic qR7j2/Vpflye/zAVJNeiWxCfSQ2RPcQlzwXpS6j7TTWk9zUzGv5W9Oj4dht/ugWpft 6tgbh8VdvRdZH11bHvb3KQ4x2/Lj85mBqRGzZTU8XPimkKzHzLPRcCR/0/yD6k7RI+ PL5ySeT00UEzA== From: Giulio Benetti To: buildroot@buildroot.org Date: Fri, 5 Mar 2021 16:15:29 +0100 Message-Id: <20210305151529.3477575-3-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210305151529.3477575-1-giulio.benetti@benettiengineering.com> References: <20210305151529.3477575-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfLtOaG2yoOA3Ecud3e9sO4tRT6QE5nMpS++uhw23ckCm81BufRUlitQQbZA+ZHt918zipbUxJLMHUX8amh/jSg9xCykfS8x5foo0QwSzkKJ+P9Pib4O/ QqO/C8gRnfltzLtAheIkzMFYzR8ueHVvJCFsrQ+hDs/1TebHgTIWFICF41PUbUNSh2LnZAbT5F+Xvil4ndq93YNlPYd9UeMOknSORstnfWqQmhoIwRtP+35k HiWPy+03kDbo8qqEdZgj1GetiEaawNHAh0WFK8T66Xr0+0z82vIgE5LE51xN3XXhPpvqeirgUDxZQ3M19VYH18e/+8PIfM60lvYgCViB4g7T/c3b4tlwaiWB bS+K30pt1qhdZaVwE11t/lIhsVaC9fcdoM/Sv6lQn8BZKSvsLYyOh3aRxME+Mp9qfxeM804Vaz5CjgQnPrvrMzMfSYTu3g== Subject: [Buildroot] [PATCH 2/2] package/belle-sip: fix build failure due to gcc bug 99410 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas De Schampheleire , Giulio Benetti , Romain Naour , Fabrice Fontaine , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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. Fixes: http://autobuild.buildroot.net/results/71f26fd81db8e9b19b3f18f3f3cefd9c768f094f/ Signed-off-by: Giulio Benetti --- 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) 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))