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 DD4D9A00C2; Mon, 23 May 2022 17:03:31 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7A5B44014F; Mon, 23 May 2022 17:03:31 +0200 (CEST) Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by mails.dpdk.org (Postfix) with ESMTP id C0CA340141 for ; Mon, 23 May 2022 17:03:30 +0200 (CEST) Received: by mail-wr1-f50.google.com with SMTP id t6so21800850wra.4 for ; Mon, 23 May 2022 08:03:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CFfFaKlbqH+daDaDkERuUk8mzeX3vWgMmq1LJHySWwk=; b=IBDkGWeDe6Tk7jjsc/AGvWLXPzyi9uU7B8VXFCMw4McY6mgCCbilLUQjaCQ79+xOC3 61+rVd11d/9K3qhtaGCq5l9wq6aowbZ5gv17FJJalDkZ1zD402Lt3mcXp9NjAC+kThoC tYWwUp+ffPTXtFlV16J9Qo9gMDHcRV0O88Pd009wWnDBTqLAWs/koIHOklGZYO+k6SmE F+hCkqmzgy576RVemI30Xk7YeBo7d8OHY4zeIFa/r0INFMFc+AZK97hKq+NkweKAPlb2 7wBX9v407z+iuTPSWxqdDpjX04T2ZAQP4jjC5agrcSJ3Tbig+QcsDnuTohNDW7TQ/KB6 /uKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CFfFaKlbqH+daDaDkERuUk8mzeX3vWgMmq1LJHySWwk=; b=cIx2tO0cahY7FIcwB7IxGDWLcoMQNXP1ke55bwatPYM1l9l2gDXagsuRAUkPBy9oEY /5AOhuXuOGczy9Yhht/eaGtl/8FJ0WkYqcE6UkoqD3D70nWQ6cT0X0Y44eYl3Hg9nle4 7c4qrOsjw+JT/EYBXeoKsGw8JSYMBcm8K0ioxD/f10KtUGQS4IBXY7Ok4n07dqKbTTA7 t/tlRfOo+IkdnXVhoZDuOqHn31iFtvpE/rWEcCP+gVLDWJvZCM0Cll6VZX1sBcDwD73D f3DFLkzheJmsqqnbvYRuIYSlB0AF3ateIUCje11fh6+MrR1pAGpTUrdsr5Nn6Sf5r8hH iJBw== X-Gm-Message-State: AOAM533tAMcwuaP4AdMDZK4Oko0XUGv+5wh4457eVE+Zl7ej+ZVZKrpw xOaDsAYp/im/x6Oxym3b05aSccjsKZy1i9+fYLw1nkTf X-Google-Smtp-Source: ABdhPJyTmZ3qPnm3IKeETbyBlDbgXQBy0g0CMqPda4ChQDr/61WcQnRbiJ6FHams/rGJ/CONpMMmC5YiWLS1eQf4jns= X-Received: by 2002:a5d:47c9:0:b0:20f:e7da:6a48 with SMTP id o9-20020a5d47c9000000b0020fe7da6a48mr2479136wrc.315.1653318210270; Mon, 23 May 2022 08:03:30 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ben Magistro Date: Mon, 23 May 2022 11:03:18 -0400 Message-ID: Subject: Re: static link + pkg-config assistance To: Bruce Richardson Cc: dev@dpdk.org Content-Type: multipart/alternative; boundary="0000000000009fb81405dfaf2417" 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 --0000000000009fb81405dfaf2417 Content-Type: text/plain; charset="UTF-8" I completely missed that so thanks for pointing it out. On the CentOS environment I don't have an easy way to update it right now so I switched over to another host and am seeing similar behavior. The major deltas are listed below. OS: Ubuntu 21.10 meson: 0.56.2 pkg-config: 0.29.2 (+ 1.7.3 via pkgconf) gcc: 11.2.0 On Mon, May 23, 2022 at 4:20 AM Bruce Richardson wrote: > On Fri, May 20, 2022 at 10:35:07PM -0400, Ben Magistro wrote: > > 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) > > Can you try installing a newer version of pkg-config or pkgconf. We have > previously encountered issues with the version of pkg-config installed on > RHEL 7 and Centos 7. It does some reordering of arguments and flags > that can break things under certain circumstances. See: > > > https://doc.dpdk.org/guides-21.11/linux_gsg/sys_reqs.html#building-dpdk-applications > > /Bruce > --0000000000009fb81405dfaf2417 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I completely missed that so thanks for pointing it out.
On the CentOS environment I don't have an easy way to = update it right now so I switched over to another host and am seeing simila= r behavior.=C2=A0 The major deltas are listed below.

