From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by dpdk.org (Postfix) with ESMTP id 69D2FB381 for ; Fri, 11 Jul 2014 10:43:02 +0200 (CEST) Received: by mail-wi0-f170.google.com with SMTP id cc10so424288wib.5 for ; Fri, 11 Jul 2014 01:43:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=uk1upWnih9Vot06tdanUd8TKFkP/vLJzdTxqnNB3bQY=; b=YgsXc2iZXleAXasNDTd0PuMTO4NNPbbs4aFtbwhG8k9qR5lDf+TFu+Npx0qFnNVcSA +Zb9R6czG4B3ZTw2kd5A06WylaR3YyqEFpObKY7pjovFkN/Xu9oq4O+VC+hBvZOKr7i6 pVLGHT2FG9Ar1Sq7RjPzRZa6D9vrRDBUUZKHLI43oQBpyOViYcs3AZ/QZqI/gyS4xBbs t9qHW4OSPkTMidMwWVTzMv3wTFZe+FUwmZrfdvEmEZtj2RDVBcX8iZ7/5q7YL2MurhWo +BOyW3H4U3TwjdX3Q19wMqXJ9oPU73T7+6OhR0wamoVAt42pVPE7WmGfMi+MPc3pMUKk DIVw== X-Gm-Message-State: ALoCoQkxbqxwdKWGaZGZmXdU6AZKg8a/FutTA50iBcU5bP7bW/UDLDpoi7QNMIW//VIRk52mublC MIME-Version: 1.0 X-Received: by 10.180.206.109 with SMTP id ln13mr3127311wic.17.1405068206539; Fri, 11 Jul 2014 01:43:26 -0700 (PDT) Received: by 10.216.89.195 with HTTP; Fri, 11 Jul 2014 01:43:26 -0700 (PDT) In-Reply-To: <2C4D5C7B-3FC1-4C90-BEB1-30790FC6E3DE@windriver.com> References: <2C4D5C7B-3FC1-4C90-BEB1-30790FC6E3DE@windriver.com> Date: Fri, 11 Jul 2014 17:43:26 +0900 Message-ID: From: Masaru Oki To: "Wiles, Roger Keith" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "" 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: Fri, 11 Jul 2014 08:43:02 -0000 Hi, I tried another workaround and works fine: It similar to other kcompat function, add __kc_ prefix to function definition and #define skb_set_hash(a,b,c) __kc_skb_set_hash(a,b,c). Thanks, 2014-07-06 0:27 GMT+09:00 Wiles, Roger Keith : > 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/build/lib/librte_eal/linuxapp/kni/e10= 00_82575.o > < > http://dpdk.org/x86_64-native-linuxapp-gcc/build/lib/librte_eal/linuxapp/= kni/e1000_82575.o > > > In file included from /home/keithw/projects/dpdk/ > dpdk.org/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_osdep.h:41:0< > http://dpdk.org/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_osdep.h:41:= 0 > >, > from /home/keithw/projects/dpdk/ > dpdk.org/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_hw.h:31< > http://dpdk.org/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_hw.h:31>, > from /home/keithw/projects/dpdk/ > dpdk.org/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_api.h:31< > http://dpdk.org/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_api.h:31>, > from /home/keithw/projects/dpdk/ > dpdk.org/x86_64-native-linuxapp-gcc/build/lib/librte_eal/linuxapp/kni/e10= 00_82575.c:38 > :< > http://dpdk.org/x86_64-native-linuxapp-gcc/build/lib/librte_eal/linuxapp/= kni/e1000_82575.c:38 > :> > /home/keithw/projects/dpdk/ > dpdk.org/lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h:3853:1:< > http://dpdk.org/lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h:3853:1:= > > error: conflicting types for =C3=A2=E2=82=AC=CB=9Cskb_set_hash=C3=A2=E2= =82=AC=E2=84=A2 > skb_set_hash(struct sk_buff *skb, __u32 hash, __always_unused int type) > ^ > In file 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/linuxapp/kni/ethtool/igb/e1000_osdep.h:39< > http://dpdk.org/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_osdep.h:39>= , > from /home/keithw/projects/dpdk/ > dpdk.org/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_hw.h:31< > http://dpdk.org/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_hw.h:31>, > from /home/keithw/projects/dpdk/ > dpdk.org/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_api.h:31< > http://dpdk.org/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_api.h:31>, > from /home/keithw/projects/dpdk/ > dpdk.org/x86_64-native-linuxapp-gcc/build/lib/librte_eal/linuxapp/kni/e10= 00_82575.c:38 > :< > http://dpdk.org/x86_64-native-linuxapp-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: > note: previous definition of =C3=A2=E2=82=AC=CB=9Cskb_set_hash=C3=A2=E2= =82=AC=E2=84=A2 was here > skb_set_hash(struct 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/e10= 00_82575.o > ]< > http://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-linuxapp-gcc/build/lib/librte_eal/linuxapp/kni]< > http://dpdk.org/x86_64-native-linuxapp-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] > > >