DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Juraj Linkeš" <juraj.linkes@pantheon.tech>
To: Hemant Agrawal <hemant.agrawal@nxp.com>,
	Bruce Richardson <bruce.richardson@intel.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] meson: wrong dependency in cross compilation on ARM
Date: Fri, 22 Jan 2021 10:20:18 +0000	[thread overview]
Message-ID: <eb7d2e574c2f4eb083e06c00cb3d8f11@pantheon.tech> (raw)
In-Reply-To: <AM6PR04MB4456C5EDAE0BE3749C01550789C00@AM6PR04MB4456.eurprd04.prod.outlook.com>



> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of Hemant Agrawal
> Sent: Monday, December 21, 2020 3:29 PM
> To: Bruce Richardson <bruce.richardson@intel.com>
> Cc: dev@dpdk.org
> Subject: Re: [dpdk-dev] meson: wrong dependency in cross compilation on ARM
> 
> 
> > -----Original Message-----
> > From: dev <dev-bounces@dpdk.org> On Behalf Of Bruce Richardson
> >
> > On Mon, Dec 21, 2020 at 12:19:17PM +0000, Hemant Agrawal wrote:
> > > Hi,
> > >                 I am trying to cross compile DPDK for arm64 on a
> > > ubuntu machine,
> > which has a zlib pre-installed for native env.
> > >
> > > I am encountering following build error in net_bnx2x as it has
> > > dependency
> > on zlib.  It is trying to link with x86 arch based zlib.
> > >
> > > Cross compiling zlib and setting the PKG_CONFIG_PATH solve the issue.
> > But, Is their an easy way to disable these dependencies?
> > >
> > Can you try with setting PKG_CONFIG_LIBDIR rather than
> > PKG_CONFIG_PATH?
> > PKG_CONFIG_PATH simply extends the search locations, which means that
> > host-paths will still be searched, while PKG_CONFIG_LIBDIR replaces
> > the default path, eliminating the host-based search paths.
> 
> [Hemant] I will try.
> 

Hi Hemant, have you tried this yet?

I have an extra question. Since this is aarch64 cross-compilation, you should be using aarch64-linux-gnu-pkg-config - is that so?
The aarch64 pkg-config should prevent searching in build machine paths. Would this also point to cmake finding these dependencies?

> Also, is there a way to disable certain drivers (e.g. bnx2x) and libraries (e.g.
> compress) in meson config file statically, so that they don't get build.
> Using disable_driver options is still not working as the dpdk-test has dependency
> on zlib.
> 
> >
> > /Bruce



  parent reply	other threads:[~2021-01-22 10:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-21 12:19 Hemant Agrawal
2020-12-21 14:04 ` Bruce Richardson
2020-12-21 14:28   ` Hemant Agrawal
2020-12-21 14:47     ` Bruce Richardson
2021-01-22 10:20     ` Juraj Linkeš [this message]
2021-01-15 18:40   ` Ferruh Yigit
2021-01-18 10:51     ` Bruce Richardson
2021-01-18 11:58       ` Ferruh Yigit
2021-01-18 12:05         ` Ferruh Yigit
2021-01-18 12:16           ` Ferruh Yigit
2021-01-18 13:29             ` Bruce Richardson
2021-01-22 12:47             ` Hemant Agrawal
2021-01-18 13:28         ` Bruce Richardson

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=eb7d2e574c2f4eb083e06c00cb3d8f11@pantheon.tech \
    --to=juraj.linkes@pantheon.tech \
    --cc=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=hemant.agrawal@nxp.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).