OS: Ubuntu 21.10
meson: 0.56.2
pkg-config: 0.29.2 (+= 1.7.3 via pkgconf)
gcc: 11.2.0

On Mon, May 23, 2022 at 4:20= AM Bruce Richardson <bruc= e.richardson@intel.com> wrote:
On Fri, May 20, 2022 at 10:35:07PM -0400, Ben Magistr= o wrote:
>=C2=A0 =C2=A0 I've been working through some updates to the build s= ystem for TLDK and
>=C2=A0 =C2=A0 have been working through the different variants (system = vs fallback +
>=C2=A0 =C2=A0 shared vs static).=C2=A0 I've been able to successful= ly build and run the
>=C2=A0 =C2=A0 unit test app for most of these combinations however, I h= aven't been
>=C2=A0 =C2=A0 able to get the system static combination to work success= fully yet,
>=C2=A0 =C2=A0 OS: CentOS 7.9 + devtoolset-9 (gcc 9.3.1)
>=C2=A0 =C2=A0 DPDK: 21.11
>=C2=A0 =C2=A0 I built DPDK using `meson build` + `ninja -C build` using= default
>=C2=A0 =C2=A0 options and installed using `ninja -C build install`.
>=C2=A0 =C2=A0 When configuring TLDK, I get an error indicating the stat= ic libraries
>=C2=A0 =C2=A0 cannot be found.=C2=A0 I'm still investigating this, = but could use some
>=C2=A0 =C2=A0 assistance.=C2=A0 I wouldn't rule out an issue in the= meson files for TLDK.
>=C2=A0 =C2=A0 [bmagistro@lvdi-01 tldk-system-static]$ meson build
>=C2=A0 =C2=A0 -Dpkg_config_path=3D/usr/local/lib64/pkgconfig
>=C2=A0 =C2=A0 The Meson build system
>=C2=A0 =C2=A0 Version: 0.55.1
>=C2=A0 =C2=A0 Source dir: /home/bmagistro/github/tldk-system-static
>=C2=A0 =C2=A0 Build dir: /home/bmagistro/github/tldk-system-static/buil= d
>=C2=A0 =C2=A0 Build type: native build
>=C2=A0 =C2=A0 Program cat found: YES
>=C2=A0 =C2=A0 Project name: TLDK
>=C2=A0 =C2=A0 Project version: 21.11.0
>=C2=A0 =C2=A0 C compiler for the host machine: cc (gcc 9.3.1 "cc (= GCC) 9.3.1 20200408
>=C2=A0 =C2=A0 (Red Hat 9.3.1-2)")
>=C2=A0 =C2=A0 C linker for the host machine: cc ld.bfd 2.32-16
>=C2=A0 =C2=A0 C++ compiler for the host machine: c++ (gcc 9.3.1 "c= ++ (GCC) 9.3.1
>=C2=A0 =C2=A0 20200408 (Red Hat 9.3.1-2)")
>=C2=A0 =C2=A0 C++ linker for the host machine: c++ ld.bfd 2.32-16
>=C2=A0 =C2=A0 Host machine cpu family: x86_64
>=C2=A0 =C2=A0 Host machine cpu: x86_64
>=C2=A0 =C2=A0 Message: ## Building in Developer Mode ##
>=C2=A0 =C2=A0 Found pkg-config: /usr/bin/pkg-config (0.27.1)

Can you try installing a newer version of pkg-config or pkgconf. We have previously encountered issues with the version of pkg-config installed on RHEL 7 and Centos 7. It does some reordering of arguments and flags
that can break things under certain circumstances. See:

https://doc.dpdk= .org/guides-21.11/linux_gsg/sys_reqs.html#building-dpdk-applications
/Bruce
--0000000000009fb81405dfaf2417--