From patchwork Wed May 27 08:24:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fady Bader X-Patchwork-Id: 70597 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0E6D1A04A4; Wed, 27 May 2020 10:24:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E051B1D663; Wed, 27 May 2020 10:24:38 +0200 (CEST) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 0A0471D661 for ; Wed, 27 May 2020 10:24:37 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE1 (envelope-from fady@mellanox.com) with ESMTPS (AES256-SHA encrypted); 27 May 2020 11:24:34 +0300 Received: from l-wincomp04-vm.labs.mlnx (l-wincomp04-vm.mtl.labs.mlnx [10.237.1.5]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 04R8OYvd020855; Wed, 27 May 2020 11:24:34 +0300 From: Fady Bader To: dev@dpdk.org Cc: thomas@monjalon.net, talshn@mellanox.com, yohadt@mellanox.com, olivier.matz@6wind.com, harini.ramakrishnan@microsoft.com, ocardona@microsoft.com, anand.rawat@intel.com, ranjit.menon@intel.com, dmitry.kozliuk@gmail.com Date: Wed, 27 May 2020 11:24:25 +0300 Message-Id: <20200527082425.8188-1-fady@mellanox.com> X-Mailer: git-send-email 2.16.1.windows.4 In-Reply-To: <'20200520093444.14904-1-fady@mellanox.com'> References: <'20200520093444.14904-1-fady@mellanox.com'> Subject: [dpdk-dev] [PATCH v4] eal/windows: ring build on Windows 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" Exported per_lcore__rte_errno function to compile ring for windows. compilation error logs: librte_ring_rte_ring.c.obj : error LNK2019: unresolved external symbol per_lcore__rte_errno referenced in function rte_ring_lookup The cause was that per_lcore__rte_errno function wasn't included in the export list. To solve this per_lcore__rte_errno was added to the Windows export list. Signed-off-by: Fady Bader --- Depends-on: series-9374 ("Windows basic memory management") v4: rebase on "Windows basic memory management" v5. v3: Fix style issues. v2: Fix style issues. --- lib/librte_eal/rte_eal_exports.def | 1 + lib/librte_eal/rte_eal_version.map | 1 + lib/meson.build | 6 +++++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/rte_eal_exports.def b/lib/librte_eal/rte_eal_exports.def index 854b83bcd..cbb6b8cfe 100644 --- a/lib/librte_eal/rte_eal_exports.def +++ b/lib/librte_eal/rte_eal_exports.def @@ -1,5 +1,6 @@ EXPORTS __rte_panic + per_lcore__rte_errno rte_calloc rte_calloc_socket rte_eal_get_configuration diff --git a/lib/librte_eal/rte_eal_version.map b/lib/librte_eal/rte_eal_version.map index dff51b13d..8937bdfea 100644 --- a/lib/librte_eal/rte_eal_version.map +++ b/lib/librte_eal/rte_eal_version.map @@ -392,4 +392,5 @@ EXPERIMENTAL { rte_mem_lock; rte_mem_map; rte_mem_unmap; + __emutls_v.per_lcore__rte_errno; }; diff --git a/lib/meson.build b/lib/meson.build index d190d84ef..30ed9e05e 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -36,7 +36,11 @@ libraries = [ 'flow_classify', 'bpf', 'graph', 'node'] if is_windows - libraries = ['kvargs','eal'] # only supported libraries for windows + libraries = [ + 'kvargs', + 'eal', + 'ring' + ] # only supported libraries for windows endif default_cflags = machine_args