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 4004BA0032; Mon, 18 Jul 2022 22:16:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CDF2340698; Mon, 18 Jul 2022 22:16:47 +0200 (CEST) Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by mails.dpdk.org (Postfix) with ESMTP id DA46D40041 for ; Mon, 18 Jul 2022 22:16:46 +0200 (CEST) Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 26IK1ho2006202; Mon, 18 Jul 2022 20:16:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : from : subject : to : cc : references : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=n4xLHMK5PjKHrtu38y2tOgLlI/nFt4SntUkZt3iWowI=; b=nh6tzBFHZMaOiEZ2w+t5gwRyZRuu4zRd9s9RLAGPE69sjzEbxtARPQIIdtZBef6t/j/T 3TTup04saT9Krc/xBdZF6R5eX+BVBzEhcc8wBY+gpviXr+Vs2NHo/KQq8BQ851U8FDbn 0JkYrft+usI2EyCjhij2N+YIAKd7ayG3jQ9dUVGX7oQIygJBKQKnN4ewZXhbMd0dVgEq VXXkdYKPPala/qwFbV/5dC4c5mtw3gYz4tm5YyE8K8OYzhrgXvBPkoKJa7mIt+gZTVwU fIAKyglTwRTC2gN63anFhwqOJ9wu6fBsI9CGmj6VCttKxVuE71aCU8KbNBo3t3CdAeFZ nA== Received: from ppma01dal.us.ibm.com (83.d6.3fa9.ip4.static.sl-reverse.com [169.63.214.131]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3hde6qgd2q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 Jul 2022 20:16:45 +0000 Received: from pps.filterd (ppma01dal.us.ibm.com [127.0.0.1]) by ppma01dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 26IK8dw0027577; Mon, 18 Jul 2022 20:16:44 GMT Received: from b03cxnp07028.gho.boulder.ibm.com (b03cxnp07028.gho.boulder.ibm.com [9.17.130.15]) by ppma01dal.us.ibm.com with ESMTP id 3hbmy9as5n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 Jul 2022 20:16:44 +0000 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp07028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 26IKGhFJ36307358 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 18 Jul 2022 20:16:43 GMT Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2EBB4BE051; Mon, 18 Jul 2022 20:16:43 +0000 (GMT) Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F2B0ABE04F; Mon, 18 Jul 2022 20:16:42 +0000 (GMT) Received: from [9.41.99.180] (unknown [9.41.99.180]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTP; Mon, 18 Jul 2022 20:16:42 +0000 (GMT) Message-ID: <108d23bd-30f2-b1e9-6e0c-7d9f77d04049@linux.vnet.ibm.com> Date: Mon, 18 Jul 2022 15:16:43 -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 From: Thinh Tran Subject: Re: [PATCH] config: set pkgconfig for ppc64le To: Ali Alnubani , "NBU-Contact-Thomas Monjalon (EXTERNAL)" Cc: "dev@dpdk.org" , David Christensen References: <20220707114128.1635863-1-alialnu@nvidia.com> <10833404.lRi8OiJO2u@thomas> Content-Language: en-US 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: 9opQZupodatjrIzhI514_mQG2JF3CU2d X-Proofpoint-GUID: 9opQZupodatjrIzhI514_mQG2JF3CU2d 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-18_20,2022-07-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 adultscore=0 bulkscore=0 spamscore=0 mlxscore=0 clxscore=1015 lowpriorityscore=0 mlxlogscore=880 malwarescore=0 priorityscore=1501 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2207180085 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 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? Hi Ali, Sorry for the delay. Cross-build failed - missing the stdio.h same as yours on Fedora 30 and 35. checking gcc-powerpc64-linux-gnu.x86_64 and gcc-powerpc64le-linux-gnu.x86_64 packages, both do not ship stdio.h and other header files: pthread.h, inttypes.h, etc... We are investing this issue. Regards, Thinh Tran