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 6968BA0093; Sat, 21 May 2022 04:35:21 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0C97B40222; Sat, 21 May 2022 04:35:21 +0200 (CEST) Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) by mails.dpdk.org (Postfix) with ESMTP id 93E1E40156 for ; Sat, 21 May 2022 04:35:19 +0200 (CEST) Received: by mail-wm1-f54.google.com with SMTP id v191-20020a1cacc8000000b00397001398c0so7731041wme.5 for ; Fri, 20 May 2022 19:35:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=nFSWiQ+4C0Uninq2CruF//cPxF87fDIpH74gmXzVPtg=; b=P52CH4UKBD290P3aze7CH0ZugTBZi9gmZM2PceMTaBetsR7uuNp+fD2cBh8KRX1k+y DG0+f+5ryMxnEZtsrUS6myO1TqQ7iwb8mS+skH9ins3nliknWCM+OOzXzMT0QL9UJsFL 4BDXCscCaZ8cndb66qQou6u7aXH5JuQkVzblnkG8MLaVUnKGWlCQl1MnaONDyNJF8Hzv 0yagsRmotpZzfpUShfl/JEQaxJJn8oiD5wFDclJ4uuMy3a1qWzrQpM75zFYVv4PfOsuw 569Mq9AdX65SPbVGh7pA7qZkoQBdIFEllPurFlC/5jeCAl1MEjilgA63nuOdObPL9dYF W0KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=nFSWiQ+4C0Uninq2CruF//cPxF87fDIpH74gmXzVPtg=; b=Oallwr9VrMvFlUKOAZalJrwtPBs+mJh4TyBI/bvLFhnrd6Gk0A7SNyXzlIPowRpJRf WklvMRY0qcfX0PqVEbwW/ShgfoSsfhzFYjiZoUN+X16XTiOuNXNOULBtQEU0EnhFD05t 0J7PT/AuqXciOi8tfnULag9Wio1a6jz8KElPgGk5olvE0/pXjMGegbcdQZFDoHKwrpP8 lJeGx4fMtU2v8e25Ai4YrhNNSLda9xaCxkLTyRFFXh2VxAGwS5Dee2HJPsZjZX9pUfVX Jw3JT9GoQs0XOAqVvYT2fvTibTXGYfUNGy+ZKLlpu4dxrQjaZNp4S+TkI4597tas65me weGg== X-Gm-Message-State: AOAM530eCNQPCfnRSl3a8cK9sRJN8P0J5fodSbpIMq04HoYU26V9gC1w jooLzl0VpXf4/p7M1r7l/2sDqWfsgV1XvZg38nv3oCJjtPY= X-Google-Smtp-Source: ABdhPJxjMGShK9nMOaiv9e6ZMUBhb7f4t+0TAWzUCJ1mUJMxkmn9X2NLle5W5uTHTx1E/lYBNQtaeoLy2brrh1Hc3qY= X-Received: by 2002:a05:600c:2248:b0:394:31c6:b6ae with SMTP id a8-20020a05600c224800b0039431c6b6aemr10818664wmm.99.1653100518859; Fri, 20 May 2022 19:35:18 -0700 (PDT) MIME-Version: 1.0 From: Ben Magistro Date: Fri, 20 May 2022 22:35:07 -0400 Message-ID: Subject: static link + pkg-config assistance To: dev@dpdk.org Content-Type: multipart/alternative; boundary="0000000000003466e605df7c7521" 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 --0000000000003466e605df7c7521 Content-Type: text/plain; charset="UTF-8" I've been working through some updates to the build system for TLDK and have been working through the different variants (system vs fallback + shared vs static). I've been able to successfully build and run the unit test app for most of these combinations however, I haven't been able to get the system static combination to work successfully yet, OS: CentOS 7.9 + devtoolset-9 (gcc 9.3.1) DPDK: 21.11 I built DPDK using `meson build` + `ninja -C build` using default options and installed using `ninja -C build install`. When configuring TLDK, I get an error indicating the static libraries cannot be found. I'm still investigating this, but could use some assistance. I wouldn't rule out an issue in the meson files for TLDK. [bmagistro@lvdi-01 tldk-system-static]$ meson build -Dpkg_config_path=/usr/local/lib64/pkgconfig The Meson build system Version: 0.55.1 Source dir: /home/bmagistro/github/tldk-system-static Build dir: /home/bmagistro/github/tldk-system-static/build Build type: native build Program cat found: YES Project name: TLDK Project version: 21.11.0 C compiler for the host machine: cc (gcc 9.3.1 "cc (GCC) 9.3.1 20200408 (Red Hat 9.3.1-2)") C linker for the host machine: cc ld.bfd 2.32-16 C++ compiler for the host machine: c++ (gcc 9.3.1 "c++ (GCC) 9.3.1 20200408 (Red Hat 9.3.1-2)") C++ linker for the host machine: c++ ld.bfd 2.32-16 Host machine cpu family: x86_64 Host machine cpu: x86_64 Message: ## Building in Developer Mode ## Found pkg-config: /usr/bin/pkg-config (0.27.1) WARNING: Static library ':librte_common_cpt.a' not found for dependency 'libdpdk', may not be statically linked WARNING: Static library ':librte_common_dpaax.a' not found for dependency 'libdpdk', may not be statically linked WARNING: Static library ':librte_common_iavf.a' not found for dependency 'libdpdk', may not be statically linked WARNING: Static library ':librte_common_octeontx.a' not found for dependency 'libdpdk', may not be statically linked WARNING: Static library ':librte_common_octeontx2.a' not found for dependency 'libdpdk', may not be statically linked WARNING: Static library ':librte_bus_auxiliary.a' not found for dependency 'libdpdk', may not be statically linked WARNING: Static library ':librte_bus_dpaa.a' not found for dependency 'libdpdk', may not be statically linked WARNING: Static library ':librte_bus_fslmc.a' not found for dependency 'libdpdk', may not be statically linked .... WARNING: Static library ':librte_telemetry.a' not found for dependency 'libdpdk', may not be statically linked WARNING: Static library ':librte_kvargs.a' not found for dependency 'libdpdk', may not be statically linked WARNING: Static library 'elf' not found for dependency 'libdpdk', may not be statically linked WARNING: Static library 'pcap' not found for dependency 'libdpdk', may not be statically linked WARNING: Static library 'z' not found for dependency 'libdpdk', may not be statically linked Run-time dependency libdpdk found: YES 21.11.0 Run-time dependency GTest found: NO (tried pkgconfig and system) Looking for a fallback subproject for the dependency gtest --0000000000003466e605df7c7521 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've been working=C2=A0through some updates to the bui= ld system for TLDK and have been working through the different variants (sy= stem vs fallback=C2=A0+ shared vs static).=C2=A0 I've been able to succ= essfully build and run the unit test app for most of these combinations how= ever, I haven't been able to get the system static combination to work = successfully yet,

