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 4ECFDA0A05; Tue, 19 Jan 2021 12:25:09 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 28FF5140CCD; Tue, 19 Jan 2021 12:25:09 +0100 (CET) Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.46]) by mails.dpdk.org (Postfix) with ESMTP id E2E72140CCC for ; Tue, 19 Jan 2021 12:25:05 +0100 (CET) Received: by mail-ot1-f46.google.com with SMTP id n42so19389033ota.12 for ; Tue, 19 Jan 2021 03:25:05 -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=DwsiJYxSPxC1qShYdHK1rFKoUzb99P5Lms+Aah943IA=; b=Pmiy+/OeJyri9WjB+2QqjqoT3ujEqh1W7DQqqy6Gi3OysJss66PpFmMFhV5lBiAATI 1YXuHVrQckXWBWjjcrgebMqMRM5D+1ZLH7weNz++w080/Ipl0zcqBOWJ+SRXfU+9UPSv pZNzxCANqaENPNiug0BQgn25Hf4oSoCy2pscAZym3OGMlx7zYZuyvBdmpKAUSXq8O+uQ P3qilAXfRrHZG42rZxkWDZvEiIOgwe4yDTguZYtP+ejYz2gxyLo9KxiTOFkQGF4HKYJC nFB7ztq1roK0zVoYt05Rm9ceAX8fac4vE27t/U4MiK6eZB2DhpkklGaQwNgjrzyYei67 WjsA== 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=DwsiJYxSPxC1qShYdHK1rFKoUzb99P5Lms+Aah943IA=; b=EYIg7PMN05ZuQRhgVSAYOeeO91drlvXmsPd83aBqXVpt+2j4V42fCxofsikN2odEI3 8TymXpIkbPPf5WxXfMg+yQE6+wmZok7jmWJ4gembLuGzdV9QhABniOMkMZ8elyWqM7HF P3nb7Zb750EMKQnu+S4+jHU134oPjTkK/2BFu+ARlm7k+dAckLk8/+yOGUAQvlyZ/rs8 iv4cMn3pvmIHoZrsfwGMu9GwMHx+1wTpteX+KvXbHWKEiKjlTBlymeyXLyQPKQ3v5ByF P/LqnaWnfz47w0tuDrc3ZAvXUFKSLDGzRyDNO3iWkaKhEg+LqtOvW17cxS0FXUajJ4br CWcQ== X-Gm-Message-State: AOAM533AhWIUsioeU4C1tRa6KiZUlJC8cIn4T8f7QBgA4EbRAsWIIVxp QXjxVnu8i12SI4p1gjzHexNOGbPo4RP9hC3XBUQ= X-Google-Smtp-Source: ABdhPJyWil0ruEVOmFh4/etNk6DXRXxTF/coUnjmxxLNeMq8ptrfSkibQXTGgaMt8vjvrOLNTpulA+/h4ZNT/JA/JPs= X-Received: by 2002:a9d:6201:: with SMTP id g1mr3127889otj.66.1611055505308; Tue, 19 Jan 2021 03:25:05 -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: From: Truring Team Date: Tue, 19 Jan 2021 16:54:28 +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" export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig pkg-config --static --libs libdpdk -Wl,--whole-archive -Wl,--no-whole-archive -Wl,--as-needed -pthread -L/usr/local/lib64 -l:librte_common_cpt.a -l:librte_common_dpaax.a -l:librte_common_iavf.a -l:librte_common_octeontx.a -l:librte_common_octeontx2.a -l:librte_common_sfc_efx.a -l:librte_bus_dpaa.a -l:librte_bus_fslmc.a -l:librte_bus_ifpga.a -l:librte_bus_pci.a -l:librte_bus_vdev.a -l:librte_bus_vmbus.a -l:librte_common_qat.a -l:librte_mempool_bucket.a -l:librte_mempool_dpaa.a -l:librte_mempool_dpaa2.a -l:librte_mempool_octeontx.a -l:librte_mempool_octeontx2.a -l:librte_mempool_ring.a -l:librte_mempool_stack.a -l:librte_net_af_packet.a -l:librte_net_ark.a -l:librte_net_atlantic.a -l:librte_net_avp.a -l:librte_net_axgbe.a -l:librte_net_bond.a -l:librte_net_bnx2x.a -l:librte_net_bnxt.a -l:librte_net_cxgbe.a -l:librte_net_dpaa.a -l:librte_net_dpaa2.a -l:librte_net_e1000.a -l:librte_net_ena.a -l:librte_net_enetc.a -l:librte_net_enic.a -l:librte_net_failsafe.a -l:librte_net_fm10k.a -l:librte_net_i40e.a -l:librte_net_hinic.a -l:librte_net_hns3.a -l:librte_net_iavf.a -l:librte_net_ice.a -l:librte_net_igc.a -l:librte_net_ixgbe.a -l:librte_net_kni.a -l:librte_net_liquidio.a -l:librte_net_memif.a -l:librte_net_netvsc.a -l:librte_net_nfp.a -l:librte_net_null.a -l:librte_net_octeontx.a -l:librte_net_octeontx2.a -l:librte_net_pcap.a -l:librte_net_pfe.a -l:librte_net_qede.a -l:librte_net_ring.a -l:librte_net_sfc.a -l:librte_net_softnic.a -l:librte_net_tap.a -l:librte_net_thunderx.a -l:librte_net_txgbe.a -l:librte_net_vdev_netvsc.a -l:librte_net_vhost.a -l:librte_net_virtio.a -l:librte_net_vmxnet3.a -l:librte_raw_dpaa2_cmdif.a -l:librte_raw_dpaa2_qdma.a -l:librte_raw_ioat.a -l:librte_raw_ntb.a -l:librte_raw_octeontx2_dma.a -l:librte_raw_octeontx2_ep.a -l:librte_raw_skeleton.a -l:librte_crypto_bcmfs.a -l:librte_crypto_caam_jr.a -l:librte_crypto_ccp.a -l:librte_crypto_dpaa_sec.a -l:librte_crypto_dpaa2_sec.a -l:librte_crypto_nitrox.a -l:librte_crypto_null.a -l:librte_crypto_octeontx.a -l:librte_crypto_octeontx2.a -l:librte_crypto_openssl.a -l:librte_crypto_scheduler.a -l:librte_crypto_virtio.a -l:librte_compress_octeontx.a -l:librte_compress_zlib.a -l:librte_regex_octeontx2.a -l:librte_vdpa_ifc.a -l:librte_event_dlb.a -l:librte_event_dlb2.a -l:librte_event_dpaa.a -l:librte_event_dpaa2.a -l:librte_event_octeontx2.a -l:librte_event_opdl.a -l:librte_event_skeleton.a -l:librte_event_sw.a -l:librte_event_dsw.a -l:librte_event_octeontx.a -l:librte_baseband_null.a -l:librte_baseband_turbo_sw.a -l:librte_baseband_fpga_lte_fec.a -l:librte_baseband_fpga_5gnr_fec.a -l:librte_baseband_acc100.a -l:librte_node.a -l:librte_graph.a -l:librte_bpf.a -l:librte_flow_classify.a -l:librte_pipeline.a -l:librte_table.a -l:librte_port.a -l:librte_fib.a -l:librte_ipsec.a -l:librte_vhost.a -l:librte_stack.a -l:librte_security.a -l:librte_sched.a -l:librte_reorder.a -l:librte_rib.a -l:librte_regexdev.a -l:librte_rawdev.a -l:librte_pdump.a -l:librte_power.a -l:librte_member.a -l:librte_lpm.a -l:librte_latencystats.a -l:librte_kni.a -l:librte_jobstats.a -l:librte_ip_frag.a -l:librte_gso.a -l:librte_gro.a -l:librte_eventdev.a -l:librte_efd.a -l:librte_distributor.a -l:librte_cryptodev.a -l:librte_compressdev.a -l:librte_cfgfile.a -l:librte_bitratestats.a -l:librte_bbdev.a -l:librte_acl.a -l:librte_timer.a -l:librte_hash.a -l:librte_metrics.a -l:librte_cmdline.a -l:librte_pci.a -l:librte_ethdev.a -l:librte_meter.a -l:librte_net.a -l:librte_mbuf.a -l:librte_mempool.a -l:librte_rcu.a -l:librte_ring.a -l:librte_eal.a -l:librte_telemetry.a -l:librte_kvargs.a -lcrypto -lz -ljansson -lrte_node -lrte_graph -lrte_bpf -lrte_flow_classify -lrte_pipeline -lrte_table -lrte_port -lrte_fib -lrte_ipsec -lrte_vhost -lrte_stack -lrte_security -lrte_sched -lrte_reorder -lrte_rib -lrte_regexdev -lrte_rawdev -lrte_pdump -lrte_power -lrte_member -lrte_lpm -lrte_latencystats -lrte_kni -lrte_jobstats -lrte_ip_frag -lrte_gso -lrte_gro -lrte_eventdev -lrte_efd -lrte_distributor -lrte_cryptodev -lrte_compressdev -lrte_cfgfile -lrte_bitratestats -lrte_bbdev -lrte_acl -lrte_timer -lrte_hash -lrte_metrics -lrte_cmdline -lrte_pci -lrte_ethdev -lrte_meter -lrte_net -lrte_mbuf -lrte_mempool -lrte_rcu -lrte_ring -lrte_eal -lrte_telemetry -lrte_kvargs -lm -ldl -lnuma -lpcap On Tue, 19 Jan 2021 at 16:51, Truring Team wrote: > 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" >> >