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 5CB09A0A03; Tue, 19 Jan 2021 11:40:17 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4449E140D4F; Tue, 19 Jan 2021 11:40:17 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 8781E140D4E for ; Tue, 19 Jan 2021 11:40:15 +0100 (CET) IronPort-SDR: +ha9jg19bRj8Ga3Qj5MFxXJilMXgL7mUPDEzdj5i0yXdxbH/QBgxegAoBzsCJ05oX2VMuwp87Z cUcNMLr/ybvA== X-IronPort-AV: E=McAfee;i="6000,8403,9868"; a="240446826" X-IronPort-AV: E=Sophos;i="5.79,358,1602572400"; d="scan'208";a="240446826" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2021 02:40:14 -0800 IronPort-SDR: 7LBUzhAgN4rqOvEprqaNRrbvp1MFvK6mhedzrqKXlB8+6eMrb7Y9TppFBzThYPG96YU+SH7PX9 aQUj3m4zJYsQ== X-IronPort-AV: E=Sophos;i="5.79,358,1602572400"; d="scan'208";a="355548237" 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:40:13 -0800 Date: Tue, 19 Jan 2021 10:40:10 +0000 From: Bruce Richardson To: Truring Team Cc: dev@dpdk.org Message-ID: <20210119104010.GC1786@bricha3-MOBL.ger.corp.intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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. * What is the output when you run "pkg-config --static --libs libdpdk"