DPDK patches and discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: Ali Alnubani <alialnu@nvidia.com>
Cc: David Marchand <david.marchand@redhat.com>, <dev@dpdk.org>,
	<thomas@monjalon.net>
Subject: Re: [PATCH v2] build: validate libraries returned from meson find function
Date: Thu, 2 Oct 2025 17:28:39 +0100	[thread overview]
Message-ID: <aN6oN155Gqcdnz8y@bricha3-mobl1.ger.corp.intel.com> (raw)
In-Reply-To: <54ffb23d-0720-4dcc-a6ee-9bb1f9007670@nvidia.com>

On Thu, Oct 02, 2025 at 06:42:15PM +0300, Ali Alnubani wrote:
> On 10/2/25 3:45 PM, David Marchand wrote:
> 
> > On Thu, 2 Oct 2025 at 13:54, David Marchand <david.marchand@redhat.com> wrote:
> > > On Wed, 24 Sept 2025 at 13:13, Bruce Richardson
> > > <bruce.richardson@intel.com> wrote:
> > > > The meson find_library() API call sometimes finds a library that is
> > > > actually incompatible with the current build, for example, returning a
> > > > 64-bit library when doing a 32-bit build. To avoid problems with this,
> > > > check each library returned from a find_library() call and treat the
> > > > library as unfound if its incompatible.
> > > > 
> > > > This checking is not necessary (or should not be necessary) for
> > > > dependencies got using pkg-config, since the .pc files for each build
> > > > type are stored in a different directory on the system.
> > > > 
> > > > Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> > > Acked-by: David Marchand <david.marchand@redhat.com>
> > Applied, thanks.
> 
> Hello,
> 
> I have warnings like this for mlx5 drivers on Ubuntu 22.04 with clang:
> 
> Message: Disabling mlx5 [drivers/net/mlx5]: missing internal dependency
> "common_mlx5"
> 
> Build command:
> CC=clang PKG_CONFIG_PATH=/opt/rdma-core/build/lib/pkgconfig meson --werror
> --buildtype=debugoptimized build
> 
> gcc does not reproduce.
> 

[Trimming CC list a bit]

Hi,

There must be an earlier error where the check for a library used by
common_mlx5 fails. Can you perhaps send on a more complete build log, or
perhaps log a bugzilla and attach the meson configuration output, and the
meson build logfile there?

/Bruce

      reply	other threads:[~2025-10-02 16:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-23 16:58 [PATCH] examples/l2fwd-cat: check compatibility of dependency lib Bruce Richardson
2025-09-24 10:54 ` [PATCH v2] build: validate libraries returned from meson find function Bruce Richardson
2025-10-02  7:53   ` David Marchand
2025-10-02  8:06     ` Bruce Richardson
2025-10-02 11:58       ` David Marchand
2025-10-02 11:54   ` David Marchand
2025-10-02 12:45     ` David Marchand
2025-10-02 15:42       ` Ali Alnubani
2025-10-02 16:28         ` Bruce Richardson [this message]

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=aN6oN155Gqcdnz8y@bricha3-mobl1.ger.corp.intel.com \
    --to=bruce.richardson@intel.com \
    --cc=alialnu@nvidia.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=thomas@monjalon.net \
    /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).