From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-00191d01.pphosted.com (mx0a-00191d01.pphosted.com [67.231.149.140]) by dpdk.org (Postfix) with ESMTP id 927CE2A5D for ; Wed, 9 Aug 2017 18:52:53 +0200 (CEST) Received: from pps.filterd (m0049295.ppops.net [127.0.0.1]) by m0049295.ppops.net-00191d01. (8.16.0.17/8.16.0.17) with SMTP id v79GkLpx044320 for ; Wed, 9 Aug 2017 12:52:52 -0400 Received: from flpd657.enaf.ffdc.sbc.com (sbcsmtp9.sbc.com [144.160.128.153]) by m0049295.ppops.net-00191d01. with ESMTP id 2c83q3yepc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 09 Aug 2017 12:52:52 -0400 Received: from enaf.ffdc.sbc.com (localhost [127.0.0.1]) by flpd657.enaf.ffdc.sbc.com (8.14.5/8.14.5) with ESMTP id v79Gqpa9104399 for ; Wed, 9 Aug 2017 09:52:51 -0700 Received: from flpi489.ffdc.sbc.com (flpi489.ffdc.sbc.com [130.4.162.183]) by flpd657.enaf.ffdc.sbc.com (8.14.5/8.14.5) with ESMTP id v79Gqm7Q104388 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 9 Aug 2017 09:52:48 -0700 Received: from tlpd252.dadc.sbc.com (tlpd252.dadc.sbc.com [135.31.184.157]) by flpi489.ffdc.sbc.com (RSA Interceptor) for ; Wed, 9 Aug 2017 16:52:32 GMT Received: from dadc.sbc.com (localhost [127.0.0.1]) by tlpd252.dadc.sbc.com (8.14.5/8.14.5) with ESMTP id v79GqWJI068271 for ; Wed, 9 Aug 2017 11:52:32 -0500 Received: from SAUSMAILHUB.ad.tri.sbc.com (sausmailhub.ad.tri.sbc.com [144.60.55.228]) by tlpd252.dadc.sbc.com (8.14.5/8.14.5) with ESMTP id v79GqPtT067945 for ; Wed, 9 Aug 2017 11:52:25 -0500 Received: from SAUSMAILMBX1.ad.tri.sbc.com ([144.60.55.229]) by SAUSMAILHUB.ad.tri.sbc.com ([144.60.55.228]) with mapi id 14.03.0351.000; Wed, 9 Aug 2017 11:52:25 -0500 From: "McCullough, Harrison" To: "users@dpdk.org" Thread-Topic: Error when compiling pktgen-dpdk with dpdk-17.02 Thread-Index: AdMRK55mWFnvBH83SIu2xan8YapOow== Date: Wed, 9 Aug 2017 16:52:25 +0000 Message-ID: <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: [144.60.57.137] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-RSA-Inspected: yes X-RSA-Classifications: public X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-08-09_05:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1706020000 definitions=main-1708090258 Subject: [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: Wed, 09 Aug 2017 16:52:54 -0000 I have been using dpdk version 17.02. A while ago I installed pktgen-dpdk a= nd got it working. However, when I recently downloaded it in a different machi= ne (a Ubuntu 16.04 VM), pktgen-dpdk failed to build. At first I thought it had 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 t= o the same commit that I used the first time it built fine. 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_bl= acklist': /home/username/pktgen-dpdk/lib/common/port_config.c:198:24: error: 'RTE_DEV= TYPE_BLACKLISTED' undeclared (first use in this function) rte_eal_devargs_add(RTE_DEVTYPE_BLACKLISTED, ^ /home/username/pktgen-dpdk/lib/common/port_config.c:198:24: note: each unde= clared identifier is reported only once for each function it appears in /home/username/pktgen-dpdk/lib/common/port_config.c:208:24: error: 'RTE_DEV= TYPE_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: reci= pe 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 targe= t 'common' failed make[1]: *** [common] Error 2 /home/username/dpdk-stable-17.02.1/mk/rte.extsubdir.mk:46: recipe for targe= t 'lib' failed make: *** [lib] Error 2 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 nam= e 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.05, and 17.08, and they all seemed to be using RTE_DEVTYPE_BLACKLISTED_PCI instead of RTE_DEVTYPE_BLACKLISTED. 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 i= t 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: make[2]: *** No rule to make target '/home/harrison/pktgen-dpdk/app/../lib/= 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/lib= common.a' failed make[1]: *** [/home/harrison/pktgen-dpdk/app/../lib/common/x86_64-native-li= nuxapp-gcc/libcommon.a] Error 2 /home/harrison/dpdk-stable-17.02.1/mk/rte.extsubdir.mk:46: recipe for targe= t 'app' failed make: *** [app] Error 2 I didn't feel like trying to track this any farther, especially because it'= 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 o= f DPDK, does that seem right? How am I supposed to know which commit works wi= th which version of DPDK? Are there tags in the pktgen-dpdk git repository tha= t mark it as compatible with certain releases of DPDK? This is the sha-1 of the commit where everything works with DPDK 17.02: 4a23c7ef444ab25c3efd0acfa43d7cc7c739279a This is the sha-1 of the master as it currently stands 67eb645cbbef76821d8bfb14d7838e54f14f4b2a