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 2AF81A0542; Fri, 7 Feb 2020 18:47:47 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 584411BFFB; Fri, 7 Feb 2020 18:47:46 +0100 (CET) Received: from mail-qk1-f194.google.com (mail-qk1-f194.google.com [209.85.222.194]) by dpdk.org (Postfix) with ESMTP id 09FC21BFFA for ; Fri, 7 Feb 2020 18:47:45 +0100 (CET) Received: by mail-qk1-f194.google.com with SMTP id h4so3073842qkm.0 for ; Fri, 07 Feb 2020 09:47:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gXHN2VOfd8JWOdc0ITmQ9uOOiMmWxGITlgw07KLtJbo=; b=b4j+TQx9QwDORErr1tVwLJ78R9xVtRPoGXXmqcmSV6SfOlsfS3W1Epq9ecJq2FqMSJ k2hwN5i8mS5Mi92cCt5ChISLxRhrhweg4sKQRIzpcbOdSLz0t5WlcIfamHSw4krPSiYj dIgI4XT+5WRKhLz2dy5HKLJc9K/hKbqNfT/77sSJyfhyr1qZYhdygmOWqJkfalAefRxF AvjAyg49FvC+ypFMafk54uNi4sdJXWlmw/sOL8kenjYgO4uZN0BDIuKWrp6BWe3nijmF /yoisRG40wNlvwcDS8gg/MzOBvT6qY539J18Jx4trOWOMrYrzG3jGyULRtPZNyyfojJd fyig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gXHN2VOfd8JWOdc0ITmQ9uOOiMmWxGITlgw07KLtJbo=; b=kBQ6/m2GnBZHflEXJHaPRcXl5ns5Zq20olWemoBbapROn4DruTMqe43ahVJ5Ax9sM7 U5BCYpAredPe/oeEUqVPM6C68dxoLWu9ldIfJbx4HX+3KZg1JEu2cfXCxI549frrBaz8 HB3L4rNVJN8x57pj8XSuGLBtnwPwkDzlsfrQXhAY0aU+8r28WE2KEJFe9/IqDLrg1/B/ WmRkGued2mWwXUzSst09lCN4cm8MkBvwszmHOAZQZQEPbht6whSF7ZUyteOG8C+wUs/U 6N6mjlAGZv9bo9rDDzpHNKZvWLFSiInT7eKYkrKaa9qByPO4aRxez6D5l1TIeBDmEM0z Hmww== X-Gm-Message-State: APjAAAXa2wJtCGzF88WlJYTv69FwX365+Nj7wq9AHgc7oV9dBdboepLo pu3UPrbiO0o02Yoan3SqfzNaGqNUxHFF0HFQFzo= X-Google-Smtp-Source: APXvYqziFZnvVqAk2jb8zlGwRnMjTDk+LZ2+DesQDFb6gOQBX9mxeZ5O8QjqRo/qMiR9d/MhGvyjokdTm4aRnweIO3U= X-Received: by 2002:a37:b602:: with SMTP id g2mr17708qkf.174.1581097664216; Fri, 07 Feb 2020 09:47:44 -0800 (PST) MIME-Version: 1.0 References: <20200206064426.45697-1-dmitry.kozliuk@gmail.com> In-Reply-To: From: William Tu Date: Fri, 7 Feb 2020 09:47:08 -0800 Message-ID: To: Dmitry Kozliuk Cc: dev@dpdk.org, Bruce Richardson , Thomas Monjalon , Olivier Matz , Harini Ramakrishnan , Omar Cardona , Pallavi Kadam , Ranjit Menon , John McNamara , Marko Kovacevic Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v2 0/7] MinGW-w64 support 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 Dmitry, Thanks for your reply. On Fri, Feb 7, 2020 at 2:24 AM Dmitry Kozliuk wrote: > > Hi William, > >> I applied your v2 patch and I did a native build on windows 10. >> Hit an error showing >> ../lib/librte_eal/windows/eal/eal_lcore.c:54:2: error: 'for' loop >> initial declarations are only allowed in C99 mode > > > Thanks, will fix in v3. > >> However the output looks weird: >> C:\dpdk\build\examples>dpdk-helloworld.exe >> EAL: Detected 2 lcore(s) >> EAL: Detected 1 NUMA nodes >> hehello fllo frorom cm core 1 >> ore 0 > > > It looks like your stdout is unbuffered (default is line-buffered). What terminal are you using (cmd, Power Shell, Terminal App, conemu, etc)? > I'm using the "Command Prompt" from windows 10 >> C compiler for the host machine: cc (gcc 4.8.3 "cc (GCC) 4.8.3") > > > GCC 4.8.3 is quite outdated, MinGW-w64 ships GCC 8 nowadays. Do we need to support it for Windows (I doubt MinGW-w64 does)? > Oh, I download a pretty old version (mingw-w64 3.3.0). Let me update. BTW, I also tested cross-compile using my Ubuntu Box and everything works! William