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 11B86A0542; Mon, 29 Aug 2022 12:30:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BFF1E4069D; Mon, 29 Aug 2022 12:30:22 +0200 (CEST) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by mails.dpdk.org (Postfix) with ESMTP id B98114003C for ; Mon, 29 Aug 2022 12:30:21 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 718A25C0112; Mon, 29 Aug 2022 06:30:20 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 29 Aug 2022 06:30:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1661769020; x= 1661855420; bh=kpZR6390+I2zHFJNn0W8M1nhxPOwXPssHIjrz9GQ+jI=; b=f 9xkJYDbLaDe2i/Rslxsxbie0fhl6edrn0yTNCFmtRFlOccjy6kgnpeowZxMftPyN wn3UHIBYFBQ7o0JDNfCi8Ef5EdO3jWoSCbPLzhxXPwCH1AKetzQ8+BV9HKOb6YKU eI3xfNoZFHVrKJUOXAxXW+Qex8bLAEl2HmJF+vwXy/LK5/Sjb9n2DqrbBRQnc7Xh 1ADNpl2X3lB64D2mbWX7323S1D92l5rScnwvZ6F6SxntWVOSolrFEYUvg69glm1r pVnlkVxVT5aZ3emQJLN+exY0vNl8v99twvmzslwYzjLd4ra6azdOhS+l2XJhMbJh /4ihbbzuZuPhEz/1GxyPQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1661769020; x= 1661855420; bh=kpZR6390+I2zHFJNn0W8M1nhxPOwXPssHIjrz9GQ+jI=; b=t Iglc/7hli4KwV+IWP9YCDRK9QAuAuvLR26m0mnk1uVodAPcEzXoqznb8C0HiTI2X rueN1DLfkXzOfj+VziU+1y4MwQ9leQmmP6ztEHwCyCKh0QQ3Kfuj5ggvcl1feA9c 0osyr5eFNKuSrMkVE5ShGgDoY8HDHMJ0IFRbGQL/7yLRRlmSj/TZSaqTAn4IKtpB 4tThVBP6WSjv2PoncuN6Iq5QmPxsyAGkSdHY8SEs8gDzIY3i3TXa4cworfIOWSUN fV8LE6VFM0dhaARstqrH89CPSVCkporn8JauyEp8Uk70d/radCy1pATvFYtvN0eg huU8qTCJncu59ATAzZIsw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdekuddgfedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpefgieehffeukeegudekfffgtedvieejtdevfeefueehhfethfei geekgeeijeegjeenucffohhmrghinhepfhgvughorhgrphhrohhjvggtthdrohhrghdpsg hoohhtlhhinhdrtghomhdpihgsmhdrtghomhenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 29 Aug 2022 06:30:19 -0400 (EDT) From: Thomas Monjalon To: Thinh Tran , David Christensen Cc: Ali Alnubani , dev@dpdk.org Subject: Re: [PATCH] config: set pkgconfig for ppc64le Date: Mon, 29 Aug 2022 12:30:18 +0200 Message-ID: <5853832.UjTJXf6HLC@thomas> In-Reply-To: References: <20220707114128.1635863-1-alialnu@nvidia.com> <108d23bd-30f2-b1e9-6e0c-7d9f77d04049@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 What is the conclusion on this patch? It is good to go? Acked? 20/07/2022 01:02, David Christensen: > > On 7/18/22 1:16 PM, Thinh Tran wrote: > > > > > > On 7/14/2022 1:58 AM, Ali Alnubani wrote: > >>> -----Original Message----- > >>> From: Thinh Tran > >>> Sent: Wednesday, July 13, 2022 10:50 PM > >>> To: Ali Alnubani ; NBU-Contact-Thomas Monjalon > >>> (EXTERNAL) > >>> Cc: dev@dpdk.org; David Christensen > >>> Subject: Re: [PATCH] config: set pkgconfig for ppc64le > >>> > >>> Hi, > >>> > >>> On 7/13/2022 2:39 AM, Ali Alnubani wrote: > >>>>> -----Original Message----- > >>>>> From: Thomas Monjalon > >>>>> Sent: Monday, July 11, 2022 11:11 PM > >>>>> To: Ali Alnubani > >>>>> Cc: dev@dpdk.org; David Christensen > >>>>> Subject: Re: [PATCH] config: set pkgconfig for ppc64le > >>>>> > >>>>> + PPC maintainer > >>>>> > >>>>> 07/07/2022 13:41, Ali Alnubani: > >>>>>> Meson fails to detect the dependencies that are included > >>>>>> in PKG_CONFIG_PATH and built for ppc64le if binaries.pkgconfig > >>>>>> is not set in the ppc64le cross-file for Ubuntu. > >>>>>> > >>>>>> This fixes the issue by setting binaries.pkgconfig to the > >>>>>> binary provided by the package 'pkg-config-powerpc64le-linux-gnu'. > >>>>>> > >>>>>> Signed-off-by: Ali Alnubani > >>>>>> --- > >>>>>> config/ppc/ppc64le-power8-linux-gcc-ubuntu | 1 + > >>>>> > >>>>> Why not adding the same for ppc64le-power8-linux-gcc? > >>>>> > >>>>>> +pkgconfig = 'powerpc64le-linux-gnu-pkg-config' > >>>> > >>>> I didn't find any operating systems that distribute the powerpc64le > >>>> cross- > >>> compiler with the binary names found in config/ppc/ppc64le-power8-linux- > >>> gcc. > >>>> Both Ubuntu and Fedora use the -gnu suffix. Fedora doesn't seem to have > >>> a pkg-config binary for powerpc64le though. > >>> > >>> I am able to cross-compile dpdk on Ubuntu with the default config file > >>> My system info: > >>> # uname -rvm > >>> 5.4.0-113-generic #127-Ubuntu SMP Wed May 18 14:30:56 UTC 2022 x86_64 > >>> > >>> # apt list gcc-10-powerpc64le-linux-gnu | grep installed > >>> gcc-10-powerpc64le-linux-gnu/focal-updates,focal-security,now > >>> 10.3.0-1ubuntu1~20.04cross1 amd64 [installed] > >>> # which powerpc64le-linux-gnu-gcc > >>> /usr/bin/powerpc64le-linux-gnu-gcc > >>> # ls -l /usr/bin/powerpc64le-linux-gnu-gcc > >>> lrwxrwxrwx 1 root root 37 Jul 13 11:56 > >>> /usr/bin/powerpc64le-linux-gnu-gcc -> > >>> /usr/bin/powerpc64le-linux-gnu-gcc- > >>> 10 > >>> > >>> # apt list pkg-config | grep installed > >>> pkg-config/focal,now 0.29.1-0ubuntu4 amd64 [installed] > >>> > >>> # meson cross-build_p8 --cross-file > >>> config/ppc/ppc64le-power8-linux-gcc-ubuntu > >>> The Meson build system > >>> Version: 0.56.2 > >>> Source dir: /root/dpdk > >>> Build dir: /root/dpdk/cross-build_p8 > >>> Build type: cross build > >>> Program cat found: YES (/bin/cat) > >>> Project name: DPDK > >>> Project version: 22.07.0-rc4 > >>> C compiler for the host machine: powerpc64le-linux-gnu-gcc (gcc 10.3.0 > >>> "powerpc64le-linux-gnu-gcc (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0") > >>> C linker for the host machine: powerpc64le-linux-gnu-gcc ld.bfd 2.34 > >>> C compiler for the build machine: cc (gcc 9.4.0 "cc (Ubuntu > >>> 9.4.0-1ubuntu1~20.04.1) 9.4.0") > >>> C linker for the build machine: cc ld.bfd 2.34 > >>> Build machine cpu family: x86_64 > >>> Build machine cpu: x86_64 > >>> Host machine cpu family: x86_64 > >>> Host machine cpu: x86_64 > >>> Target machine cpu family: ppc64 > >>> Target machine cpu: power8 > >>> Program pkg-config found: YES (/usr/bin/pkg-config) > >>> Program check-symbols.sh found: YES (/root/dpdk/buildtools/check- > >>> symbols.sh) > >>> Program options-ibverbs-static.sh found: YES > >>> (/root/dpdk/buildtools/options-ibverbs-static.sh) > >>> Program objdump found: YES (/usr/bin/objdump) > >>> Program python3 found: YES (/usr/bin/python3) > >>> Program cat found: YES (/bin/cat) > >>> Program ../buildtools/symlink-drivers-solibs.sh found: YES (/bin/sh > >>> /root/dpdk/config/../buildtools/symlink-drivers-solibs.sh) > >>> Checking for size of "void *" : 8 > >>> Checking for size of "void *" : 8 > >>> ...... > >>> Build targets in project: 851 > >>> > >>> Found ninja-1.10.0 at /usr/bin/ninja > >>> # ninja -C cross-build_p8 > >>> ninja: Entering directory `cross-build_p8' > >>> [2933/2933] Linking target app/test/dpdk-test > >>> > >>> similar to it, I'm able to build for power9 > >>> > >> > >> Hi Thinh, > >> > >> I'm also able to cross-build for ppc64 on Ubuntu, but without setting > >> binaries.pkgconfig, meson will skip some build targets, even if > >> PKG_CONFIG_PATH points to their dependencies. > >> Have you tried on Fedora? > > As Thinh points out, you can't cross-compile for ppc64le on Fedora with > distro supplied packages. Ran across this question about the issue > relative to ARM on the Fedora Project website: > > https://ask.fedoraproject.org/t/cross-compiling-to-arm/17864/12 > > And also confirmed internally with our toolchain developers that you'd > need glibc support which isn't provided in the existing Fedora packages. > Consensus seems to be that Fedora cross-compile is for > kernels/bootloaders only, though I'd love to hear from someone at Red > Hat if I'm mistaken. > > Ubuntu/Debian do support the functionality, so you could try those > environments (as used by Github Actions for DPDK commits), use a third > party toolchain such as those found on: > > https://toolchains.bootlin.com/releases_powerpc64le-power8.html > > Or you could use the IBM Advanced Toolchain for POWER: > > https://www.ibm.com/support/pages/advtool-cross-compilers > > Dave >