From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3DE4DA0A03; Tue, 19 Jan 2021 11:42:12 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BFC58140D4F; Tue, 19 Jan 2021 11:42:11 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 0645D140D4E for ; Tue, 19 Jan 2021 11:42:08 +0100 (CET) IronPort-SDR: Sak+HOKwX0/Wvk6NxpmBtdERNVC64is7W3HI4+h1xiuAgW+fqYLo4NSPmUG5VjgAr+Strj0GRI Q3J4waDVSaIA== X-IronPort-AV: E=McAfee;i="6000,8403,9868"; a="175404760" X-IronPort-AV: E=Sophos;i="5.79,358,1602572400"; d="scan'208";a="175404760" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2021 02:42:08 -0800 IronPort-SDR: z8u+aUbGfpYqSvRd816QEuJTNHnKWzGaDZKgufTdF9/AVAWg1pCsWHWmObVLbRvEexcIG3MXTz UrrWZyHXqsUA== X-IronPort-AV: E=Sophos;i="5.79,358,1602572400"; d="scan'208";a="355548523" Received: from bricha3-mobl.ger.corp.intel.com ([10.252.18.163]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 19 Jan 2021 02:42:07 -0800 Date: Tue, 19 Jan 2021 10:42:04 +0000 From: Bruce Richardson To: Truring Team Cc: dev@dpdk.org Message-ID: <20210119104204.GD1786@bricha3-MOBL.ger.corp.intel.com> References: <20210119104010.GC1786@bricha3-MOBL.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210119104010.GC1786@bricha3-MOBL.ger.corp.intel.com> Subject: Re: [dpdk-dev] DPDK 20.11 Static vs Dynamic Linking- l2fwd issue X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Tue, Jan 19, 2021 at 10:40:10AM +0000, Bruce Richardson wrote: > On Tue, Jan 19, 2021 at 03:36:18PM +0530, Truring Team wrote: > > Hi Team, > > > > I am facing one issue with dpdk 20.11 Release, compiled the l2fwd app with > > make static , its throwing following error while running the app: > > > > Problematic Use Case: > > cd dpdk-20.11/examples/l2fwd > > export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig > > *make static * > > ./build/l2fwd -l 0-3 -n 4 -- -q 1 -p 1 > > EAL: Detected 6 lcore(s) > > EAL: Detected 1 NUMA nodes > > EAL: Multi-process socket /var/run/dpdk/rte/mp_socket > > EAL: Selected IOVA mode 'PA' > > EAL: No available hugepages reported in hugepages-1048576kB > > EAL: Probing VFIO support... > > EAL: No legacy callbacks, legacy socket not created > > MAC updating enabled > > > > *EAL: Error - exiting with code: 1 Cause: No Ethernet ports - bye* > > > > > Can someone help me to figure out the root cause why this happening. > > > > It seems like the static libs for the drivers are not linked in for the > "make static" case. Can you please check the following: > > * What OS/distro are you using, and what is the pkg-config version? The > version of pkg-config included in RHEL/Centos is known to have some > issues in linking DPDK. Missed clarification - RHEL/Centos *7* only. RHEL 8 is fine. > * What is the output when you run "pkg-config --static --libs libdpdk"