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 6179BA09EE; Sat, 12 Dec 2020 00:42:13 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7C5C3BC84; Sat, 12 Dec 2020 00:42:11 +0100 (CET) Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) by dpdk.org (Postfix) with ESMTP id DBEC1AC9E for ; Sat, 12 Dec 2020 00:42:08 +0100 (CET) Received: by mail-lj1-f180.google.com with SMTP id f24so12801298ljk.13 for ; Fri, 11 Dec 2020 15:42:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RKK7ESIpOYntQI8c222i1WVIsqogGh2TbIEzf+C0LYo=; b=MaSiZW/Prm9TgKjA2s+ZX3aprn9nuUXjXFl19kSnsvpRYWKno0luGcgxbiJg/OGnqh dDWJmVDvCFZECyEazF/uJiCgxtd+9WK9Kyx4Jop02ZA2+qpuL/vmt6uiwm36LS2OgP+H hb8KScdzrOtBwnxuvbLNp1qbSWu4l0VSM2Rid7oi2N9RP8jaDMWzVk9wLeBOX38QQYo0 HwLKDKfYrvh7pX7fj5MqaiE8oHSMKkMgAX61iKENKiiKUBONv1adlGeLzpLUUX5XvSMK e81FlcXF360vK06ZnEFI5Rst4uI51wTNvpDrv4V7P3vLkcVy2pQBkALPpNR7V3xCNbzR mPng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RKK7ESIpOYntQI8c222i1WVIsqogGh2TbIEzf+C0LYo=; b=A6wGh56UXhL94kY/AAiIuKdY4BVIqxjyUgfAWGxwmBiwFPT1xdOuSpn2DRc30ECy00 98IdLbIpGhEAqrdlOaotR+tsM7LjZYjWYvlkBTchEDw1XUO4sOLcs4sx+JcNMlqH4rt2 fw4q7NdPL88RJCpOT7R4+jmH2c5Fua8EPdrM5+tkhvfNP+E5HgxO20xi2bQvo6kCCwou bk2yEPEm1AAQoUtT4m0gqUaTvjr2DINBJ0HH9ppdmsam+BBe+TI85homI4crlbYGGi02 PLgIiBQSyjWVKHnrRHvVXiZvq0DsUZpBTeCy2sCeshj4F+8XinGBeu2wsN/AxbtpIZJm xkUQ== X-Gm-Message-State: AOAM532H1mhv921eE1heTeRAYPFuX+ruZ6AAubjQUhiv+tRRIGNsvAB4 qrmfwR+XbQ9GpcTCHfRR/zQ= X-Google-Smtp-Source: ABdhPJzZWIMXqJUaWWvGrOkDH6SpO5Phb3fLTD9eH1FQKkpKhPxr+4fvmGoj64k5L1fyBa3SKBXGGw== X-Received: by 2002:a2e:80d6:: with SMTP id r22mr3421209ljg.29.1607730128375; Fri, 11 Dec 2020 15:42:08 -0800 (PST) Received: from sovereign (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id v63sm1045065lfa.89.2020.12.11.15.42.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Dec 2020 15:42:07 -0800 (PST) Date: Sat, 12 Dec 2020 02:42:05 +0300 From: Dmitry Kozlyuk To: Tal Shnaiderman , matan@nvidia.com Cc: dev@dpdk.org, thomas@monjalon.net, rasland@nvidia.com, ophirmu@nvidia.com Message-ID: <20201212024205.0c349fc4@sovereign> In-Reply-To: <20201210150648.8784-21-talshn@nvidia.com> References: <20201027232335.31427-2-ophirmu@nvidia.com> <20201210150648.8784-1-talshn@nvidia.com> <20201210150648.8784-21-talshn@nvidia.com> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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" 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. I installed WinOF-2 for Windows Server 2019 from this page: https://www.mellanox.com/products/adapter-software/ethernet/windows/winof-2 Then I installed DevX SDK from C:\Program Files\Mellanox\DevX SDK and set environment variables: $env:DEVX_INC_PATH = "C:\Program Files\Mellanox\MLNX_WinOF2_DevX_SDK\inc" $env:DEVX_LIB_PATH = "C:\Program Files\Mellanox\MLNX_WinOF2_DevX_SDK\lib" Meson complained no more, but the build failed, log is below. What am I missing? Note: I'm building the whole series. Another question, why there's a clang restriction? [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_common.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 C99 [-Wimplicit-function-declaration] base_addr = 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 = 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.