DPDK patches and discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: Ben Magistro <koncept1@gmail.com>
Cc: dev@dpdk.org
Subject: Re: static link + pkg-config assistance
Date: Mon, 23 May 2022 09:19:59 +0100	[thread overview]
Message-ID: <YotDryAFC7d+ez6+@bricha3-MOBL.ger.corp.intel.com> (raw)
In-Reply-To: <CAKx8PBikDZvR5Ou2Ma=LkUDz5G8KZBKfoQk0w54MD10aP4HPXA@mail.gmail.com>

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

  reply	other threads:[~2022-05-23  8:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-21  2:35 Ben Magistro
2022-05-23  8:19 ` Bruce Richardson [this message]
2022-05-23 15:03   ` Ben Magistro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YotDryAFC7d+ez6+@bricha3-MOBL.ger.corp.intel.com \
    --to=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=koncept1@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).