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 D690CA052A; Tue, 26 Jan 2021 18:04:19 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B72AC140EFD; Tue, 26 Jan 2021 18:04:19 +0100 (CET) Received: from hqnvemgate26.nvidia.com (hqnvemgate26.nvidia.com [216.228.121.65]) by mails.dpdk.org (Postfix) with ESMTP id 2DC0C140DAC for ; Tue, 26 Jan 2021 18:04:18 +0100 (CET) Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 26 Jan 2021 09:04:17 -0800 Received: from HQMAIL107.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Tue, 26 Jan 2021 09:04:17 -0800 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Tue, 26 Jan 2021 09:04:17 -0800 Received: from HKMAIL103.nvidia.com (10.18.16.12) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 26 Jan 2021 17:04:16 +0000 Received: from HKMAIL101.nvidia.com (10.18.16.10) by HKMAIL103.nvidia.com (10.18.16.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 26 Jan 2021 17:04:13 +0000 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.102) by HKMAIL101.nvidia.com (10.18.16.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 26 Jan 2021 17:04:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PmfUA+j+/GK6rfHVfQ788DEPGpFeHXu1kEYqjyAr95CimZEe0GyjqxFNNpDyofk3mDfKMG5p4Q8Y6LKkUAqT2y6UNBUSVTLKJ6bFmwFoNk5NEjqFY24GQsr5imOEOSKcd/qVzyzcx8nIP/D7byOx+40LjQ/OsLt+gXEB0/iVbYYedf2RscepxYEgBP5K8VvTNIVh01Stj6xgqJQHiwoUitYjVWU5hfxKtJp2NIdWpBbaNgM4LAZ3yitk5BqaLo6IH0T/re3+OgWmIAG0jFtG798J/hSrUwQBicJXuc9vInZO+Dphkhz4U92uVOsD11eBGtmKWYTVdpSx8iJvtYJoZQ== 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=lULBrXBN7oYfgGo6fxmZiSrf9x99/2GiC8IrkRrmOco=; b=ONPqs2s80yLmgsgFWOWHy0x9SWkDVKYYQY17J5CwNpabNL3BMfqhdBnGa/abBmqWIyKt5GYPKkO6tGw42orfVW8Wq4F3Ah1nk7vPTY0oqUz81u7H1FrPAqMr3/+NPiLpFLdxwqAg1WXKlHQK/HMb6MQA00/grmQKsyLCsl6rqivxGyrHfDu36fHsh4WxA0GpCVXlfAUwjYqu7YoOA+9XgemqRg3wMN3Yvc3uwwG92x0nOQ2XZbIJsEWpGwdFUq6iGb1pZWP4k4325Rg8y2abNKWgf/iBnKe54MQyx+8S4/QYToVZ0Y13TwmPu3r70c+mR56FXZZ4LudjsfUXs9gpIA== 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 Received: from DM6PR12MB3945.namprd12.prod.outlook.com (2603:10b6:5:1c2::27) by DM6PR12MB3034.namprd12.prod.outlook.com (2603:10b6:5:3e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.14; Tue, 26 Jan 2021 17:04:12 +0000 Received: from DM6PR12MB3945.namprd12.prod.outlook.com ([fe80::d1dc:9fb2:4724:53df]) by DM6PR12MB3945.namprd12.prod.outlook.com ([fe80::d1dc:9fb2:4724:53df%7]) with mapi id 15.20.3784.019; Tue, 26 Jan 2021 17:04:11 +0000 From: Tal Shnaiderman To: Leyi Rong , "qi.z.zhang@intel.com" , "pallavi.kadam@intel.com" , "ferruh.yigit@intel.com" , "ranjit.menon@intel.com" , "beilei.xing@intel.com" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] net/i40e: fix mingw build error Thread-Index: AQHW8/yCTITjuvUAIkyVIANhnRvYf6o6IX9w Date: Tue, 26 Jan 2021 17:04:11 +0000 Message-ID: References: <20210126153819.63625-1-leyi.rong@intel.com> In-Reply-To: <20210126153819.63625-1-leyi.rong@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [77.137.141.17] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 33c69320-195b-466b-fe44-08d8c21c6737 x-ms-traffictypediagnostic: DM6PR12MB3034: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: kNH8+LoQoZWDkHSi+COnvQ26IFHNaVlQnpDUwlkNocNwHGKVT1SM5C07pSn7NhYy978RisOHtx3tDfDKREr0MgNr0/6I9jbLDaxMeaAFXiwiBIlwm6rmqvA8BCII1qvpFaPHcaLOVPmnQD71kdPkjsXrwsOS6nFKRHjUvBXh1jyn6y5+MXO9BO39/8ft1vjMVz4O9NotnlNf4bSPOK8ZUEvR86a1Hvk6KyuAQPZLJW8+Qy8y3tobHUiG+44qd9IrFKpJ7SRrJrBneK7TO14rqmSMaOmynAkp3xiDEbIhhPN091S7OiZtEaWQwYSu9c7wDlscDLUi/KRpc2bX5ac00cGn/89Gb0BKl8wxxyEdlMXpokjPCWQ5fFDZa9lFJgFw+cMULIakXM6FVHCxfNXEHAUS6eoVxFhemQZjfkYSKiXd54U7Wa73BaeC7HeYxCEUEIxz2+u+5a4bOQ9Ljo0MP/IOGT6bBCxZVsubQ/dyKe1kIN5Amv2aniJG1gXpKfFQfhLnf9Rdwew8/aHT6uAGPA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB3945.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(39860400002)(376002)(366004)(396003)(136003)(66446008)(8936002)(64756008)(33656002)(52536014)(66556008)(66946007)(86362001)(26005)(83380400001)(4326008)(71200400001)(7696005)(55016002)(8676002)(186003)(5660300002)(110136005)(316002)(2906002)(478600001)(6506007)(9686003)(76116006)(66476007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?4rYsYtlX/NhhGkNYZlJ2TUwXDtEeTUSeSiAXanIJE5LDHZw+xKW/KeK5tiKF?= =?us-ascii?Q?LlKmGF94Ohb3m2u0iI4pYigNa9i3KCiZt6wmvYfKQK8tVkPlyxI8khN1+5Xp?= =?us-ascii?Q?T89D0mPiMUepgnAAWiXUK3JAkZex7L7fUJtm1dUx3ekEz+LFYRXQumKjck1s?= =?us-ascii?Q?OvKpfjDA/oKqentXsengPCnB2vnPytX21UFQyLTDDemH7h5qaIH6DSX2xADB?= =?us-ascii?Q?z+6uW6u/EcK5iXQnoT7zhZ48tzw3vhC05bkAthmt1eW9rDQVjfO3sNnNJ3ks?= =?us-ascii?Q?DkLl1o66/Qs0ED4igbsY34/UcCqUexOYmXKK+dSagpAFEa+NdDcLLsK/Mu53?= =?us-ascii?Q?z/Iwwl2QxHDNgW2tZf4VfA1pBymRUp5UgZ8Tc8eZAl0UgAKSj4aOBk/MBz4p?= =?us-ascii?Q?UKvxDk7JKzXMcUtgacrHEN/x4T/qF5+I2zCWJTvc3lqRR5h/j5j40p+tjQKe?= =?us-ascii?Q?Ma9nTXH0nSugp7zimKfBVxBnq+Pb0auJSQaewk+QiSacLyG2JLBEhH0vnYwQ?= =?us-ascii?Q?sy8NrEpn9vEvLWxdFSUWdF+jF0tCkeQ5CgjvELksd+Dj0dBq2XEmI04yYvf9?= =?us-ascii?Q?RzVeCCkLiBr/7cE+SQZs9egQn/Qj7VNELBvJwMElVoSk36QbfggN7DvOXi98?= =?us-ascii?Q?MI66UvmJuCkZUqtTtlQvipp4D7lbvu+V0OsNMo4SXogaFmSPV6vLbDAiQIlm?= =?us-ascii?Q?satLFD9ynx5XURfLxlyVJ/GTvM2J9J5TwkoyNSq/icbiMZJPWE6BjHto3hYa?= =?us-ascii?Q?LDxhQaE07O4dfXufnkjUBR2Pps/4RBtnFCGyt7XlPeRdw3XNoagWzCXo01Jx?= =?us-ascii?Q?tqv0whYu86xQVmQgfXoyB4KfvLIbOs8BgNP87U24v26wCO9BIXXm8A0MJDA+?= =?us-ascii?Q?5bFJ5rgtE/rBLe9kug5M3PgV+OnFKiCh/+i19KmaDyT9pS/MNvkfVB9YZ9gX?= =?us-ascii?Q?uOwzVjkMP8iIxacI4r7Ytla06tI+Xpurn4JL9INo9BoPUgyGyPk4vb3R4hDA?= =?us-ascii?Q?XCv0n3BCxz+qnZRzk1ilwFvbDnHeIhYr+7htRJvFb1MZqRVk9qfgnRYxvh+o?= =?us-ascii?Q?SbWUHdYT?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3945.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 33c69320-195b-466b-fe44-08d8c21c6737 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jan 2021 17:04:11.8301 (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: GvXJm0e1Pbs15ftoVzYRKdmxz61uavJeW9d1/dwlElx4QU/6mW+gFoObj9I6LqHUZp2OaCUGYffDP+PoQ5VaNg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3034 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1611680657; bh=lULBrXBN7oYfgGo6fxmZiSrf9x99/2GiC8IrkRrmOco=; h=X-PGP-Universal:ARC-Seal:ARC-Message-Signature: ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic: Thread-Index:Date:Message-ID:References:In-Reply-To: Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers:x-ms-exchange-senderadcheck: x-microsoft-antispam:x-microsoft-antispam-message-info: x-forefront-antispam-report:x-ms-exchange-antispam-messagedata: x-ms-exchange-transport-forked:Content-Type: Content-Transfer-Encoding:MIME-Version: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=i9z8r/DJVsn+DwMmiUaUR5XOvw4h9qtjfKVNpBk08hsNBng3buMuB1NtDYLDqsqFY bqP97ww1YH7Iyoskku9/qTz2MzdfbZsUIihUeHsMaeBenvPIJ4dkq/Pc6Sz8VHwT9+ OkLaMuw6FUCDaCZ1tcDI1aD6XquYeOAwtkuKJUHe0/TqaMro26J+A60adMCXIZS28h HIn36GTNJlrlFaQPUlK/u1FP7AFluveaPJPx+O6VCjC813eAftelKajTFaC1lyf0tx nGTW9QXEEzb9+RoWHmZl1tlzDPyfNhklr2OejZqKLkZuovwP8qTjKJhdTalk8ese+T vC3QK2p4793Ng== Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix mingw build error 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 Sender: "dev" > Subject: [dpdk-dev] [PATCH] net/i40e: fix mingw build error >=20 > External email: Use caution opening links or attachments >=20 >=20 > Disable i40e avx512 code path for windows build to avoid the mingw build > error. >=20 > Fixes: e6a6a138919f ("net/i40e: add AVX512 vector path") >=20 > Signed-off-by: Leyi Rong > --- > config/x86/cross-mingw | 3 +++ > drivers/net/i40e/meson.build | 2 +- > 2 files changed, 4 insertions(+), 1 deletion(-) >=20 > diff --git a/config/x86/cross-mingw b/config/x86/cross-mingw index > 4c15a7fa2e..48a82b457e 100644 > --- a/config/x86/cross-mingw > +++ b/config/x86/cross-mingw > @@ -11,3 +11,6 @@ system =3D 'windows' > cpu_family =3D 'x86_64' > cpu =3D 'native' > endian =3D 'little' > + > +[properties] > +c_args =3D '-mno-avx512f' Should be in a different patch since it effects the whole project. > diff --git a/drivers/net/i40e/meson.build b/drivers/net/i40e/meson.build > index c0acdf4fd4..c9a1a50407 100644 > --- a/drivers/net/i40e/meson.build > +++ b/drivers/net/i40e/meson.build > @@ -54,7 +54,7 @@ if arch_subdir =3D=3D 'x86' > cc.has_argument('-mavx512f') and > cc.has_argument('-mavx512bw')) >=20 > - if i40e_avx512_cpu_support =3D=3D true or i40e_avx512_cc_support = =3D=3D true > + if not is_windows and (i40e_avx512_cpu_support =3D=3D true or > + i40e_avx512_cc_support =3D=3D true) DmitryK already mentioned it previously; you only need to disabled MinGW64 = since clang isn't seeing those errors. > cflags +=3D ['-DCC_AVX512_SUPPORT'] > avx512_args =3D [cflags, '-mavx512f', '-mavx512bw'] > if cc.has_argument('-march=3Dskylake-avx512') > -- > 2.17.1