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 70ECBA0093; Mon, 15 Jun 2020 01:09:21 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D71C849E0; Mon, 15 Jun 2020 01:09:20 +0200 (CEST) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id C650E25B3 for ; Mon, 15 Jun 2020 01:09:19 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 5E5AA5C00D0; Sun, 14 Jun 2020 19:09:19 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Sun, 14 Jun 2020 19:09:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm1; bh= vhdd4FHTncbf7GVPYGxUAldDF6b4WRiEBackz8NFhao=; b=SPnBoHI3ZLel4CiR 87CXB5zZcLsziTeznK7h94gMmarpULEyTcYVHJk3zMpumeYN0s+CP7U6M1AGSJZL 4pNadIkFakKKFibB6VjfXkT1EgdP1xiVYvMNn/j8lkBIwnQgn3ie9zYMD+8OCIUf Uyoxy+WXCmFdaOMI3MmxG2AwCtvboBVnGGMyzu0jGEH/HLkTdoqu8JsYsoOTw8pj tN4HHIUSiFAER7GJuW+FeeAnHkBqej+gJ8JN6WocvDO+nj/3wX9Y7rv/Ecn1218T wt8Q9CtzHYrjUHVhP3G8lj7UFQ5+yGzOuI1q1BrSa5IdSsLPiBlaFVU5uDnl9h6x uj4gxw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=vhdd4FHTncbf7GVPYGxUAldDF6b4WRiEBackz8NFh ao=; b=B9r2NPgo5Ypp/bmLORqHg2h/P2Luxrl9sTjhCgDeUvImmFqEvjjvLru7i 5yxctPJbrhLUg6N9LzbsUz1+hAUvHwvZGCCQ1OFR5QDJyAG3/C7lwBiHumAbxZJm jHKQiVqDBzW6bD93y02ekQXs+uE1KFiLQBOuWFb05RFYpdJ9AjxJeOWJ/3o5WM0c LperNnXGVmEEYPEje8bFN+XtepQmkoW+KoqRoWoJ+1vq36v90RyjRPSXj600ik70 sKSPACMqksDFlF+xl7KlCDeDP/yFp/GfZ4tG6xVgZXIsPv1VLl2e5Sb/2Lf8jlEZ VUYLrodhQA3g0vG5fv94ygBAek0hw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeijedgvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtqhertddttdejnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepkeethedtieevhfeigeejleegudefjeehkeekteeuveeiuedvveeu tdejveehveetnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl ohhnrdhnvght 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 E94B43061856; Sun, 14 Jun 2020 19:09:17 -0400 (EDT) From: Thomas Monjalon To: dmitry.kozliuk@gmail.com Cc: dev@dpdk.org, david.marchand@redhat.com, bruce.richardson@intel.com, Harini Ramakrishnan , Omar Cardona , Pallavi Kadam , Ranjit Menon Date: Mon, 15 Jun 2020 01:09:16 +0200 Message-ID: <2071651.hbnvd6Rhsx@thomas> In-Reply-To: <20200614225747.3839569-5-thomas@monjalon.net> References: <20200614225747.3839569-1-thomas@monjalon.net> <20200614225747.3839569-5-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH 4/4] devtools: add Windows cross-build test with MinGW 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" 15/06/2020 00:57, Thomas Monjalon: > The Meson cross file is renamed from meson_mingw.txt to cross-mingw, > and is added to test-meson-builds.sh. >=20 > The only example supported on Windows so far is "helloworld", > that's why the default list of examples is overriden. >=20 > Signed-off-by: Thomas Monjalon > --- There is a warning with MinGW on Linux: In file included from lib/librte_eal/include/rte_eal.h:15, from lib/librte_eal/common/eal_common_options.c:26: lib/librte_eal/common/eal_common_options.c: In function =E2=80=98eal_adjust_config=E2=80=99: lib/librte_eal/windows/include/sched.h:63:55: error: =E2=80=98default_set._bits[1]=E2=80=99 may be used uninitialized in this f= unction [-Werror=3Dmaybe-uninitialized] 63 | (dst)->_bits[_i] =3D (src1)->_bits[_i] & (src2)->_bits[_i]; \ | ^ % x86_64-w64-mingw32-gcc --version x86_64-w64-mingw32-gcc (GCC) 10.1.0 It looks to be a false positive, but we need to find a way to remove the warning with a code change. This workaround in lib/librte_eal/common/eal_common_options.c makes 200% sure the default_set is initialized: =2D if (pthread_getaffinity_np(pthread_self(), sizeof(rte_cpuset_t), =2D &default_set)) =2D CPU_ZERO(&default_set); =2D + CPU_ZERO(&default_set); + pthread_getaffinity_np(pthread_self(), + sizeof default_set, &default_set);