OS: CentOS 7.9=C2=A0+ devtoolset-9 (gc= c 9.3.1)
DPDK: 21.11

I built DPDK using = `meson build`=C2=A0+ `ninja -C build` using default options and installed u= sing `ninja -C build install`.

When configuring TL= DK, I get an error indicating the static libraries cannot be found.=C2=A0 I= 'm still investigating this, but could use some assistance.=C2=A0 I wou= ldn't rule out an issue in the meson files for TLDK.

[bmagistro@lvdi-01 tldk-system-static]$ meson build -Dpkg_config_pat= h=3D/usr/local/lib64/pkgconfig
The Meson build system
Version: 0.55.1=
Source dir: /home/bmagistro/github/tldk-system-static
Build d= ir: /home/bmagistro/github/tldk-system-static/build
Build type: native b= uild
Program cat found: YES
Project name: TLDK
Project version: 21= .11.0
C compiler for the host machine: cc (gcc 9.3.1 "cc (GCC) 9.3.= 1 20200408 (Red Hat 9.3.1-2)")
C linker for the host machine: cc ld= .bfd 2.32-16
C++ compiler for the host machine: c++ (gcc 9.3.1 "c++= (GCC) 9.3.1 20200408 (Red Hat 9.3.1-2)")
C++ linker for the host m= achine: c++ ld.bfd 2.32-16
Host machine cpu family: x86_64
Host machi= ne cpu: x86_64
Message: ## Building in Developer Mode ##
Found pkg-co= nfig: /usr/bin/pkg-config (0.27.1)
WARNING: Static library ':librte_= common_cpt.a' not found for dependency 'libdpdk', may not be st= atically linked
WARNING: Static library ':librte_common_dpaax.a'= not found for dependency 'libdpdk', may not be statically linkedWARNING: Static library ':librte_common_iavf.a' not found for dep= endency 'libdpdk', may not be statically linked
WARNING: Static = library ':librte_common_octeontx.a' not found for dependency 'l= ibdpdk', may not be statically linked
WARNING: Static library ':= librte_common_octeontx2.a' not found for dependency 'libdpdk', = may not be statically linked
WARNING: Static library ':librte_bus_au= xiliary.a' not found for dependency 'libdpdk', may not be stati= cally linked
WARNING: Static library ':librte_bus_dpaa.a' not fo= und for dependency 'libdpdk', may not be statically linked
WARNI= NG: Static library ':librte_bus_fslmc.a' not found for dependency &= #39;libdpdk', may not be statically linked
....
WARNING: Static library ':librte_telemetry.a' not found for depend= ency 'libdpdk', may not be statically linked
WARNING: Static lib= rary ':librte_kvargs.a' not found for dependency 'libdpdk',= may not be statically linked
WARNING: Static library 'elf' not = found for dependency 'libdpdk', may not be statically linked
WAR= NING: Static library 'pcap' not found for dependency 'libdpdk&#= 39;, may not be statically linked
WARNING: Static library 'z' no= t found for dependency 'libdpdk', may not be statically linked
R= un-time dependency libdpdk found: YES 21.11.0
Run-time dependency GTest = found: NO (tried pkgconfig and system)
Looking for a fallback subproject= for the dependency gtest
--0000000000003466e605df7c7521--