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 AAD40A0032; Wed, 13 Jul 2022 12:14:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 98B5C4282D; Wed, 13 Jul 2022 12:14:05 +0200 (CEST) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2075.outbound.protection.outlook.com [40.107.100.75]) by mails.dpdk.org (Postfix) with ESMTP id 1EC7F4069D for ; Wed, 13 Jul 2022 12:14:04 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OIRtopLPpNnXcX2pIzFP6rtf2jZKhHFE7N+AScDDwLnkSOWwidKJzh2YzQh+wm5i6VINnAZPMHiZAciXe4sSRLEKe7oepjwGWTW1MJcPkRDSV/zQv0XtRgR9UXEhqWUgp/gp67x0V4SDTf1RlUjshI9zE5VP6zrIy34/xBsqo1T5mkXKcBCyspzlufplZsoTqR/LvaE7GTcqQ5efUiVgq5Z1p2FFs8FOF1h+ca8ERVY7fZ6XwLwHnML3ksXrgQFlXkFJnN1D8QAc8qvsy3rxtXatlk/yT8pHz69xVLmVJTkJjoRp5APDJtczm7Sk4/C7Dc4EmMbPD2od/wQlJUasyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nQW4zuMc0SsjGTBnTTa4ROFy0fUYU6e+2UeKAR1H11Q=; b=UhicCHQqUNUxX6Os15gNX7Iax84cp/fXVMrHEr0NEVZSlcuo0cvM1PgigI3rXu3B+lflQGc0X1yS+SRV2Gy0CpWNOd9RfLQ2AF9ctNwnPdCmCIYkW7rPxTDFHW8KviiDLiESnVnY5/oHaFPt7WvjqrZPfCMl+sfFgNsX0/Wz6OwlJz4I4TfAB3eHuK/JpYsaTAugc9JiWRyVIwgaKOfMNkbyUIl/QO1I8IOo80FlRCCvHKJIEArjmPJNuqES92QyuMnu93aqDJ0q6bvBc/sJ3ojozg4vHdk+89xmvO/lK70TU1fgYtbTiptLvM++YtiVwBKsjhzWsBeC9NYvR70oTA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nQW4zuMc0SsjGTBnTTa4ROFy0fUYU6e+2UeKAR1H11Q=; b=Mx/vd1CGB5sQoU0YJQ/6WYNxdSbvL16H0oT+0HSlzdUQMsXhUYN04sLFSWOfjQx0FBJhL1nfKVh2Rcq1hsXp0vBedTWK2LDYHtga4wAkTO4Wg2ctTZAUMHWsBQ6QD/bAi3mZ1CAkDWmg3uBWOvPHOP6S7Mx/W+JvFvomXpAD7cJFML3n4U9jgF6B9t9U+9XVUipd247WCDPucg8GJJpsUkMWA6y6gwN+XhJzj6vmhh9jRNXm0okUo0DGWq267pSMXE9f6Py5sbU3TTFKefoyBxEj3V5E8PN7CgCnhex4sdsrO2NRbl/zwK1QsXtofsN4aSt2XlZfOEwoSegzKsDiRA== Received: from DM4PR12MB5167.namprd12.prod.outlook.com (2603:10b6:5:396::10) by MN2PR12MB3581.namprd12.prod.outlook.com (2603:10b6:208:c8::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.20; Wed, 13 Jul 2022 10:14:02 +0000 Received: from DM4PR12MB5167.namprd12.prod.outlook.com ([fe80::8b3:1cc1:b33f:14d4]) by DM4PR12MB5167.namprd12.prod.outlook.com ([fe80::8b3:1cc1:b33f:14d4%8]) with mapi id 15.20.5438.013; Wed, 13 Jul 2022 10:14:02 +0000 From: Ali Alnubani To: "NBU-Contact-Thomas Monjalon (EXTERNAL)" CC: "dev@dpdk.org" , David Christensen Subject: RE: [PATCH] config: set pkgconfig for ppc64le Thread-Topic: [PATCH] config: set pkgconfig for ppc64le Thread-Index: AQHYkfaY9fw6KXg6/UyGjbPSHjIkeK15oKmAgAJOOnCAAB5tgIAAC41g Date: Wed, 13 Jul 2022 10:14:02 +0000 Message-ID: References: <20220707114128.1635863-1-alialnu@nvidia.com> <10833404.lRi8OiJO2u@thomas> <10944950.2OtUDhi4od@thomas> In-Reply-To: <10944950.2OtUDhi4od@thomas> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8d48ec48-0131-47e3-d1b8-08da64b868d3 x-ms-traffictypediagnostic: MN2PR12MB3581:EE_ x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: BSZQzvO5vBXfwavTlTqP4wVTRHhsbuwQ6HTsg1/REm+5bilsNcWvWbF38MAB1t2sO8983QfsXI28ESCefJv3K4qaEINRp/EdC5BZm+Zys9EMhB5U3eClE9jzo73L97uvtKMlDWL6ZJ2dx8yTRxbW7IPVEgzlIwZbShXluFRfA1Eaq6rbsGRy0ZgRXjJKigypD0bQ8Ig0M6I1gw957S8hlYE7Yoco+hytnTa5HjEAsETApXs64KCxy2h8Az5vwVAoQKaXvdxc9LFbbo0G2iY8PPqetzKdDbl7T7L0YJoJvLYdnPJ8DLMqdtURKRecTXqbTctl8ETCLUEVjjSun7fk26+F5gw+eyFZwP/Tu0LkjfICFSp91hX0fVcYAqLX+2xlZoHOnS25zosb00QYnWel6Uu3fga4cxHVJtWTHi9s7Caus4UGMmcl69XSbze7q0Xd1qY6Lxi00lENCYgcL3xolX+xjgWNtNZiX6yjrAbHvDwz6l7D+/TceZoYjax3GVucBfcO6WYNmY5mmrQb7mUyV3Nxe44XdL/Hxg5Xas2MtEtzQzfvjtNH4XNFdLkvS0cWEyZQl4eorSUW67qua5Hhopq3RuQ+047/srgKQr9tHJbP0x+f2pyR8ExBk/BUfBC0wJMh0qE+57xI/a/y3H+VePBGgv3pKgk+abBAneakTGLz+p+GnDjzkW8jfUJqwhJ5t1+fpDu4gX7w5jWE5lTcdUHWdmXMDqiz3NsrGJC3N0x6QRTN93R0zk89MB44dkE1gG+7sM8WuIM4kAGZvnMt3+LfczlSpX7+XRccSGKFvi9LPcpak86NwFcOJz9LdjU+qGIve5peHPdOwzAR/B6OO+cZpR3VLavd+XO+77a6LQb9qNllzmrT/fxsKnwYjoTF1FPI8dTrmPlJ9oaqx+pr0w== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5167.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(366004)(376002)(39860400002)(346002)(396003)(136003)(38100700002)(33656002)(41300700001)(55016003)(2906002)(478600001)(966005)(122000001)(52536014)(6506007)(66946007)(8676002)(8936002)(64756008)(66476007)(26005)(6916009)(5660300002)(9686003)(316002)(66556008)(54906003)(83380400001)(76116006)(66446008)(4326008)(71200400001)(7696005)(86362001)(53546011)(38070700005)(186003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?s1UcGQxOW6JgvvOIVPM3q5FRerppXSNfm/dYcT23P84d2dqzDCr4sqOPMAZK?= =?us-ascii?Q?jvINS7wfUbAYpKlxsl3DabyZbX4eVz8p+zm5tQU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7QEeCQYDuIGtLQQwqHYGasjEoallkjubI/zQV+GKOlQWzX8?= =?us-ascii?Q?Tob7RAbxh0mgtnWpOfcYOC11ALsDORBvVr8Aas//HVPiKNWbYhIVihKvkHhf?= =?us-ascii?Q?8stktAzaEJReff3CBVheNEok1jippgtfacmNDI6F9SjSuUXGe1cKkTOI+RFy?= =?us-ascii?Q?eqrUIoNabzxjrhYLE1iL/DJOjAg3F4PYqCmMsoa6beoTVyWly++UFLT3xOBw?= =?us-ascii?Q?xuOo0nSruxzkgZGYMAB5mOQRGFvDchqMHnX4XMuC3GCgLjf+VDnV5NvCimsP?= =?us-ascii?Q?GoBw//7H7+eeb3dk37Axfa6DnaUvOG5wDK0q53DmmG2bBguz6kHSaITbcLBO?= =?us-ascii?Q?octvoeYxySyT//alxW2d3Dm21XbLtr5HhA30MVuKTTOYq0EsqXQLQBs/6FLg?= =?us-ascii?Q?5zvJ6UapT0wpfhLUs8Vq5vHZMa40hTVunVxymZIo+NII5AD8jlwYPgYp8yM6?= =?us-ascii?Q?e5ClSHoXedCGTnGvSqqs/KDZnZaSRH1KwfLsElfWOILWNeBXJqlf9svfBk+Y?= =?us-ascii?Q?wWbs9sdsmo1ydt+14Ye2yD4DGIl/WdsoSZG1/r0NzfCe9gyfLZ58u6EeHAk4?= =?us-ascii?Q?H60bR1HrLE7ac+IqEDAYnBCMybAyUY9PAUJvh7R2?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5167.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8d48ec48-0131-47e3-d1b8-08da64b868d3 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jul 2022 10:14:02.1506 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: DF2HXkydRJ0UStVE7SGhGtP6r1SLHqqo2vL7qcFAUKuyN+jrIYaJY4H96ahs0DBIwCow3cVjVZWRs3ckuuds0g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB3581 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 > -----Original Message----- > From: Thomas Monjalon > Sent: Wednesday, July 13, 2022 12:12 PM > To: Ali Alnubani > Cc: dev@dpdk.org; David Christensen > Subject: Re: [PATCH] config: set pkgconfig for ppc64le >=20 > 13/07/2022 09:39, Ali Alnubani: > > > -----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 =3D 'powerpc64le-linux-gnu-pkg-config' > > > > I didn't find any operating systems that distribute the powerpc64le cro= ss- > 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. >=20 > So how does it work on Fedora? >=20 On Fedora, the pcc64 cross-compiler is provided by package 'gcc-powerpc64le= -linux-gnu' with binary names /usr/bin/powerpc64le-linux-gnu-*, same as in = Ubuntu. The cross-file config/ppc/ppc64le-power8-linux-gcc doesn't work with Fedora= since the binary names in the file don't have the -gnu suffix, so I'm not = sure where this cross-file is being used. Another issue I found is that when I set the correct binary names in config= /ppc/ppc64le-power8-linux-gcc or use config/ppc/ppc64le-power8-linux-gcc-ub= untu, I get the following error on Fedora: config/ppc/meson.build:6:4: ERROR: Problem encountered: Only 64-bit com= piles are supported for this platform type It happens because cc.sizeof('void *') in https://git.dpdk.org/dpdk/tree/co= nfig/meson.build#n144 returns '-1'. I'm on Fedora 35. Is anyone able to cross-build for ppc64le in Fedora?