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 D4CE5A0A05; Tue, 19 Jan 2021 12:22:25 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 69F36140D3A; Tue, 19 Jan 2021 12:22:25 +0100 (CET) Received: from mail-ot1-f41.google.com (mail-ot1-f41.google.com [209.85.210.41]) by mails.dpdk.org (Postfix) with ESMTP id 152D1140D38 for ; Tue, 19 Jan 2021 12:22:24 +0100 (CET) Received: by mail-ot1-f41.google.com with SMTP id 36so7889884otp.2 for ; Tue, 19 Jan 2021 03:22:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=i/5jLf8q93TdJyy5/Vo4yE1TDDIQQPVcWd/dxzz0PuQ=; b=mB4kiH0hdE9OlWEF+86/r6a4/WsoPrC+JNncFxlNFwJjIdy2LCLu/EihUYdLZa5lqb 69GgsOQT9KvIgM8AMJLCBkcRCSDscsDgNAzDToBvbPRcQJDCFSE4rtrcYvHJhp2eqvsD dVc2ALWrOWCi0zTpSdrG2u0fhfozoqDvABcLZ738p1s4E0+O9vVsaLjUXGFHfoQ/YOWt WeF6bYYXoVfcxoYpD/AF7RrNoAl1L9hZqXq61womNeNLcbOiGum0Z7DyFfP6V60yZ03x eWX2C4L4EPye1sbxRekjhwTwsl9HcwW92WWsfkendmhCMmOXfm+K4a+Y14q8RBvBHtY8 oh7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=i/5jLf8q93TdJyy5/Vo4yE1TDDIQQPVcWd/dxzz0PuQ=; b=jkJFKKHoAY84PhyXuDgRosTHsaiLMhIc8MmeSg4MCW+GzYVjSNWK/hsbF1Qb3MM6+1 bVCGUGYlq3etNDkVAUnhzxu4bkLK3dVZg7DYrJyKBA3J8TaiIswm/yMG3wMzDDLS+tfw xruWeQSJHZC3cDjEt3p+xAIRqrOs6ZqXUR7P1WHP47JwaUG2j+nC7l36o5e8qMVj966f 5q35xhW2FCRrUC6JkrmKSmmWC2UIVyX3UeT5xjT18Mp0nveX/BpzusCilrA4qq37reNx RxPyZZTiChe9oDU+7kgAP+9sKWNKNJWfUFIlssgOtmE7M6J4Bxld35uv1HByXsiJAQBI T8vg== X-Gm-Message-State: AOAM530+uzA5ILsgkbh/AJUovG/HT42krul4p8Atgfpcyd1yLF6F+yDh ulWZ+bnS0OvDouOJ9+5uU2J6lKiyRbjC6vm5IoI= X-Google-Smtp-Source: ABdhPJyKnsfVNqi18Dz6q2dJwzY5gXp2qQRpbWnJCKQI0fUfTleGEZPoTPHdetRWrozlQR8htmgX/ZBt9I2Fdu5/uDc= X-Received: by 2002:a05:6830:1257:: with SMTP id s23mr2981060otp.69.1611055343399; Tue, 19 Jan 2021 03:22:23 -0800 (PST) MIME-Version: 1.0 References: <20210119104010.GC1786@bricha3-MOBL.ger.corp.intel.com> <20210119104204.GD1786@bricha3-MOBL.ger.corp.intel.com> In-Reply-To: <20210119104204.GD1786@bricha3-MOBL.ger.corp.intel.com> From: Truring Team Date: Tue, 19 Jan 2021 16:51:47 +0530 Message-ID: To: Bruce Richardson Cc: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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" cat /etc/redhat-release CentOS Linux release 7.8.2003 (Core) pkg-config --version 0.27.1 pkg-config --static --libs libdpdk Package libdpdk was not found in the pkg-config search path. Perhaps you should add the directory containing `libdpdk.pc' to the PKG_CONFIG_PATH environment variable No package 'libdpdk' found locate libdpdk.pc /home/user/dpdk-20.11/build/meson-private/libdpdk.pc /usr/local/lib64/pkgconfig/libdpdk.pc Thanks On Tue, 19 Jan 2021 at 16:12, Bruce Richardson wrote: > 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" >