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 11126A0A0F for ; Fri, 2 Jul 2021 03:46:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EB2304130B; Fri, 2 Jul 2021 03:46:48 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 67A104003E; Fri, 2 Jul 2021 03:46:46 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10032"; a="205650191" X-IronPort-AV: E=Sophos;i="5.83,316,1616482800"; d="scan'208";a="205650191" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2021 18:46:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,316,1616482800"; d="scan'208";a="455792925" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by orsmga008.jf.intel.com with ESMTP; 01 Jul 2021 18:46:43 -0700 Received: from orsmsx606.amr.corp.intel.com (10.22.229.19) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Thu, 1 Jul 2021 18:46:43 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4 via Frontend Transport; Thu, 1 Jul 2021 18:46:43 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.46) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.4; Thu, 1 Jul 2021 18:46:43 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dm4mqcRhdjup6yPIcES8YeUOV+IQ9+XJ+7wWV9+uYVzabC/gUZzSgscYmOxc0NMv7flVELpa6ehB3A1unxLe1MittSsbM8UxEFzZX4x9hbNBSrEH0NR3E10DSu+Sr7oBqyveDGvMXBVn3t4m+vDikPXR6v/SfNVZhtPHZEPJepeZL7EsYq6Yq5lPcyy+6qQAleclCvcyDa7mutGiYKqpy8tj1DwtxC2YMq7+4UO/2zZQN0wRg8Hirmof3TNXFFNaHx5Iwv07PjNzHjh5975w1b1PRqoWZb5tsVEsYOf/1YpzUtsF8e+uztPJT2F7L/xrfHApUp8FfEzLOjAo4UHG7w== 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-SenderADCheck; bh=4kFDLXT7APKL+0QbQ1kQoWzdNi5zeswgKdEOBqwuyNA=; b=WFtLpYh3bNBr9nS/u/B55+dTw23JKeiZscdd/4JklUacPzzHuLqqBul9caP/g0Iz1zvy8N54/Hg4l+wouVUZ/Dkq24jH0S5/Y06Vw/r193gbul2YNAg9TPhIWxxYfkDatOu9Vzjm2kDkKcz5xqgHMxEhZhHtyoaWZEea+RKTUQkHhieft2+J0kq/ygXmrJg4WPg/v4PyWNPqLvacVEHTQxGWxvVrnSTDYdVZZU06FLO7RmcsQmRbit8YGO2s93httIAiQRQp90g5o2NIYrSeatz7JvsF69aDm2PRdymuQ7v7m0Lz3o23pHl1XiaSPOumou3pt8hrwfn7foNzdiLabw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4kFDLXT7APKL+0QbQ1kQoWzdNi5zeswgKdEOBqwuyNA=; b=D0fv1a87Id3Qkp/qoEZ1OGfnQspxNPwHsIYuymY1XGBM8EBXYpws5pFT12/rrvMXW0XQIlPqXU+E9ylNKdJOfAB9C0rkF8Sz+SRLKf59s8eL3SUmKws7ZvKXWntLKovCMMoYF36IJ8jBpG4zZDyUI7ZjcSWAz6R3uj3RP66YO1Q= Received: from MWHPR11MB2013.namprd11.prod.outlook.com (2603:10b6:300:24::23) by MWHPR1101MB2205.namprd11.prod.outlook.com (2603:10b6:301:59::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.20; Fri, 2 Jul 2021 01:46:42 +0000 Received: from MWHPR11MB2013.namprd11.prod.outlook.com ([fe80::a905:455d:50d2:8332]) by MWHPR11MB2013.namprd11.prod.outlook.com ([fe80::a905:455d:50d2:8332%7]) with mapi id 15.20.4287.024; Fri, 2 Jul 2021 01:46:42 +0000 From: "Hussin, Mohamad Noor Alim" To: "Zhang, Tianfei" , "Xu, Rosen" CC: "dev@dpdk.org" , "Huang, Wei" , "stable@dpdk.org" Thread-Topic: [PATCH v2] ifpga/base/meson: fix looking for librt Thread-Index: AQHXbZIJV5y18/YAJ0GgxIIqirdKjqssUwIAgAHJHwCAAMqfwA== Date: Fri, 2 Jul 2021 01:46:42 +0000 Message-ID: References: <20210630092613.70647-1-mohamad.noor.alim.hussin@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.5.1.3 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [115.164.169.176] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4bad78fc-800a-46b1-a6d1-08d93cfb3e23 x-ms-traffictypediagnostic: MWHPR1101MB2205: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: pNSHymsXuECvuimn7I7mwBuSvI/gjjGI1Rm/O3ShqawkuqaXO+AmZRHaTQqnKSLdtqfXYppwR/AbgdO1EEgBqAE1gzvX64eVfGqsiZ7WkbjrFa3PJWhRehaN5n9xzfJW6xozQiVG4hl7qLujO6s5shpMi4pOcUErseIVLiWtScxKCjFKuSVUIvlJAgJnb7N6993Qavp+/Fzo7XBzE30klnxAEaoZLv6QFE1rrnx+MvuyEzwiBQIcoTz0PypPHwleXsx6m96Y7PXPTWl28mokqerr+oR1L/t3fuqNEKaPnR39wJkblVJVHxAXb0+2V19wFCKv7CwfsAKzK3oTFe2gXUt9CkNaOkMJkn/Js5y1wLMKVbZrZmXBLqZR4Q167foRFKx0XPjpWPzNG4hjyx8vu8KnSVD91eLeaX90H81HoDaxb9FK0fDNkE6ZjbAvtDuluWyMiCKWVpOkaozhm7j9yVyDKreenXVH2noRSjb6Cs080iPnpapxX5MJvKeQ05ukPpNXCoD02CoQ+5PxXiTA5wEs1L0ONZj08Uqj5D9Dt2fR2YJMcEmUHQcROaTz9Gg+ddpmqy0d1dGLCDEUI+JiOjW0OR1ao0LG6knqf+DAbRoK4NbfCXv9CfXom1Gla1ObKtgdvJHibLRhaDw+AmRoFQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR11MB2013.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(136003)(39860400002)(396003)(366004)(376002)(76116006)(86362001)(83380400001)(52536014)(66556008)(66476007)(66446008)(33656002)(64756008)(5660300002)(66946007)(71200400001)(38100700002)(9686003)(8936002)(6506007)(53546011)(4326008)(55236004)(122000001)(7696005)(450100002)(54906003)(110136005)(6636002)(316002)(8676002)(186003)(55016002)(478600001)(26005)(2906002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-2022-jp?B?MlZjc1JWeU9uRUtTdzBWdXdtKy9nS25QM0ZWUGVackpTdS9YcEVmaGx1?= =?iso-2022-jp?B?L1oyWnExS0d3dHpzM255bHZ4OENjcDVZRStaeDR6bGZ2dENJd3owUmhW?= =?iso-2022-jp?B?RCtUNnhJV3lTOHdUSjJ6V2lITDcwL1FhNzgvQytuVDJBa1ZpK21RN2p0?= =?iso-2022-jp?B?cVhMUjgwR0FhTFAweVpoQlBZSkcvWnRheG1YTUVMa0ZLMm9UZXNsd3Nn?= =?iso-2022-jp?B?bUhiZk01VlFLcGJUUjRxV3RhMHFHMXhGNEhNd29IYm1sZ0RzcCtqOXBp?= =?iso-2022-jp?B?V1FVRk1VUUxTNzY4dzlrZjBVYVUrSHpjVGJFamg3eDhZOGd6Q1ZKRHRC?= =?iso-2022-jp?B?SUNKUGdySGU0bjN0bDdqRlVoQS81Z2t6c09kNHJTTm9MWkorUXB0Mnhq?= =?iso-2022-jp?B?Q2dwNEo5a1REUjNhZHorbE5hYXI4amtNY205NXYvK2lvU0RlMnlsU0gx?= =?iso-2022-jp?B?dzgyWExxcGZjaGZCdWFNUFNNNkJ4WHVlRWE3Z0tVTU40NEVmbklsSjdm?= =?iso-2022-jp?B?RzJuMEEzcXd5ZTlCTHdDaXMwbjJTTkVsTkdHZWduTUdLbE5nZ3JjU3Jj?= =?iso-2022-jp?B?aVFQWWVHL09pMTd4VFZIc3VPZ1IvOCs4dzE5WFo1NTFmeFd5OG9ubTZH?= =?iso-2022-jp?B?bkhmY2Q5dnE4OHJaMWFFb1krbnpkaGFjeWh6VmxkdWZ2c0ZhL1NpazBQ?= =?iso-2022-jp?B?TGFqdS9XSWhWM0dLdGpiRjZsdGVNTXZVenM3eG1x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VQwR3BKSDVwTGZ5V2ZtVjlPT3hyUGhmcThmTkttOC8v?= =?iso-2022-jp?B?UTdSeXZGVkE2NTlyWDh1T2hCYWlaaHAwSk9jVVduRmVJN3NzekNhMHo5?= =?iso-2022-jp?B?U1NOOERCTHgzdURFOUdQTkkxTTdwUzBrdlBJejVqMjR0MHBVT0V5NEZa?= =?iso-2022-jp?B?ZFBkRXRrVjNQWEU2OEVaZTB0YmtQSEJpTGYxM3VvUWtaZFlic0h5ZG1O?= =?iso-2022-jp?B?OGwwSlRiUFlTdCtabSszNEZMODVVazhJTXdQMXhtSWV2ZmJkZ0F2RG9M?= Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB2013.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4bad78fc-800a-46b1-a6d1-08d93cfb3e23 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jul 2021 01:46:42.4698 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 7lcwD8yfzOBDtBI70kB/Z8/RZA3RAK4h7eGg5/2Mx1jjvKEW64Vfwq6lQ9RgugpcnO7oBfmzAG0OkfHqtH8zuCiNVmoOgXFy3QsCgBMR+TWE/mydJAu8oFL8RuB5HeVC X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1101MB2205 X-OriginatorOrg: intel.com Subject: Re: [dpdk-stable] [PATCH v2] ifpga/base/meson: fix looking for librt X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi Tianfei, To reproduce this, assume using Ubuntu 20.04. 1. Install libfdt (It will include ifpga driver from drivers/raw/ifpga/base= ) $ sudo apt-get install libfdt-dev 2. configure DPDK library $ meson build 3. check libdpdk.pc file in build/meson-private/libdpdk.pc. It will include= path to librt.so without this patch. Regards, Alim Hussin -----Original Message----- From: Zhang, Tianfei =20 Sent: Thursday, July 1, 2021 9:19 PM To: Xu, Rosen ; Hussin, Mohamad Noor Alim Cc: dev@dpdk.org; Huang, Wei ; stable@dpdk.org Subject: RE: [PATCH v2] ifpga/base/meson: fix looking for librt > -----Original Message----- > From: Xu, Rosen > Sent: 2021=1B$BG/=1B(B6=1B$B7n=1B(B30=1B$BF|=1B(B 18:03 > To: Hussin, Mohamad Noor Alim ; > Zhang, Tianfei > Cc: dev@dpdk.org; Huang, Wei ; stable@dpdk.org > Subject: RE: [PATCH v2] ifpga/base/meson: fix looking for librt >=20 > CC Tianfei, who is maintainer. >=20 > > -----Original Message----- > > From: Hussin, Mohamad Noor Alim > > > Sent: Wednesday, June 30, 2021 17:26 > > To: Xu, Rosen > > Cc: dev@dpdk.org; Hussin, Mohamad Noor Alim=20 > > ; Huang, Wei=20 > > ; stable@dpdk.org > > Subject: [PATCH v2] ifpga/base/meson: fix looking for librt > > > > Finding with "librt" keyword would give the output with full path of=20 > > librt such as=20 > > /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/librt.so > > instead of -lrt in libdpdk.pc pkg-config file. > > > > Assume find_library() will prepend "lib", thus remove "lib" from "librt= " > > keyword. The output will shows as -lrt. > > > > This will cause an issue when compile DPDK app with static library=20 > > as the path of librt has been hard-coded in the libdpdk.pc file. How to reproduce this issue? > > > > Fixes: e41856b515ce ("raw/ifpga/base: enhance driver reliability in > > multi- > > process") > > Cc: wei.huang@intel.com > > Cc: stable@dpdk.org > > > > Signed-off-by: Mohamad Noor Alim Hussin=20 > > > > --- > > drivers/raw/ifpga/base/meson.build | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/raw/ifpga/base/meson.build > > b/drivers/raw/ifpga/base/meson.build > > index 8d27c6021..ce592a13a 100644 > > --- a/drivers/raw/ifpga/base/meson.build > > +++ b/drivers/raw/ifpga/base/meson.build > > @@ -27,7 +27,7 @@ sources =3D [ > > > > rtdep =3D dependency('librt', required: false) if not rtdep.found() > > - rtdep =3D cc.find_library('librt', required: false) > > + rtdep =3D cc.find_library('rt', required: false) > > endif > > if not rtdep.found() > > build =3D false > > -- > > 2.17.1