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 6F3D0A00C5; Wed, 13 Jul 2022 21:50:54 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 329C142847; Wed, 13 Jul 2022 21:50:54 +0200 (CEST) Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by mails.dpdk.org (Postfix) with ESMTP id C854A42836 for ; Wed, 13 Jul 2022 21:50:52 +0200 (CEST) Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 26DJ6o7f018038; Wed, 13 Jul 2022 19:50:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=N83mP5DD/XAhTpoxLyo+eaqTfVUzTjh0jmbIp0mUI8E=; b=f+7qSG3i6REqZaiNjxNmbNNB43hR44yoC1xP3pjbn0Tc5RYft2UnFXBmGa/O8CHIm4Rz SVsfHmNtfyQIqnHfepfAvws19a0LUqRM8Oc81OS+MlifVISJkghuFxuTMDIJceNGqmN0 qYh4CcYVL4ha8cqFWmKM0L8CaIyH8wsiaJRKnlHxktmxcV6QXXfM4yDaINkR39W8TjtP drNGMpoygEAXnPhlVNLaMwcPJwOxj/tpM7JW5EJWlMGGdH4UDSBmSPyZ8FzH8n01Pdc8 NJ5aMds8YDSXpAEDnRDTefdZSz2GTDUR5eMWGojTAjggwW92YC5aGu3dZxHXBPreLocK vw== Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3ha3x20ubu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Jul 2022 19:50:51 +0000 Received: from pps.filterd (ppma04dal.us.ibm.com [127.0.0.1]) by ppma04dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 26DJaBhR024789; Wed, 13 Jul 2022 19:50:50 GMT Received: from b01cxnp23032.gho.pok.ibm.com (b01cxnp23032.gho.pok.ibm.com [9.57.198.27]) by ppma04dal.us.ibm.com with ESMTP id 3h9e04rjpk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Jul 2022 19:50:50 +0000 Received: from b01ledav002.gho.pok.ibm.com (b01ledav002.gho.pok.ibm.com [9.57.199.107]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 26DJnZNd42795454 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Jul 2022 19:49:35 GMT Received: from b01ledav002.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2CC99124054; Wed, 13 Jul 2022 19:49:35 +0000 (GMT) Received: from b01ledav002.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CD14E12405A; Wed, 13 Jul 2022 19:49:34 +0000 (GMT) Received: from [9.41.99.180] (unknown [9.41.99.180]) by b01ledav002.gho.pok.ibm.com (Postfix) with ESMTP; Wed, 13 Jul 2022 19:49:34 +0000 (GMT) Message-ID: Date: Wed, 13 Jul 2022 14:49:34 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] config: set pkgconfig for ppc64le Content-Language: en-US To: Ali Alnubani , "NBU-Contact-Thomas Monjalon (EXTERNAL)" Cc: "dev@dpdk.org" , David Christensen References: <20220707114128.1635863-1-alialnu@nvidia.com> <10833404.lRi8OiJO2u@thomas> From: Thinh Tran In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: XNA05LtbCZgCfRT_xPjw-D6DlTs9dxJx X-Proofpoint-GUID: XNA05LtbCZgCfRT_xPjw-D6DlTs9dxJx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-07-13_07,2022-07-13_03,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=895 spamscore=0 impostorscore=0 lowpriorityscore=0 bulkscore=0 suspectscore=0 mlxscore=0 priorityscore=1501 malwarescore=0 phishscore=0 adultscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2207130073 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 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 Regards, Thinh Tran