From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 1DF6F8D3C for ; Mon, 20 Jun 2016 13:11:26 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 20 Jun 2016 04:11:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,498,1459839600"; d="scan'208";a="991305870" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.97]) ([10.237.220.97]) by fmsmga001.fm.intel.com with ESMTP; 20 Jun 2016 04:11:25 -0700 To: Anupam Kapoor , dev@dpdk.org References: From: Ferruh Yigit Message-ID: <5767CF5C.7080306@intel.com> Date: Mon, 20 Jun 2016 12:11:24 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] build error on git checkout X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2016 11:11:27 -0000 On 6/20/2016 6:53 AM, Anupam Kapoor wrote: > hi, > > while building dpdk from a latest git checkout, i am seeing the following > build errors: > > > ,---- > | == Build lib/librte_eal/linuxapp/kni > | CC [M] > <...>/dpdk-sources/build/build/lib/librte_eal/linuxapp/kni/ixgbe_82599.o > | <...>/dpdk-sources/build/build/lib/librte_eal/linuxapp/kni/ixgbe_82599.c: > In function 'ixgbe_setup_mac_link_82599': > | > <...>/dpdk-sources/build/build/lib/librte_eal/linuxapp/kni/ixgbe_82599.c:870:3: > error: this 'if' clause does not guard... [-Werror=misleading-indentation] > | if (speed & IXGBE_LINK_SPEED_10GB_FULL) > | ^~ > | > <...>/dpdk-sources/build/build/lib/librte_eal/linuxapp/kni/ixgbe_82599.c:873:4: > note: ...this statement, but the latter is misleadingly indented as if it > is guarded by the 'if' > | if ((orig_autoc & IXGBE_AUTOC_KR_SUPP) && > | ^~ > | cc1: all warnings being treated as errors > `---- > > similar error is also seen for > <...>/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_phy.c in > e1000_read_phy_reg_mphy(...) and e1000_write_phy_reg_mphy(...) as well. > > build environment details: > > dpdk-devel% uname -a > Linux dpdk-devel 4.6.2-1-ARCH #1 SMP PREEMPT Wed Jun 8 08:40:59 CEST 2016 > x86_64 GNU/Linux > dpdk-devel% > > dpdk-devel% gcc --version > gcc (GCC) 6.1.1 20160602 > Copyright (C) 2016 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > > Hi Anupam, Thank you for reporting, I confirm the the errors. They are because of gcc-6. Do you have any plan to send a patch for these? Thanks, ferruh