From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 13AD0A04DD; Tue, 20 Oct 2020 19:15:18 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 94CEBAA08; Tue, 20 Oct 2020 19:15:15 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id BFDB22142 for ; Tue, 20 Oct 2020 19:15:13 +0200 (CEST) IronPort-SDR: xKf+di4HQqtib1tsDrI9uXuJSQA6k/46oQP7DPVTBt3X4dTmNVADcV1jjrh08dV9qx+TqVc7oI QyV+gMLUBxEQ== X-IronPort-AV: E=McAfee;i="6000,8403,9780"; a="167368149" X-IronPort-AV: E=Sophos;i="5.77,398,1596524400"; d="scan'208";a="167368149" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2020 10:15:02 -0700 IronPort-SDR: y4qTNGDpuBY+3i6ukzlbJqBfn5tN1e1kWMwkSIDj1fLgjK3I+0LyZmbDpLY9o+yre5CPxQE5g3 3ETiUreDCZuA== X-IronPort-AV: E=Sophos;i="5.77,398,1596524400"; d="scan'208";a="359239496" Received: from rmenon-desk.amr.corp.intel.com (HELO [10.166.30.253]) ([10.166.30.253]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2020 10:15:01 -0700 To: Dharmik Thakkar , Dmitry Kozlyuk Cc: David Marchand , Narcisa Ana Maria Vasile , "Dmitry Malloy (MESHCHANINOV)" , Pallavi Kadam , dev , nd , Honnappa Nagarahalli , "thomas@monjalon.net" References: <20201019233336.9627-1-dharmik.thakkar@arm.com> <20201020113443.694de796@sovereign> <20201020185228.5216c602@sovereign> From: Ranjit Menon Message-ID: Date: Tue, 20 Oct 2020 10:15:01 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Subject: Re: [dpdk-dev] [RFC] rcu: build on Windows X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" On 10/20/2020 9:37 AM, Dharmik Thakkar wrote: > >> On Oct 20, 2020, at 10:52 AM, Dmitry Kozlyuk wrote: >> >> On Tue, 20 Oct 2020 12:51:14 +0000, Dharmik Thakkar wrote: >>> I tried cross-compilation on Linux (Ubuntu 18.04) with MinGW-w64 toolchain, but I am seeing some compilation error: >>> >>> ../lib/librte_eal/common/eal_common_dev.c: In function ‘rte_dev_probe’: >>> ../lib/librte_eal/common/eal_common_dev.c:215:12: error: ‘ENOMSG’ undeclared (first use in this function); did you mean ‘NPMSG’? >>> return -ENOMSG; >>> ^~~~~~ >>> NPMSG >>> ../lib/librte_eal/common/eal_common_dev.c:215:12: note: each undeclared identifier is reported only once for each function it appears in >>> ../lib/librte_eal/common/eal_common_dev.c: In function ‘rte_dev_remove’: >>> ../lib/librte_eal/common/eal_common_dev.c:361:12: error: ‘ENOMSG’ undeclared (first use in this function); did you mean ‘NPMSG’? >>> return -ENOMSG; >>> ^~~~~~ >>> NPMSG >>> >>> [52/178] Compiling C object 'lib/lib@@rte_eal@sta/librte_eal_windows_eal_memory.c.obj'. >>> ninja: build stopped: subcommand failed. >>> >>> >>> Any help is appreciated. >> Ubuntu 18.04 has MinGW-w64 5.0.4, while 6.0.0 is required (note: MinGW-w64 >> version is not the same as GCC version). I've certainly hit this issue with >> older MinGW. > Got it, thank you! FWIW, documentation [1] doesn’t mention about the 6.0.0 requirement > > [1] https://doc.dpdk.org/guides/windows_gsg/build_dpdk.html While we're at this, we should also update this with the minimum required version of the Clang compiler. ranjit m.