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 8E7FCA0567; Tue, 9 Mar 2021 00:30:33 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3C4EF22A50E; Tue, 9 Mar 2021 00:30:33 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 47EB54069D for ; Tue, 9 Mar 2021 00:30:32 +0100 (CET) IronPort-SDR: AEvfwoofRnYjOMfku/nzTXrlcZgHCJEKw0XHKXgbAX2YmAMjcBRSIGymLAygJGoVNHSr37XscG QHQWQYHk/Nng== X-IronPort-AV: E=McAfee;i="6000,8403,9917"; a="273149853" X-IronPort-AV: E=Sophos;i="5.81,233,1610438400"; d="scan'208";a="273149853" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2021 15:30:31 -0800 IronPort-SDR: r7UasufaS7nNC+CTtg2vmk246oVrX82vrzRrJerZ2DaB/rCxE0WBoe4KJqBTJL1+KwUUwHe77x Ec5rMM+SUceA== X-IronPort-AV: E=Sophos;i="5.81,233,1610438400"; d="scan'208";a="409487188" Received: from pkadam-mobl1.amr.corp.intel.com (HELO [10.209.96.51]) ([10.209.96.51]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2021 15:30:30 -0800 To: David Marchand Cc: dev , Thomas Monjalon , Ranjit Menon , Qiming Yang , Qi Zhang , "Yigit, Ferruh" References: <20210303215929.5616-1-pallavi.kadam@intel.com> <20210303215929.5616-3-pallavi.kadam@intel.com> From: "Kadam, Pallavi" Message-ID: <571ab8c6-e4fd-42c6-1102-b5ae9d4c2985@intel.com> Date: Mon, 8 Mar 2021 15:30:25 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: Re: [dpdk-dev] [PATCH 2/4] net/ice: build on Windows 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" Hi David On 3/4/2021 4:56 AM, David Marchand wrote: > On Wed, Mar 3, 2021 at 10:27 PM Pallavi Kadam wrote: >> Add Intel ice PMD support on Windows. >> Remove #include sys/ioctl header file as it is not needed. >> Replace x86intrin.h with rte_vect.h to avoid __m_prefetchw conflicting >> types. >> Replace POSIX usleep() API with rte API. >> Add a new macro for the access() API as the original function >> has been deprecated on Windows. >> Add extra cflags '-fno-asynchronous-unwind-tables' >> to avoid MinGW build error: >> Error: invalid register for .seh_savexmm > Fyi, caught at the UNH lab: > > http://mails.dpdk.org/archives/test-report/2021-March/180813.html > > [205/277] Compiling C object drivers/net/ice/base/a42f040@@ice_base at > sta/ice_acl_ctrl.c.obj. > [206/277] Compiling C object drivers/net/ice/base/a42f040@@ice_base at > sta/ice_flow.c.obj. > FAILED: drivers/net/ice/base/a42f040@@ice_base at sta/ice_flow.c.obj > gcc @drivers/net/ice/base/a42f040@@ice_base at sta/ice_flow.c.obj.rsp > {standard input}: Assembler messages: > {standard input}:1677: Error: invalid register for .seh_savexmm > {standard input}:3985: Error: invalid register for .seh_savexmm > [207/277] Linking static target drivers/libtmp_rte_net_i40e.a. > [208/277] Compiling C object drivers/net/ice/base/a42f040@@ice_base at > sta/ice_sched.c.obj. > [209/277] Compiling C object drivers/net/ice/base/a42f040@@ice_base at > sta/ice_dcb.c.obj. > [210/277] Compiling C object drivers/net/ice/base/a42f040@@ice_base at > sta/ice_flex_pipe.c.obj. > [211/277] Compiling C object drivers/a715181@@tmp_rte_net_ice at > sta/net_ice_ice_ethdev.c.obj. > ninja: build stopped: subcommand failed. > > I suppose this is because "-fno-asynchronous-unwind-tables" is not > passed to the base driver cflags. > Bonus question: should we make this workaround global for mingw compilation? Thanks for the log. We will send a fix by passing the cflag to the base driver in v2. However, I am not able to reproduce this error on my system. I tried using the same version as UNH lab has: gcc 8.1.0 "gcc (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0" > >