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 235A6A04DB; Tue, 1 Dec 2020 14:19:02 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7DE0AC982; Tue, 1 Dec 2020 14:19:00 +0100 (CET) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id CF255C956 for ; Tue, 1 Dec 2020 14:18:57 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 4B6FD5C0225; Tue, 1 Dec 2020 08:18:56 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 01 Dec 2020 08:18:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=fm2; bh=crp9gNFP/qXIT S/L67Zo3j1lUf9OJdigwpGR/H+Wc7s=; b=v/K42+LQPBLFG0seXhNt/pKNVpZ6V fSz2kZWq4xS9sEDTunKK0JUiebZuhTOuLDS8bmm+sS2SVc65nGoB3Qz20K1CgpzN mMDVE5gmiUXJxImdzz3OKsr2kOAe4q3EBdD2TcMlphcT6ZNSGtNB3HdYdQkmKAWs 7rq97lRMeZ+58gQb8gIny23Tv6iUUyKLh31YDIrD/VDND4pl2hwALMhytMXlxwZC TtFEShmLBGPXraDt4hDPNl3cZ5wPBRgZfmN6kl8xuFjXqfD6YhrjUEiObcZJQ4fU qb4MO94PVrcanQ0v6EgO2Fas6aFHmzTlvL6YCBSdueAjMhTl6ErGLcHZw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=crp9gN FP/qXITS/L67Zo3j1lUf9OJdigwpGR/H+Wc7s=; b=VxZPwjjRsbsUuamckzIOYr MzoFCm8p+wstBmxmMLcq+Q8uI9n4NbiSHmT1hA9pVt5qPGxc2ngewfvgjvtemCiN LDCyMsZ6reUYZO5y4gar05oS6Mvn8NX407NsrVaeRsMm704lL44EBS3qiHbFxQFM X2gZzPqlKzvkQdA/wv4NpyNCRNeCJvPmW00J4ZRJlS4jZ0pulabntzaWTruhJ2QF GDl+TyVX8xPgGrMH1r9aJgim8nn1j4h9NG7Px8UGYibekiDvFnzidz7s4cxeXiCQ Unv7vTWGYWI6LTCIDkiImhaSk01HJctNrNBWpcr9OkQaKZ7U+U4vuQFCm5lMGVGQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudeivddghedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkggfgtgesthhqredttd dtjeenucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhho nhhjrghlohhnrdhnvghtqeenucggtffrrghtthgvrhhnpefghfffteelhfeuffejuedvue fftddtkeegvefhleeitdeuhfekueeivddufeevvdenucfkphepjeejrddufeegrddvtdef rddukeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id D42DE108005E; Tue, 1 Dec 2020 08:18:54 -0500 (EST) From: Thomas Monjalon To: dmitry.kozliuk@gmail.com Cc: nick.connolly@mayadata.io, navasile@linux.microsoft.com, dmitrym@microsoft.com, pallavi.kadam@intel.com, talshn@nvidia.com, dev@dpdk.org Date: Tue, 01 Dec 2020 14:18:53 +0100 Message-ID: <8094293.VoMytXdBYE@thomas> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Subject: [dpdk-dev] build failure with MinGW GCC 10.2 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" Hi, I'm hitting an issue with x86_64-w64-mingw32-gcc (GCC) 10.2.0: lib/librte_eal/windows/eal_memory.c:30:14: error: redeclaration of =E2=80=98enum MEM_EXTENDED_PARAMETER_TYPE=E2=80=99 and others: redeclaration of enumerator =E2=80=98MemExtendedParameterInvalidType=E2=80= =99 redeclaration of enumerator =E2=80=98MemExtendedParameterAddressRequiremen= ts=E2=80=99 redeclaration of enumerator =E2=80=98MemExtendedParameterNumaNode=E2=80=99 redeclaration of enumerator =E2=80=98MemExtendedParameterPartitionHandle= =E2=80=99 redeclaration of enumerator =E2=80=98MemExtendedParameterUserPhysicalHandl= e=E2=80=99 redeclaration of enumerator =E2=80=98MemExtendedParameterAttributeFlags=E2= =80=99 redeclaration of enumerator =E2=80=98MemExtendedParameterMax=E2=80=99 redefinition of =E2=80=98struct MEM_EXTENDED_PARAMETER=E2=80=99 "MEM_EXTENDED_PARAMETER_TYPE_BITS" redefined I see in the code it should be avoided: /* MinGW-w64 headers lack VirtualAlloc2() in some distributions. * Provide a copy of definitions and code to load it dynamically. * Note: definitions are copied verbatim from Microsoft documentation * and don't follow DPDK code style. * * MEM_RESERVE_PLACEHOLDER being defined means VirtualAlloc2() is present t= oo. */ #ifndef MEM_PRESERVE_PLACEHOLDER Does it mean using this flag is not true anymore in recent MinGW?