From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7429FA09EE; Sat, 12 Dec 2020 03:34:31 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 70B23A54E; Sat, 12 Dec 2020 03:34:29 +0100 (CET) Received: from nat-hk.nvidia.com (nat-hk.nvidia.com [203.18.50.4]) by dpdk.org (Postfix) with ESMTP id 9A7214C7B for ; Sat, 12 Dec 2020 03:34:26 +0100 (CET) Received: from HKMAIL102.nvidia.com (Not Verified[10.18.92.9]) by nat-hk.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Sat, 12 Dec 2020 10:34:24 +0800 Received: from HKMAIL101.nvidia.com (10.18.16.10) by HKMAIL102.nvidia.com (10.18.16.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sat, 12 Dec 2020 02:34:22 +0000 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.108) by HKMAIL101.nvidia.com (10.18.16.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Sat, 12 Dec 2020 02:34:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FLca0t3SyRVekpiLZsgsSGofwwTkOYfthX0anrsmy1vuUCQIZ9WvzOPbJmf/LvAWbOFOLteKydzLKv3NE2OT8aYqL6SZZGsos3yfJHeYa6VfcuxZFI/2uSDQ8dohZ+QpZcOSWKIPS+1WTysxtSheVGUgMRIfHOJhJuZRzSIVWHFYGEiJBQm7F6zCqHPXXGAiO2W9IKXbV2WhBllzx0CVW+lldXbJbOanFTxVFh6zuwWDXxbCZPTiIh3diO76ASaXb0Ma+jnKBIsD7GcxJBw+q6YrU8yya0Eqzfnugsp85bEUkyDK4N4W/HwmeIQ8wo1S9K9UvHQH/1aQ1UF/JZSNLA== 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=6fIBGG9/ODQ1FPuxeI8/SVegsgjJiZ8y259Y9q15zOA=; b=n7IM0IfTtmJPpg2lfFqTnZELqAl9axpI2/RLMo5nJFZMvI5cglRBfczd2whBeBYEhQzdOxuCxXpOkiVjvGsJWZeQkMNsBGBeV5eR59/CHOX+2Oew/+o7pKpIdCwdfRCCNPRNhuQ4yZytiub2m/wzXFFKMHOo2uApgSsB8lhjoMT+meGEEHft6HzGn/TQM1mhn082LqVJWqnYDKgLXfpQZsDMnklpnqS5/TZ+nHrcLUr35EdKRWWPptz+FcLcEK2/TihdjS1zISpMDgvN8tUJT8XCBmgvHieBrO4e86JJpAMkMsE+dfA1+vxNP5hvxEoZnye7VxkllVkL9Cu+MYGzHA== 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 DM5PR1201MB0169.namprd12.prod.outlook.com (2603:10b6:4:55::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.13; Sat, 12 Dec 2020 02:34:19 +0000 Received: from DM6PR12MB3945.namprd12.prod.outlook.com ([fe80::fc92:3e29:29d1:27b2]) by DM6PR12MB3945.namprd12.prod.outlook.com ([fe80::fc92:3e29:29d1:27b2%6]) with mapi id 15.20.3654.019; Sat, 12 Dec 2020 02:34:18 +0000 From: Tal Shnaiderman To: Dmitry Kozlyuk , Matan Azrad CC: "dev@dpdk.org" , NBU-Contact-Thomas Monjalon , Raslan Darawsheh , Ophir Munk Thread-Topic: [dpdk-dev] [PATCH v2 20/33] mlx5/windows: add mlx5 meson file Thread-Index: AQHWzwfem1L714e1WUmSHNgAgQklp6nykGaAgAAni7A= Date: Sat, 12 Dec 2020 02:34:18 +0000 Message-ID: References: <20201027232335.31427-2-ophirmu@nvidia.com> <20201210150648.8784-1-talshn@nvidia.com> <20201210150648.8784-21-talshn@nvidia.com> <20201212024205.0c349fc4@sovereign> In-Reply-To: <20201212024205.0c349fc4@sovereign> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [77.137.115.184] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7fa53784-b92c-4321-9364-08d89e466d10 x-ms-traffictypediagnostic: DM5PR1201MB0169: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: bJnvz71pGgDV515yIc9uj1/xMRHYtZJPFUDWnQCt5JecAR/PH/kjDjXU07nmbU9ZnEOBJV+jmGMitxMFj0p3atOrO7Lwcri0llRkysrMCx4zeHYHcoMvRA+STlcTLgm3dxNKo4/r4fgUmYHvjkwgun7+9iOFEJ6lDbIY2HLaFVI7kw60wwHnaYMRyiuP1p3Jxx+EZoWN36LSqBk8JcxXI81Fbr6wO8rn3hnZOl8EU7Myvu1uIafF5FUfE4c5GxE+cIZPv2zBhK5/pjIMYB0foKiCj06XgyFZlo1l8+kbCCKxJxUcRP1pSvCwQUnfvRaOBu3wb2Rw3LiStcQAwKeOZW6MhClXzUv8DNrDh4CpZjiYXo2ok7OJUB/IbJhD2Nx0f1eBPB9bmNSJsopxTfU7uA== 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)(366004)(346002)(376002)(136003)(83380400001)(71200400001)(52536014)(107886003)(26005)(7696005)(186003)(76116006)(33656002)(55016002)(45080400002)(4326008)(110136005)(66946007)(508600001)(66446008)(54906003)(66476007)(66556008)(5660300002)(86362001)(64756008)(8936002)(8676002)(6506007)(6636002)(9686003)(2906002)(966005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?FnuDHiaSGQd+aD6FvwqonqVvzKQyafnuxHI+7rXAfPohoq801DS9xqSrvrH/?= =?us-ascii?Q?TPYK5u2xSYv3e5YatztfcCFeMiC6kmXQSdGafzX9WOhFByAfX9qDas4ncOOn?= =?us-ascii?Q?0r91SSPe+911Ct3hOUkBNojyPf93QlKi2QZ8CcEMP1Hu/XD40wp4rieigBdm?= =?us-ascii?Q?Yg2GloQeAEJFa2ZkGWBh+z5VzZhJ9B09mDSJ2wXVOc+aMX0zkfo38eXiJAHb?= =?us-ascii?Q?JbAQZ059L7NdsmtV9iryoPBwtg2NAB7mFvKOR4vh/6p+DgZa0MZYwolTQ44x?= =?us-ascii?Q?jRYgOx/sEFcMYbNukA6NpUo6iVEwuLPKQFSgs/QvsJIqUegeT51wcWy5SGp7?= =?us-ascii?Q?U0cS/wAxZo7aZmIhmZGzn+SM1vyxPR1duxzpQWcrSFg10FattYRihFLv39pQ?= =?us-ascii?Q?bHOo1TY0wQZw8vrPqmhpG1oj4+aHSD+GuCeX7c4Nn4++mP51migmOKF71ss4?= =?us-ascii?Q?9C9ye3YgQ4Q6x3qugIiyOAsQWxbf/9CghkuUcjseBjgHibWU4yrENGNNmI0K?= =?us-ascii?Q?UdOsbdRRVZq4OIGV5QHs+U33MqSsI0Ttx8WWnLn0x+GwpDAMigew260HpbcF?= =?us-ascii?Q?Xgi6pQNT8pCqIrd0R2RIUX/IOXKxw7ges7I1CuqbXESuePmmFaeBe4UdHy6T?= =?us-ascii?Q?Tfn+SlauWRqHMEAsIrDIDbwGiK3vS2UJlTspUjDgFgRD+m/LWF2uA6j6Z8xG?= =?us-ascii?Q?QUSklHqFKj0S8qCjcNYMGgZRL15lXFtUcEzhdWyMUC2nGOQcc5qv6jK4aGbg?= =?us-ascii?Q?qQApIa5C47MH3Otw+jPASUlGLoT/3mvkY09xCpcaQsNsBBqnP2PxrzKoRTsA?= =?us-ascii?Q?P1hmGPq4oZlXTBjxZ0Ph/i3eeKB3NpN3SJVDJbtY9wg4nZSzFxVOTh2NEbgj?= =?us-ascii?Q?A36Bs3z3j6PDCE09lQIbn8Kfi8PssSTFjRNweJASMjwEeZ8HTFKaTEP8ne8n?= =?us-ascii?Q?3WtLldT0GpfrHnMaPsqD0EqHHx5dWDuenpoYlLtCPw8=3D?= 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: 7fa53784-b92c-4321-9364-08d89e466d10 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Dec 2020 02:34:18.3779 (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: 6BnzykYR2MENYN0O3Xe0LITwjX6pIyjcHm4nqXxbCoCgLllXzj7s15B3k/sOUt6SY7LnKlRpSGMolSU5GRewTw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB0169 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1607740464; bh=6fIBGG9/ODQ1FPuxeI8/SVegsgjJiZ8y259Y9q15zOA=; h=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-ld-processed: x-ms-exchange-transport-forked: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: 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=XAEsdFdtWT2/1Fx6qc4odJWmycocjq+QlbFTiUk25ccWh8nbXSmVN20VBONPmFzQs sECIBXpT8J+tU9dPAXQMp6FcAq7GlL/oNYreU1e8Bak1eG3wARvzdWTU3eatMRAcPe t7Brv5qZ9O5/0c8uYFwwEheURy4Zq3XIfDkY/BsBkiFQLj4KK5FZBS78oVrSU6adrc zSDq/Aq8iYROxuxpLDvUhWDJHjS+R4zRcIb0jpfZKtuV2U9T6LliNt2/B+tqQIPSj2 tJsYglKJq8mzJnjtbPD0ERXALSFghddOKmvuh2zKx9P5z+KK+XYTD2pwmsOxeoBFs9 gfjIbZREn5tkA== Subject: Re: [dpdk-dev] [PATCH v2 20/33] mlx5/windows: add mlx5 meson file X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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: Re: [dpdk-dev] [PATCH v2 20/33] mlx5/windows: add mlx5 meson > file >=20 > External email: Use caution opening links or attachments >=20 >=20 > On Thu, 10 Dec 2020 17:06:35 +0200, Tal Shnaiderman wrote: > > File drivers/common/mlx5/windows/meson.build is added to enable mlx5 > > source files compilation under common windows directory. > > A Devx SDK tool must be installed to export two external H files: > > mlx5devx.h and mlx5_ifc_devx.h. The installation is based on > > environment variable DEVX_INC_PATH. In addition a DLL lib file is > > installed based on environment variable DEVX_LIB_PATH. The meson file > > is using the environment variables for compilation and linkage. >=20 > I installed WinOF-2 for Windows Server 2019 from this page: >=20 > https://www.mellanox.com/products/adapter- > software/ethernet/windows/winof-2 >=20 > Then I installed DevX SDK from C:\Program Files\Mellanox\DevX SDK and set > environment variables: >=20 > $env:DEVX_INC_PATH =3D "C:\Program > Files\Mellanox\MLNX_WinOF2_DevX_SDK\inc" > $env:DEVX_LIB_PATH =3D "C:\Program > Files\Mellanox\MLNX_WinOF2_DevX_SDK\lib" >=20 > Meson complained no more, but the build failed, log is below. > What am I missing? Note: I'm building the whole series. Thanks for testing Dmitry, this is an patches order issue on my side, the c= ommon build patch should come in the next series. I'll fix in v3. >=20 > Another question, why there's a clang restriction? >=20 On the current release we've ported and tested the PMD and SDK for clang, o= nce we'll do the same for MinGW64 we'll remove this restriction.=20 > [149/203] Compiling C object > drivers/a715181@@rte_common_mlx5@sta/common_mlx5_mlx5_common > .c.obj. > FAILED: > drivers/a715181@@rte_common_mlx5@sta/common_mlx5_mlx5_common > .c.obj > clang > @drivers/a715181@@rte_common_mlx5@sta/common_mlx5_mlx5_comm > on.c.obj.rsp > In file included from ../../drivers/common/mlx5/mlx5_common.c:13: > In file included from ..\..\drivers\common/mlx5/mlx5_common.h:18: > ..\..\drivers\common/mlx5/mlx5_prm.h:363:31: error: field has incomplete > type 'struct mlx5_wqe_srq_next_seg' > struct mlx5_wqe_srq_next_seg next_seg; > ^ > ..\..\drivers\common/mlx5/mlx5_prm.h:363:9: note: forward declaration of > 'struct mlx5_wqe_srq_next_seg' > struct mlx5_wqe_srq_next_seg next_seg; > ^ > ..\..\drivers\common/mlx5/mlx5_prm.h:364:27: error: field has incomplete > type 'struct mlx5_wqe_data_seg' > struct mlx5_wqe_data_seg dseg; > ^ > ..\..\drivers\common/mlx5/mlx5_prm.h:364:9: note: forward declaration of > 'struct mlx5_wqe_data_seg' > struct mlx5_wqe_data_seg dseg; > ^ > In file included from ../../drivers/common/mlx5/mlx5_common.c:14: > In file included from > ..\..\drivers\common/mlx5\windows\mlx5_common_os.h:15: > In file included from ..\..\drivers\common/mlx5\mlx5_common_mr.h:19: > ..\..\drivers\common/mlx5/mlx5_common_mp.h:29:7: warning: forward > references to 'enum' types are a Microsoft extension [-Wmicrosoft-enum- > forward-reference] > enum ibv_wq_state state; /* WQ requested state. */ > ^ > In file included from ../../drivers/common/mlx5/mlx5_common.c:14: > In file included from > ..\..\drivers\common/mlx5\windows\mlx5_common_os.h:16: > In file included from > ..\..\drivers\common/mlx5\windows/mlx5_win_ext.h:12: > In file included from C:\Program > Files\Mellanox\MLNX_WinOF2_DevX_SDK\inc\mlx5devx.h:26: > C:\Program > Files\Mellanox\MLNX_WinOF2_DevX_SDK\inc/mlx5_ifc_devx.h:95:45: error: > field has incomplete type 'struct mlx5_ifc_dest_format_struct_bits' > struct mlx5_ifc_dest_format_struct_bits dest; > ^ C:\Program > Files\Mellanox\MLNX_WinOF2_DevX_SDK\inc/mlx5_ifc_devx.h:95:12: note: > forward declaration of 'struct mlx5_ifc_dest_format_struct_bits' > struct mlx5_ifc_dest_format_struct_bits dest; > ^ > ../../drivers/common/mlx5/mlx5_common.c:323:15: warning: implicit > declaration of function 'mlx5_os_get_devx_uar_base_addr' is invalid in C9= 9 > [-Wimplicit-function-declaration] > base_addr =3D mlx5_os_get_devx_uar_base_addr(uar); > ^ > ../../drivers/common/mlx5/mlx5_common.c:323:13: warning: incompatible > integer to pointer conversion assigning to 'void *' from 'int' [-Wint- > conversion] > base_addr =3D mlx5_os_get_devx_uar_base_addr(uar); > ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 3 warnings and 3 errors generated. > [151/203] Compiling C object > drivers/a715181@@rte_common_mlx5@sta/common_mlx5_mlx5_malloc.c. > obj. > FAILED: > drivers/a715181@@rte_common_mlx5@sta/common_mlx5_mlx5_malloc.c. > obj > clang > @drivers/a715181@@rte_common_mlx5@sta/common_mlx5_mlx5_malloc. > c.obj.rsp > In file included from ../../drivers/common/mlx5/mlx5_malloc.c:11: > In file included from ..\..\drivers\common/mlx5/mlx5_common_utils.h:8: > In file included from ..\..\drivers\common/mlx5/mlx5_common.h:18: > ..\..\drivers\common/mlx5/mlx5_prm.h:363:31: error: field has incomplete > type 'struct mlx5_wqe_srq_next_seg' > struct mlx5_wqe_srq_next_seg next_seg; > ^ > ..\..\drivers\common/mlx5/mlx5_prm.h:363:9: note: forward declaration of > 'struct mlx5_wqe_srq_next_seg' > struct mlx5_wqe_srq_next_seg next_seg; > ^ > ..\..\drivers\common/mlx5/mlx5_prm.h:364:27: error: field has incomplete > type 'struct mlx5_wqe_data_seg' > struct mlx5_wqe_data_seg dseg; > ^ > ..\..\drivers\common/mlx5/mlx5_prm.h:364:9: note: forward declaration of > 'struct mlx5_wqe_data_seg' > struct mlx5_wqe_data_seg dseg; > ^ > In file included from ../../drivers/common/mlx5/mlx5_malloc.c:12: > In file included from > ..\..\drivers\common/mlx5\windows\mlx5_common_os.h:15: > In file included from ..\..\drivers\common/mlx5\mlx5_common_mr.h:19: > ..\..\drivers\common/mlx5/mlx5_common_mp.h:29:7: warning: forward > references to 'enum' types are a Microsoft extension [-Wmicrosoft-enum- > forward-reference] > enum ibv_wq_state state; /* WQ requested state. */ > ^ > In file included from ../../drivers/common/mlx5/mlx5_malloc.c:12: > In file included from > ..\..\drivers\common/mlx5\windows\mlx5_common_os.h:16: > In file included from > ..\..\drivers\common/mlx5\windows/mlx5_win_ext.h:12: > In file included from C:\Program > Files\Mellanox\MLNX_WinOF2_DevX_SDK\inc\mlx5devx.h:26: > C:\Program > Files\Mellanox\MLNX_WinOF2_DevX_SDK\inc/mlx5_ifc_devx.h:95:45: error: > field has incomplete type 'struct mlx5_ifc_dest_format_struct_bits' > struct mlx5_ifc_dest_format_struct_bits dest; > ^ C:\Program > Files\Mellanox\MLNX_WinOF2_DevX_SDK\inc/mlx5_ifc_devx.h:95:12: note: > forward declaration of 'struct mlx5_ifc_dest_format_struct_bits' > struct mlx5_ifc_dest_format_struct_bits dest; > ^ > 1 warning and 3 errors generated. > [154/203] Compiling C object > lib/76b5a35@@rte_hash@sta/librte_hash_rte_cuckoo_hash.c.obj. > ninja: build stopped: subcommand failed.