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 11FA5A052A for ; Tue, 2 Feb 2021 15:53:41 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 03EC6240312; Tue, 2 Feb 2021 15:53:41 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 7514924030C; Tue, 2 Feb 2021 15:53:39 +0100 (CET) IronPort-SDR: GdNWfLeW5wK8pCOVMGzVsmMx6N0kZS2vxV1YX3H3Qr0ZFFS1yMAkYYfDChNdU1aWF4i6EsQFQb GZiBJMFM7i0A== X-IronPort-AV: E=McAfee;i="6000,8403,9882"; a="160628765" X-IronPort-AV: E=Sophos;i="5.79,395,1602572400"; d="scan'208";a="160628765" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2021 06:53:38 -0800 IronPort-SDR: hfwf9eQMAZEBelBRxdq0aMQ3d1QSLSnyInsW+7lMIje4rhzU5n6PhbmW+bD9449oZX142yx+g9 dCf0SEWm+DSA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,395,1602572400"; d="scan'208";a="370728243" Received: from dpdk-lrong-srv-04.sh.intel.com ([10.67.119.221]) by fmsmga008.fm.intel.com with ESMTP; 02 Feb 2021 06:53:35 -0800 From: Leyi Rong To: david.marchand@redhat.com, qi.z.zhang@intel.com, ferruh.yigit@intel.com, thomas@monjalon.net, bruce.richardson@intel.com, talshn@nvidia.com, pallavi.kadam@intel.com, ranjit.menon@intel.com, beilei.xing@intel.com, aconole@redhat.com Cc: dev@dpdk.org, ci@dpdk.org, Leyi Rong Date: Tue, 2 Feb 2021 22:32:58 +0800 Message-Id: <20210202143258.108477-1-leyi.rong@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210202090639.83164-1-leyi.rong@intel.com> References: <20210202090639.83164-1-leyi.rong@intel.com> Subject: [dpdk-ci] [PATCH v2] net/i40e: fix avx code error on MinGW X-BeenThere: ci@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK CI discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ci-bounces@dpdk.org Sender: "ci" Adds extra cflags '-fno-asynchronous-unwind-tables' to avoid the MinGW build error: Error: invalid register for .seh_savexmm Fixes: 5c38c33f7880 ("net/i40e: disable AVX512 with MinGW") Signed-off-by: Leyi Rong --- drivers/net/i40e/meson.build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/i40e/meson.build b/drivers/net/i40e/meson.build index f5fc5a17e0..ce3cc658e9 100644 --- a/drivers/net/i40e/meson.build +++ b/drivers/net/i40e/meson.build @@ -28,6 +28,10 @@ includes += include_directories('base') if arch_subdir == 'x86' sources += files('i40e_rxtx_vec_sse.c') + if is_windows and cc.get_id() != 'clang' + cflags += ['-fno-asynchronous-unwind-tables'] + endif + # compile AVX2 version if either: # a. we have AVX supported in minimum instruction set baseline # b. it's not minimum instruction set, but supported by compiler @@ -54,10 +58,6 @@ if arch_subdir == 'x86' cc.has_argument('-mavx512f') and cc.has_argument('-mavx512bw')) - if is_windows and cc.get_id() != 'clang' - i40e_avx512_cc_support = false - endif - if i40e_avx512_cpu_support == true or i40e_avx512_cc_support == true cflags += ['-DCC_AVX512_SUPPORT'] avx512_args = [cflags, '-mavx512f', '-mavx512bw'] -- 2.17.1