From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 8DC95A0A0A;
	Wed, 20 Jan 2021 18:52:10 +0100 (CET)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 13597140E1E;
	Wed, 20 Jan 2021 18:52:10 +0100 (CET)
Received: from mga01.intel.com (mga01.intel.com [192.55.52.88])
 by mails.dpdk.org (Postfix) with ESMTP id A91BC140E19
 for <dev@dpdk.org>; Wed, 20 Jan 2021 18:52:08 +0100 (CET)
IronPort-SDR: IA+Fpr6RBKxt8Ce2WjXWXDkqf5/0FdwYkfc1kKtxA3cqKrYLfdm5peFvkhJddZTo+xnL1WZMOR
 Jozo/SjFkBKQ==
X-IronPort-AV: E=McAfee;i="6000,8403,9870"; a="197879284"
X-IronPort-AV: E=Sophos;i="5.79,361,1602572400"; d="scan'208";a="197879284"
Received: from orsmga002.jf.intel.com ([10.7.209.21])
 by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;
 20 Jan 2021 09:52:01 -0800
IronPort-SDR: +JCijwd2BSQ5lAzzop7GF8r/BG2++C5/uOOyzcrQMuOfLqHU2RBXo1f7Olok5b+4LAO3B1F3wf
 qa2Cal406M6Q==
X-IronPort-AV: E=Sophos;i="5.79,361,1602572400"; d="scan'208";a="366332894"
Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.192.162])
 ([10.213.192.162])
 by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;
 20 Jan 2021 09:51:58 -0800
To: Ali Alnubani <alialnu@nvidia.com>,
 David Marchand <david.marchand@redhat.com>,
 NBU-Contact-Thomas Monjalon <thomas@monjalon.net>,
 "Richardson, Bruce" <bruce.richardson@intel.com>
Cc: Tal Shnaiderman <talshn@nvidia.com>, Odi Assli <odia@nvidia.com>,
 "Rong, Leyi" <leyi.rong@intel.com>, "Zhang, Qi Z" <qi.z.zhang@intel.com>,
 "Lu, Wenzhuo" <wenzhuo.lu@intel.com>, "Xing, Beilei"
 <beilei.xing@intel.com>, "Kadam, Pallavi" <pallavi.kadam@intel.com>,
 "Menon, Ranjit" <ranjit.menon@intel.com>, "dev@dpdk.org" <dev@dpdk.org>,
 Raslan Darawsheh <rasland@nvidia.com>
References: <20201215021945.103396-1-leyi.rong@intel.com>
 <DM6PR12MB3945A6FE02C47F856D48415BA4A20@DM6PR12MB3945.namprd12.prod.outlook.com>
 <CAJFAV8y3m4ucODUPazNZR2gMJ2hDiVpkbOmUXe4B5sGCL2J5QA@mail.gmail.com>
 <5859779.zrh4IzKrC7@thomas>
 <CAJFAV8y1RikOfDfQ5goDQmbr-z4weZU+iB7=7hCsvXj8tSaO7Q@mail.gmail.com>
 <MWHPR12MB14722E85A8F79F856ADDEFFEDAA20@MWHPR12MB1472.namprd12.prod.outlook.com>
From: Ferruh Yigit <ferruh.yigit@intel.com>
Message-ID: <b51ffeb0-e609-d996-58c5-98fd135bb6ff@intel.com>
Date: Wed, 20 Jan 2021 17:51:52 +0000
MIME-Version: 1.0
In-Reply-To: <MWHPR12MB14722E85A8F79F856ADDEFFEDAA20@MWHPR12MB1472.namprd12.prod.outlook.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Subject: Re: [dpdk-dev] [PATCH v3 0/3] AVX512 vPMD on i40e
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

On 1/20/2021 10:05 AM, Ali Alnubani wrote:
>>> For info, I don't reproduce the compilation issue on my machine.
>>
>> My build system has been upgraded from fc31 to fc32 so I guess this has
>> something to do with it.
>>
> 
> I can reproduce with (Fedora MinGW 9.2.1-6.fc32), but not with (Fedora MinGW 10.2.1-2.fc33).
> 

First of all, for the patch @Tal provided its link, the windows build and the 
mingw build errors are different. And the windows build error should be already 
fixed by a patch that squashed in next-net (https://patches.dpdk.org/patch/86804/).


And for the mingw, I have same result with Ali, I can reproduce with (Fedora 
MinGW 9.2.1-6.fc32).

But different from the CI, I am getting the error [1] for all following files:
rte_random.c
i40e_rxtx_vec_sse.c
i40e_rxtx_vec_avx512.c
i40e_rxtx_vec_avx2.c
rte_ethdev.c

[1] Error: invalid register for .seh_savexmm


There is a stackoverflow entry for it:
https://stackoverflow.com/questions/43152633/invalid-register-for-seh-savexmm-in-cygwin

If I use '-fno-asynchronous-unwind-tables' as suggested there, the build works fine.

So the problem may not be just 'i40e_rxtx_vec_avx512.c'.


If I change the machine type from 'native' to 'corei7' [2], the build error 
reduced to only 'i40e_rxtx_vec_avx512.c', so the problem seems happens when 
avx512 is supported by CPU, in this case compiler seems has a defect.
And since for 'i40e_rxtx_vec_avx512.c' the '-march=skylake-avx512' explicitly 
set can cause the problem seen in all machines.

[2]
  diff --git a/config/x86/cross-mingw b/config/x86/cross-mingw
  index 4c15a7fa2e..7cee238add 100644
  --- a/config/x86/cross-mingw
  +++ b/config/x86/cross-mingw
  @@ -9,5 +9,5 @@ pkgconfig = 'x86_64-w64-mingw32-pkg-config'
   [host_machine]
   system = 'windows'
   cpu_family = 'x86_64'
  -cpu = 'native'
  +cpu = 'corei7'
   endian = 'little'



@Ranjit, @Pallavi,
Are you building using mingw, and if so are you observing same problem?