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 C27F53772 for ; Thu, 10 Aug 2017 05:35:54 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Aug 2017 20:35:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,349,1498546800"; d="scan'208";a="1001976712" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga003.jf.intel.com with ESMTP; 09 Aug 2017 20:35:51 -0700 Received: from fmsmsx120.amr.corp.intel.com (10.18.124.208) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 9 Aug 2017 20:35:51 -0700 Received: from fmsmsx113.amr.corp.intel.com ([169.254.13.153]) by fmsmsx120.amr.corp.intel.com ([169.254.15.123]) with mapi id 14.03.0319.002; Wed, 9 Aug 2017 20:35:50 -0700 From: "Wiles, Keith" To: "McCullough, Harrison" CC: "users@dpdk.org" Thread-Topic: [dpdk-users] Error when compiling pktgen-dpdk with dpdk-17.02 Thread-Index: AdMRK55mWFnvBH83SIu2xan8YapOowAmM3GA Date: Thu, 10 Aug 2017 03:35:50 +0000 Message-ID: <0ABE9BF8-8A81-47E9-BFFE-EBEA81A167D4@intel.com> References: <942AD08E4186F644A54168E4F84117C9343542@SAUSMAILMBX1.ad.tri.sbc.com> In-Reply-To: <942AD08E4186F644A54168E4F84117C9343542@SAUSMAILMBX1.ad.tri.sbc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.254.14.185] Content-Type: text/plain; charset="us-ascii" Content-ID: <38F06F13940EAF4F814DAA0220098D07@intel.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-users] Error when compiling pktgen-dpdk with dpdk-17.02 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Aug 2017 03:35:56 -0000 > On Aug 9, 2017, at 11:52 AM, McCullough, Harrison wrote: >=20 > I have been using dpdk version 17.02. A while ago I installed pktgen-dpdk= and > got it working. However, when I recently downloaded it in a different mac= hine > (a Ubuntu 16.04 VM), pktgen-dpdk failed to build. At first I thought it h= ad > something to do with the fact that it was in a VM or something different > about the configuration of this new machine. However, after I rolled back= to > the same commit that I used the first time it built fine. >=20 > >=20 > When I run make, this is what I get: > $ make > =3D=3D lib > =3D=3D common > CC copyright_info.o > CC port_config.o > /home/username/pktgen-dpdk/lib/common/port_config.c: In function 'create_= blacklist': > /home/username/pktgen-dpdk/lib/common/port_config.c:198:24: error: 'RTE_D= EVTYPE_BLACKLISTED' undeclared (first use in this function) > rte_eal_devargs_add(RTE_DEVTYPE_BLACKLISTED, Please try the new version pktgen-3.3.9 it has this fix. > ^ > /home/username/pktgen-dpdk/lib/common/port_config.c:198:24: note: each un= declared identifier is reported only once for each function it appears in > /home/username/pktgen-dpdk/lib/common/port_config.c:208:24: error: 'RTE_D= EVTYPE_WHITELISTED' undeclared (first use in this function) > rte_eal_devargs_add(RTE_DEVTYPE_WHITELISTED, > ^ > /home/username/dpdk-stable-17.02.1/mk/internal/rte.compile-pre.mk:138: re= cipe for target 'port_config.o' failed > make[3]: *** [port_config.o] Error 1 > /home/username/dpdk-stable-17.02.1/mk/rte.extlib.mk:44: recipe for target= 'all' failed > make[2]: *** [all] Error 2 > /home/username/dpdk-stable-17.02.1/mk/rte.extsubdir.mk:46: recipe for tar= get 'common' failed > make[1]: *** [common] Error 2 > /home/username/dpdk-stable-17.02.1/mk/rte.extsubdir.mk:46: recipe for tar= get 'lib' failed > make: *** [lib] Error 2 >=20 > In the offending file, .../pktgen-dpdk/lib/common/port_config.c, there's = a > line that I assume is checking the version number and using a different n= ame > depending on which version of DPDK you're using. Unfortunately, it seems = to > be confused as to when that name change took place. I checked 17.02, 17.0= 5, > and 17.08, and they all seemed to be using RTE_DEVTYPE_BLACKLISTED_PCI > instead of RTE_DEVTYPE_BLACKLISTED. >=20 > I changed the two places where it used did this check (one for > RTE_DEVTYPE_BLACKLISTED_PCI and one for RTE_DEVTYPE_WHITELISTED_PCI), and= it > happily compiled most of the files (getting through lib, common, lua, src= , > and cli). However, it got hung up on app with the following error: >=20 > make[2]: *** No rule to make target '/home/harrison/pktgen-dpdk/app/../li= b/common/x86_64-native-linuxapp-gcc/libcommon.a'. Stop. > /home/harrison/dpdk-stable-17.02.1/mk/rte.extapp.mk:47: recipe for target= '/home/harrison/pktgen-dpdk/app/../lib/common/x86_64-native-linuxapp-gcc/l= ibcommon.a' failed > make[1]: *** [/home/harrison/pktgen-dpdk/app/../lib/common/x86_64-native-= linuxapp-gcc/libcommon.a] Error 2 > /home/harrison/dpdk-stable-17.02.1/mk/rte.extsubdir.mk:46: recipe for tar= get 'app' failed > make: *** [app] Error 2 >=20 > I didn't feel like trying to track this any farther, especially because i= t's > working with the previous version of pktgen. I'm guessing this is failing > because I'm trying to use a newer version of pktgen with an older version= of > DPDK, does that seem right? How am I supposed to know which commit works = with > which version of DPDK? Are there tags in the pktgen-dpdk git repository t= hat > mark it as compatible with certain releases of DPDK? >=20 > This is the sha-1 of the commit where everything works with DPDK 17.02: > 4a23c7ef444ab25c3efd0acfa43d7cc7c739279a >=20 > This is the sha-1 of the master as it currently stands > 67eb645cbbef76821d8bfb14d7838e54f14f4b2a Regards, Keith