From patchwork Wed Mar 17 15:45:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1454807 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=2605:bc80:3010::137; helo=smtp4.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=bcZDQQ1Q; dkim-atps=neutral Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (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 4F0vn0634Cz9sVt for ; Thu, 18 Mar 2021 02:52:36 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 186AD4EBE8; Wed, 17 Mar 2021 15:52:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CZ0ULUiR0O8E; Wed, 17 Mar 2021 15:52:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 229914EBFB; Wed, 17 Mar 2021 15:52:31 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 3BAB71BF2FB for ; Wed, 17 Mar 2021 15:52:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 29A934EBFB for ; Wed, 17 Mar 2021 15:52:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4jAXgi6jFZg2 for ; Wed, 17 Mar 2021 15:52:27 +0000 (UTC) X-Greylist: delayed 00:07:02 by SQLgrey-1.8.0 Received: from smtpcmd0642.aruba.it (smtpcmd0642.aruba.it [62.149.156.42]) by smtp4.osuosl.org (Postfix) with ESMTP id F100A4EBE8 for ; Wed, 17 Mar 2021 15:52:26 +0000 (UTC) Received: from ubuntu.localdomain ([146.241.168.111]) by Aruba Outgoing Smtp with ESMTPSA id MYMLls1TXZCSXMYMLlDlsq; Wed, 17 Mar 2021 16:45:22 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1615995922; bh=2YcOPthx1erKMM+CuIClQuRzsbymWmXYXgmFlQw4CRE=; h=From:To:Subject:Date:MIME-Version; b=bcZDQQ1QW0wZGHvQ5oNEpgJHE4gRWRTmHUTJ4ZXn1WN6tctwWweW4igO7gplbqvPb 8lyt5FjQNpvAexHpd/PhJjBSHlnWtWaSVEEekzwjytgwqsxTTfdD5pJkzQTcnHtR+i Ixx66P2p1Qelm0oJxcfuIVNDPBF3s6dE9LvAkRVJeF0UaX1vhxFM5KgGmWGR34hyAp DXRUYySeKBjeNXr2PiMb9aQ9BBi16eXjtJe+Gf70+lGMVlWuZlWo+RDAS70NZo6Gt8 rTUfW7yu35Z1sJpEQH6vRgpikj6jeNugGGADbKBtEUKQy8DEBPfBcDeT0NZ0sp3/Zr vDsTkOQ7Vb0lg== From: Giulio Benetti To: buildroot@buildroot.org Date: Wed, 17 Mar 2021 16:45:20 +0100 Message-Id: <20210317154520.1613272-1-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210314223616.5bfcc62f@windsurf.home> References: <20210314223616.5bfcc62f@windsurf.home> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfDA+eJLmSqbCoo7MW3BtViz322WZ0ZIC7A/p1g8JdCqp+9qSiaJdimk64YO82qilznyHCDMhGF4t+uUywkSJOUhCbXjqFEq0CImTA5LS7eiYMSMGPW4q jUagYa7Qg9uNduOLJEbe3zCaOOzVvad4yfHrSV5J2GTlhHriCnL+770tcrMj9QTAE6OQ0dcqJ0fI6uFhUecsKXjnc/9Do6WnPAlNtZeFR+NI/5l17DoX19j9 3Qx6rbxFBSI2dXG9brTPyC/VyjKICAflXsa1dvs0v6NoDwaT6zeUq8Bdj8timu3d Subject: [Buildroot] [PATCH] package/zeromq: fix build failure due to binutils bug 21464 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: Giulio Benetti , Asaf Kahlon Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The zeromq package exhibits binutils bug 21464 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_BINUTILS_BUG_21464=y. Fixes: http://autobuild.buildroot.net/results/ce351e0e97c2cacc17d4718d39941548c7558559 Signed-off-by: Giulio Benetti --- package/zeromq/zeromq.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/package/zeromq/zeromq.mk b/package/zeromq/zeromq.mk index 182699403c..135b07b6c6 100644 --- a/package/zeromq/zeromq.mk +++ b/package/zeromq/zeromq.mk @@ -23,12 +23,20 @@ ZEROMQ_CONF_ENV = libzmq_cv_sock_cloexec=yes \ libzmq_cv_tcp_keepidle=yes \ libzmq_cv_tcp_keepintvl=yes +ZEROMQ_CXXFLAGS = $(TARGET_CXXFLAGS) + # Internal error, aborting at dwarf2cfi.c:2752 in connect_traces # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58864 ifeq ($(BR2_m68k_cf),y) -ZEROMQ_CONF_OPTS += CXXFLAGS="$(TARGET_CXXFLAGS) -fno-defer-pop" +ZEROMQ_CXXFLAGS += -fno-defer-pop +endif + +ifeq ($(BR2_TOOLCHAIN_HAS_BINUTILS_BUG_21464),y) +ZEROMQ_CXXFLAGS += -O0 endif +ZEROMQ_CONF_OPTS += CXXFLAGS="$(ZEROMQ_CXXFLAGS)" + # Only tools/curve_keygen.c needs this, but it doesn't hurt to pass it # for the rest of the build as well (which automatically includes stdc++). ifeq ($(BR2_STATIC_LIBS),y)