From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id A07A84A65 for ; Mon, 7 Jul 2014 10:12:55 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 07 Jul 2014 01:13:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,616,1400050800"; d="scan'208";a="558207878" Received: from fmsmsx104.amr.corp.intel.com ([10.19.9.35]) by fmsmga001.fm.intel.com with ESMTP; 07 Jul 2014 01:13:15 -0700 Received: from fmsmsx117.amr.corp.intel.com (10.18.116.17) by FMSMSX104.amr.corp.intel.com (10.19.9.35) with Microsoft SMTP Server (TLS) id 14.3.123.3; Mon, 7 Jul 2014 01:13:15 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx117.amr.corp.intel.com (10.18.116.17) with Microsoft SMTP Server (TLS) id 14.3.123.3; Mon, 7 Jul 2014 01:13:15 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.210]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.122]) with mapi id 14.03.0123.003; Mon, 7 Jul 2014 16:13:13 +0800 From: "Cao, Waterman" To: "Wiles, Roger Keith (Wind River)" , "" Thread-Topic: [dpdk-dev] Build failure on Ubuntu 14.04 Thread-Index: AQHPmGWa9Ih4FyE/AUm0ClG5mA5rDJuSEDyAgAAF3oCAAi7k0A== Date: Mon, 7 Jul 2014 08:13:12 +0000 Message-ID: References: <2C4D5C7B-3FC1-4C90-BEB1-30790FC6E3DE@windriver.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] Build failure on Ubuntu 14.04 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, 07 Jul 2014 08:12:56 -0000 Hi Keith, we built the newest dpdk code on my machine, it seems OK, please see UB14.04 info in my computer.=20 System: Ubuntu14.04 Kernel: 3.13.0-24 X86_64 Compiler: GCC 4.8.2 x86_64 Can you let me know which kernel version you use? Thanks Waterman=20 ----Original Message----- >From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Wiles, Roger Keith >Sent: Saturday, July 5, 2014 11:50 PM >To: >Subject: Re: [dpdk-dev] Build failure on Ubuntu 14.04 > >Made sure I was up to date with Ubuntu patches, but still had the same pro= blem. > >I modified the kcompat.h file to allow the compile to continue, not sure t= his is a fix per say. > >dpdk.org/lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h around line 3853 > >##### Changed the next line from (3,14,0) to (3,13,0) #if ( LINUX_VERSION_= CODE < KERNEL_VERSION(3,13,0) ) #if (!(RHEL_RELEASE_CODE && RHEL_RELEASE_CO= DE >=3D RHEL_RELEASE_VERSION(7,0))) #ifdef NETIF_F_RXHASH #define PKT_HASH_= TYPE_L3 0 static inline void skb_set_hash(struct sk_buff *skb, __u32 hash, = __always_unused int type) { > skb->rxhash =3D hash; >} >#endif /* NETI F_F_RXHASH */ >#endif /* < RHEL7 */ >#endif /* < 3.14.0 */ > >Keith Wiles, Principal Technologist with CTO office, Wind River mobile 972= -213-5533 > >[Powering 30 Years of Innovation] > >On Jul 5, 2014, at 10:28 AM, Wiles, Roger Keith > wrote: > >Forgot the uname -a: > >Linux keithw-W2600CR 3.13.0-30-generic #54-Ubuntu SMP Mon Jun 9 22:45:01 U= TC 2014 x86_64 x86_64 x86_64 GNU/Linux > >Keith Wiles, Principal Technologist with CTO office, Wind River mobile 972= -213-5533 > >[Powering 30 Years of Innovation] > >On Jul 5, 2014, at 10:27 AM, Wiles, Roger Keith > wrote= : > >Hi All, > >I got a build failure on : > >[10:20][keithw@keithw-W2600CR:umf(dev)]$ lsb_release -a No LSB modules are= available. >Distributor ID: Ubuntu >Description: Ubuntu 14.04 LTS >Release: 14.04 >Codename: trusty > >Looks like the skb_set_hash() function changed from: > >static inline void >skb_set_hash(struct sk_buff *skb, __u32 hash, __always_unused int type) { > skb->rxhash =3D hash; >} > >To: > >static inline void >skb_set_hash(struct sk_buff *skb, __u32 hash, enum pkt_hash_types type) { > skb->l4_rxhash =3D (type =3D=3D PKT_HASH_TYPE_L4); > skb->rxhash =3D hash; >} > >Compile line: 'make install T=3Dx86_64-native-linuxapp-gcc' >... >CC [M] /home/keithw/projects/dpdk/dpdk.org/x86_64-native-linuxapp-gcc/bui= ld/lib/librte_eal/linuxapp/kni/e1000_82575.o >In file included from /home/keithw/projects/dpdk/dpdk.org/lib/librte_eal/l= inuxapp/kni/ethtool/igb/e1000_osdep.h:41:0, > from /home/keithw/projects/dpdk/dpdk.org/lib/librte_eal/lin= uxapp/kni/ethtool/igb/e1000_hw.h:31, > from /home/keithw/projects/dpdk/dpdk.org/lib/librte_eal/lin= uxapp/kni/ethtool/igb/e1000_api.h:31, > from /home/keithw/projects/dpdk/dpdk.org/x86_64-native-linu= xapp-gcc/build/lib/librte_eal/linuxapp/kni/e1000_82575.c:38: >/home/keithw/projects/dpdk/dpdk.org/lib/librte_eal/linuxapp/kni/ethtool/ig= b/kcompat.h:3853:1: error: conflicting types for a=88?skb_set_hasha=88? skb= _set_hash(struct sk_buff *skb, __u32 hash, __always_unused int type) ^ In f= ile included from /usr/src/linux-headers-3.13.0-30-generic/include/linux/if= _ether.h:23:0, > from /home/keithw/projects/dpdk/dpdk.org/lib/librte_eal/lin= uxapp/kni/ethtool/igb/e1000_osdep.h:39, > from /home/keithw/projects/dpdk/dpdk.org/lib/librte_eal/lin= uxapp/kni/ethtool/igb/e1000_hw.h:31, > from /home/keithw/projects/dpdk/dpdk.org/lib/librte_eal/lin= uxapp/kni/ethtool/igb/e1000_api.h:31, > from /home/keithw/projects/dpdk/dpdk.org/x86_64-native-linu= xapp-gcc/build/lib/librte_eal/linuxapp/kni/e1000_82575.c:38: >/usr/src/linux-headers-3.13.0-30-generic/include/linux/skbuff.h:740:1: not= e: previous definition of a=88?skb_set_hasha=88? was here skb_set_hash(stru= ct sk_buff *skb, __u32 hash, enum pkt_hash_types type) ^ >make[10]: *** [/home/keithw/projects/dpdk/dpdk.org/x86_64-native-linuxapp-= gcc/build/lib/librte_eal/linuxapp/kni/e1000_82575.o] Error 1 >make[9]: *** [_module_/home/keithw/projects/dpdk/dpdk.org/x86_64-native-li= nuxapp-gcc/build/lib/librte_eal/linuxapp/kni] Error 2 >make[8]: *** [sub-make] Error 2 >make[7]: *** [rte_kni.ko] Error 2 >make[6]: *** [kni] Error 2 >make[5]: *** [linuxapp] Error 2 >make[4]: *** [librte_eal] Error 2 >make[3]: *** [lib] Error 2 >make[2]: *** [all] Error 2 >make[1]: *** [x86_64-native-linuxapp-gcc_install] Error 2 >make: *** [install] Error 2 > >Please verify this is correct. > >Thanks >++Keith > >Keith Wiles, Principal Technologist with CTO office, Wind River mobile 972= -213-5533 > >[Powering 30 Years of Innovation] >