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 BF769A0A0A; Fri, 22 Jan 2021 11:21:30 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F045140F70; Fri, 22 Jan 2021 11:20:20 +0100 (CET) Received: from mailgw01.pantheon.sk (mailgw01.pantheon.sk [46.229.239.26]) by mails.dpdk.org (Postfix) with ESMTP id 5255A140F31 for ; Fri, 22 Jan 2021 11:20:19 +0100 (CET) Received: from mailgw01.pantheon.sk (localhost.localdomain [127.0.0.1]) by mailgw01.pantheon.sk (Proxmox) with ESMTP id 17A0F201854; Fri, 22 Jan 2021 11:20:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantheon.tech; h=cc:cc:content-transfer-encoding:content-type:content-type :date:from:from:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=dkim; bh=djq3qUCUxJ0IhmimwwKr nrz1uFz2QB+KArWqAK6kCgw=; b=VSuEwHp5+rbeSiuAIuT4etBdKMTMobZOELUp WKSNcHHfjurkJ34WhMPxZLBD3j8+ec2mi+iQaKmP0zxFAo9+L1mmJMGBJtp6rfkl zXZMN8uglg3udvtCjzpn64M+fH65V7mQ/YJNzUEEIBnV9a21h39B6Ql1muyItvHv uiG+vW6h0N9xwKEbAHg7qNGsOX72ggMGfgaMiGypPvPvd6chjOYLMcyP05dt/LnZ YQiEVm8HYH+p1tS7pKWXcAANb7kFENMDqsufidTo1A1g6wR34jEL8tuRbmHTRcEQ rRJvGXb49fMrhn0siepGIsCDH5EVd+//TrKwvE1xgGBGJq+Ijw== From: =?iso-8859-2?Q?Juraj_Linke=B9?= To: Hemant Agrawal , Bruce Richardson CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] meson: wrong dependency in cross compilation on ARM Thread-Index: AdbXj9qZTcS7ta4ETJWoi2/ZLsedHwACeZIAAADciQAGQqKKwA== Date: Fri, 22 Jan 2021 10:20:18 +0000 Message-ID: References: <20201221140402.GB1753@bricha3-MOBL.ger.corp.intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.101.4.10] Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] meson: wrong dependency in cross compilation on ARM 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 Sender: "dev" > -----Original Message----- > From: dev On Behalf Of Hemant Agrawal > Sent: Monday, December 21, 2020 3:29 PM > To: Bruce Richardson > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] meson: wrong dependency in cross compilation on A= RM >=20 >=20 > > -----Original Message----- > > From: dev 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. >=20 > [Hemant] I will try. >=20 Hi Hemant, have you tried this yet? I have an extra question. Since this is aarch64 cross-compilation, you shou= ld be using aarch64-linux-gnu-pkg-config - is that so? The aarch64 pkg-config should prevent searching in build machine paths. Wou= ld this also point to cmake finding these dependencies? > Also, is there a way to disable certain drivers (e.g. bnx2x) and librarie= s (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 de= pendency > on zlib. >=20 > > > > /Bruce