DPDK patches and discussions
 help / color / mirror / Atom feed
From: Leyi Rong <leyi.rong@intel.com>
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 <leyi.rong@intel.com>
Subject: [dpdk-dev] [PATCH v2] net/i40e: fix avx code error on MinGW
Date: Tue,  2 Feb 2021 22:32:58 +0800	[thread overview]
Message-ID: <20210202143258.108477-1-leyi.rong@intel.com> (raw)
In-Reply-To: <20210202090639.83164-1-leyi.rong@intel.com>

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 <leyi.rong@intel.com>
---
 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


  parent reply	other threads:[~2021-02-02 14:53 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-02  9:06 [dpdk-dev] [PATCH] net/i40e: disable AVX512 with MinGW Leyi Rong
2021-02-02  9:30 ` Thomas Monjalon
2021-02-02 10:24 ` Bruce Richardson
2021-02-02 14:13   ` Tal Shnaiderman
2021-02-02 14:31     ` Rong, Leyi
2021-02-02 14:32 ` Leyi Rong [this message]
2021-02-02 23:07   ` [dpdk-dev] [PATCH v2] net/i40e: fix avx code error on MinGW Dmitry Kozlyuk
2021-02-04 10:41     ` Zhang, Qi Z
2021-02-04 12:36       ` Ferruh Yigit
2021-02-04 12:59         ` Thomas Monjalon
2021-02-04 13:43         ` David Marchand
2021-02-04 21:57           ` [dpdk-dev] [dpdk-ci] " Lincoln Lavoie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210202143258.108477-1-leyi.rong@intel.com \
    --to=leyi.rong@intel.com \
    --cc=aconole@redhat.com \
    --cc=beilei.xing@intel.com \
    --cc=bruce.richardson@intel.com \
    --cc=ci@dpdk.org \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=pallavi.kadam@intel.com \
    --cc=qi.z.zhang@intel.com \
    --cc=ranjit.menon@intel.com \
    --cc=talshn@nvidia.com \
    --cc=thomas@monjalon.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).