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 43CFCA052A; Tue, 26 Jan 2021 16:59:56 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 227F3140DAF; Tue, 26 Jan 2021 16:59:56 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 2F00F140D5B for ; Tue, 26 Jan 2021 16:59:54 +0100 (CET) IronPort-SDR: iVa4vtfUP8ajjNR0yQ1QKf9dcmsnEWqCcQ7DkAySauhCk+XGMqhSV2SYiqSgQa6Ay8CKOWapyv QUttRsr0BKHw== X-IronPort-AV: E=McAfee;i="6000,8403,9876"; a="264745047" X-IronPort-AV: E=Sophos;i="5.79,375,1602572400"; d="scan'208";a="264745047" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2021 07:59:47 -0800 IronPort-SDR: ClwSTPK2RvO2djJanHgmgQpuLNgYtSOs/WHxH7mT3ITi0X8MqYIXlShBQBI46V80V8VOh4VzNQ zzHeEkcGDZEQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,375,1602572400"; d="scan'208";a="362030340" Received: from dpdk-lrong-srv-04.sh.intel.com ([10.67.119.221]) by fmsmga008.fm.intel.com with ESMTP; 26 Jan 2021 07:59:45 -0800 From: Leyi Rong To: 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, Leyi Rong Date: Tue, 26 Jan 2021 23:38:19 +0800 Message-Id: <20210126153819.63625-1-leyi.rong@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [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" Disable i40e avx512 code path for windows build to avoid the mingw build error. Fixes: e6a6a138919f ("net/i40e: add AVX512 vector path") Signed-off-by: Leyi Rong --- config/x86/cross-mingw | 3 +++ drivers/net/i40e/meson.build | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 = 'windows' cpu_family = 'x86_64' cpu = 'native' endian = 'little' + +[properties] +c_args = '-mno-avx512f' 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 == 'x86' cc.has_argument('-mavx512f') and cc.has_argument('-mavx512bw')) - if i40e_avx512_cpu_support == true or i40e_avx512_cc_support == true + if not is_windows and (i40e_avx512_cpu_support == true or i40e_avx512_cc_support == true) cflags += ['-DCC_AVX512_SUPPORT'] avx512_args = [cflags, '-mavx512f', '-mavx512bw'] if cc.has_argument('-march=skylake-avx512') -- 2.17.1