From patchwork Fri Aug 19 16:29:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zakharov Vlad X-Patchwork-Id: 660918 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sG7hx2yslz9sRB for ; Sat, 20 Aug 2016 02:29:37 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 98A573177A; Fri, 19 Aug 2016 16:29:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 417JLqHd5O-z; Fri, 19 Aug 2016 16:29:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id E4488317A2; Fri, 19 Aug 2016 16:29:31 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 513221C153A for ; Fri, 19 Aug 2016 16:29:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4EF168B457 for ; Fri, 19 Aug 2016 16:29:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TFdaKjq5JEy6 for ; Fri, 19 Aug 2016 16:29:29 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from smtprelay.synopsys.com (smtprelay.synopsys.com [198.182.47.9]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2A9758B795 for ; Fri, 19 Aug 2016 16:29:29 +0000 (UTC) Received: from dc8secmta1.synopsys.com (dc8secmta1.synopsys.com [10.13.218.200]) by smtprelay.synopsys.com (Postfix) with ESMTP id 4947724E0373; Fri, 19 Aug 2016 09:29:28 -0700 (PDT) Received: from dc8secmta1.internal.synopsys.com (dc8secmta1.internal.synopsys.com [127.0.0.1]) by dc8secmta1.internal.synopsys.com (Service) with ESMTP id 3BC9827113; Fri, 19 Aug 2016 09:29:28 -0700 (PDT) Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by dc8secmta1.internal.synopsys.com (Service) with ESMTP id 1433E27102; Fri, 19 Aug 2016 09:29:28 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id F3ECB73A; Fri, 19 Aug 2016 09:29:27 -0700 (PDT) Received: from ru20arcgnu1.internal.synopsys.com (ru20arcgnu1.internal.synopsys.com [10.121.9.48]) by mailhost.synopsys.com (Postfix) with ESMTP id 5FB0B739; Fri, 19 Aug 2016 09:29:26 -0700 (PDT) From: Vlad Zakharov To: buildroot@busybox.net Date: Fri, 19 Aug 2016 19:29:21 +0300 Message-Id: <1471624161-30283-1-git-send-email-vzakhar@synopsys.com> X-Mailer: git-send-email 2.6.3 Cc: Thomas Petazzoni , Vlad Zakharov , Alexey Brodkin , Eugeniy Paltsev Subject: [Buildroot] [PATCH] binutils: disable warning flags to prevent build failures X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" binutils-arc-2016.09-eng008 build fails sometimes. This happens due to the following issue: binutils configure script has CC variable that stores compiler for target and CC_FOR_BUILD variable that stores compiler for host. WARN_FLAGS are verified by the script to be compatible only with CC compiler but not with CC_FOR_BUILD compiler. Despite this WARN_FLAGS are passed to both CC and CC_FOR_BUILD compilers. This leads to unevident errors when cross-compiling. More information you can find in the binutils mailing list: https://sourceware.org/ml/binutils/2016-08/msg00117.html We are going to write a patch for bunutils that fixes the initial issue. Current patch contains temporary workaround. It should be deleted after real fix. Fixes: http://autobuild.buildroot.net/results/004/00455b6a8324920ad843d90ce0413451522691a8// Signed-off-by: Vlad Zakharov --- package/binutils/binutils.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/binutils/binutils.mk b/package/binutils/binutils.mk index aeabf75..2936eb5 100644 --- a/package/binutils/binutils.mk +++ b/package/binutils/binutils.mk @@ -58,6 +58,7 @@ BINUTILS_CONF_OPTS = \ --host=$(GNU_TARGET_NAME) \ --target=$(GNU_TARGET_NAME) \ --enable-install-libiberty \ + --enable-build-warnings=no \ $(BINUTILS_DISABLE_GDB_CONF_OPTS) \ $(BINUTILS_EXTRA_CONFIG_OPTIONS)