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 E8D12A04FA; Wed, 5 Feb 2020 14:56:07 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 620131C1E1; Wed, 5 Feb 2020 14:56:06 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2106.outbound.protection.outlook.com [40.107.93.106]) by dpdk.org (Postfix) with ESMTP id 6422C1C1D8 for ; Wed, 5 Feb 2020 02:49:17 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CPR/OudSmai3BDRXRlDqTfCu8V8xrMfrefI0Z8emq8RjDLpPNm2jBvmv4nq52LdPigXviJBKpbrv/Z5Vhn4LUtu635qJnVRTF9eoZDnW3xNN2e9rOWEwcC+2YoEqWr/cDQV9CNx5ErKenKuI8KeZcKgtXRgm0wL83lHLWirklRgFAePjnkY3OGtREL6XoR/YnHhy8xPINrMVaOzaI3gjD8wWXlEEfGCvuYGHUDf3/hLgvU0gfy8ybVHuq6PD+tEcZVQBhB4r1oBp0i+891nkbLmYnc+KzYp/hhgJkf+Wu+dSwDOgIWvruy1tu1jscxFUWH9j1/Tn0UF5xvKtNIIIUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=a7whbEEFagQTB1oL49rC/s33MxtCa8ILwZPEr3jWqF4=; b=mDOVbbH2gfHAYblNoluooFGz9dPXdC/0FRoRSvy6nej6JqKJ1zpJGr/FoEt1bGHchHjq/SNyR6YhSLzYHw+RZ9roMFWFz4Y+WIUWkPTXQSo/+P1VUXHNr+dBopLgUbenYB3QJudfZA8yrF0u5/mUO1Lmpwtw2FOja3pI6Nl4St/4stQ7EQWfgDcGtykCygAFwtONx4a4DlwqS2vLGiwTB9/iedSDfPa4DTf/w+VWzKepOSLwt3+6dZICFV8K6esJq/K1uSOJtIze40VjmT2kJn72uDLyvzBj75swdpWEilMJn3PEIrcFeo7GtPlQ17BQELzTIrW8uA487T7nTk5pRw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=a7whbEEFagQTB1oL49rC/s33MxtCa8ILwZPEr3jWqF4=; b=c+WCnwbysBZagsFIZtMt16sZ5EyeOQbdhh1kj1qYfy2f26/yDlZVuJ0LdRO30yEvLOTRlLCxR+JsGg1j+RPnEXALiLcd2GHmvsifXj5TzJSlql9H7Q5zpO57BgrykP5KRUmp2rAmweUT/xF+7HMdPGCgLpHWv6eZob01nq9Wze4= Received: from BL0PR2101MB0913.namprd21.prod.outlook.com (52.132.23.150) by BL0PR2101MB0913.namprd21.prod.outlook.com (52.132.23.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2707.2; Wed, 5 Feb 2020 01:49:15 +0000 Received: from BL0PR2101MB0913.namprd21.prod.outlook.com ([fe80::d88c:b12a:622d:2f31]) by BL0PR2101MB0913.namprd21.prod.outlook.com ([fe80::d88c:b12a:622d:2f31%7]) with mapi id 15.20.2707.020; Wed, 5 Feb 2020 01:49:15 +0000 From: Narcisa Ana Maria Vasile To: Dmitry Kozlyuk , "dev@dpdk.org" CC: Bruce Richardson , Thomas Monjalon , Olivier Matz , Harini Ramakrishnan , Omar Cardona , Pallavi Kadam , Ranjit Menon , John McNamara , Marko Kovacevic Thread-Topic: [EXTERNAL] [dpdk-dev] [PATCH 0/6] MinGW-w64 support Thread-Index: AQHV1+OlrnA6HJwMrkeMVYOAKtLvIagL2tbQ Date: Wed, 5 Feb 2020 01:49:14 +0000 Message-ID: References: <20200131030744.19596-1-dmitry.kozliuk@gmail.com> In-Reply-To: <20200131030744.19596-1-dmitry.kozliuk@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Owner=navasile@microsoft.com; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2020-02-05T01:49:12.5874244Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Application=Microsoft Azure Information Protection; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=e883d065-ee6d-4c5f-b56e-cabb9fa3c788; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Extended_MSFT_Method=Automatic authentication-results: spf=none (sender IP is ) smtp.mailfrom=Narcisa.Vasile@microsoft.com; x-originating-ip: [131.107.174.220] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: a46ec4f7-b2f5-4383-594f-08d7a9dd9b25 x-ms-traffictypediagnostic: BL0PR2101MB0913:|BL0PR2101MB0913: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 0304E36CA3 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(4636009)(136003)(346002)(396003)(376002)(366004)(39860400002)(199004)(189003)(316002)(54906003)(110136005)(66476007)(5660300002)(66446008)(86362001)(66556008)(64756008)(2906002)(71200400001)(52536014)(76116006)(66946007)(7696005)(55016002)(8936002)(966005)(4326008)(53546011)(81166006)(9686003)(478600001)(10290500003)(26005)(8676002)(33656002)(186003)(8990500004)(81156014)(6506007); DIR:OUT; SFP:1102; SCL:1; SRVR:BL0PR2101MB0913; H:BL0PR2101MB0913.namprd21.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: CZ4sqp8tTdY9L0Y0hUmv8J0jkt8ll4Ix/GEXMwJfGcyl9MHecZdq1Q4xZpb8wwcU2Ap8Zg0OiRm+ooosvu2Z53VXfacSdYAuBSkPKQhjs1OiBn98wwp6NeY8La0p5PK8E02KyhVcJe2VWBagh/8WmfLhxUanunU2+j3x8liFHyqQzjM8m+zZYfuaARs9xWFtSt/i5P7Y7UpK146jM3M11U9pm5fexQpMt8cWaZ+H0qF51Tk5sfnzv2vP+tX+mM17wlSRXZpuoM6ZkmO2WJjleg6evOZc1AlvdzKHdxmgEhJxGjqaJ0mYo8EWPc7obRvD1HxN/ZdhRgJmbKk8M6RbjwrVIAwCYT0n+xVN8m1dF0/FQYMWRcRcw6+mMUh58f7LuaJsq/702B34+J6Hf+6wL0vA0S+4TkTKHa/LXGoDHEhntqPxJK3KzfC7K5vqOvNumLjArtTeLyTCE5srmtU+NJ41z3vVqeSPU3wRwZOjMM8egoE5mrvXKY2znOE5jbvBnRA/xjSDw/iGnapD5bx5eA== x-ms-exchange-antispam-messagedata: dacCfCwP3tKC8spjZiReE3CWstpG2bHt/n+VmTYSdpUrCNA+N5X3IDgtb14mtUh0+zX4Jr29+gwmb2oPfzDXI922+eyDKQ8qMDnmFaeG8WG/lQ79RYig/de85eaOL6L6L1QRi9Xy1ms+8jmZfD9hyg== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: a46ec4f7-b2f5-4383-594f-08d7a9dd9b25 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Feb 2020 01:49:15.0727 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: RKT46l6oh3fkUe6Hu8nGyWtZtG2+KOxpOp5i2Sk6SEET+2kRo+vw0ah+5HKs6PT3qATQtxNKF8HH9ClgC6Z3Vg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR2101MB0913 X-Mailman-Approved-At: Wed, 05 Feb 2020 14:56:03 +0100 Subject: Re: [dpdk-dev] [EXTERNAL] [PATCH 0/6] 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,=20 Thanks for the patches! I was able to compile and run natively, after apply= ing the Meson patch that you mentioned. I'm having some trouble with cross-compilation: python3 meson.py -Dexamples=3Dhelloworld ../../dpdk/build ../../dpdk --cros= s-file ../../dpdk/meson_mingw.txt The Meson build system Version: 0.53.1 Source dir: /mnt/d/dpdk Build dir: /mnt/d/dpdk/build Build type: cross build Program cat found: YES (/bin/cat) Project name: DPDK Project version: 20.02.0-rc1 C compiler for the build machine: cc (gcc 7.4.0 "cc (Ubuntu 7.4.0-1ubuntu1~= 18.04.1) 7.4.0") C linker for the build machine: cc GNU ld.bfd 2.30 meson.build:4:0: ERROR: Unable to determine dynamic linker Any ideas on how to fix this issue? Thanks, Narcisa Vasile -----Original Message----- From: dev On Behalf Of Dmitry Kozlyuk Sent: Thursday, January 30, 2020 7:08 PM To: dev@dpdk.org Cc: Dmitry Kozlyuk ; Bruce Richardson ; Thomas Monjalon ; Olivier Matz ; Harini Ramakrishnan ; Omar Cardona ; Pallavi Kadam ; Ranjit Menon ; John McNamara ; Marko Kovacevic Subject: [EXTERNAL] [dpdk-dev] [PATCH 0/6] MinGW-w64 support This patch series add support for building DPDK using MinGW-w64. MinGW-w64 provides GNU toolchain and independent platform SDK on Windows. I= t also supports cross-compilation to Windows from POSIX systems by providin= g cross tollchains and libraries [0]. It does NOT emulate a full POSIX envi= ronment, like Cygwin or MSYS do. There are advantages in using MinGW-w64 in addition to Clang: 1. Cross-compilation out-of-the-box. MinGW-w64 is provides a pthread implementation, GNU getopt, and Windows platform SDK. 2. Easier porting of POSIX applications using DPDK to Windows, because application code can use the same benefits as mentioned above. 3. Having both primary compilers enabled on Windows provides more diagnostics and generally prevents non-portable code. [0]: https://nam06.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fmin= gw-w64.org&data=3D02%7C01%7CNarcisa.Vasile%40microsoft.com%7C9ecc756fe4= 1941539c3208d7a5fac686%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C6371603= 68803628802&sdata=3DGcrGNIMkp0PjfmOXoKkbdA4ttMYQLv3cB24riDfPx%2Fk%3D&am= p;reserved=3D0 Dmitry Kozlyuk (6): eal: introduce portable format attribute eal: use portable format attribute cmdline: use portable format attribute build: MinGW-w64 support for Meson build: add cross-file for MinGW-w64 doc: guide for Windows build using MinGW-w64 config/meson.build | 14 +++++ doc/guides/windows_gsg/build_dpdk.rst | 57 +++++++++++++++++---- lib/librte_cmdline/cmdline.h | 4 +- lib/librte_eal/common/include/rte_common.h | 17 +++++- lib/librte_eal/common/include/rte_debug.h | 2 +- lib/librte_eal/common/include/rte_devargs.h | 2 +- lib/librte_eal/common/include/rte_log.h | 4 +- lib/librte_eal/meson.build | 3 ++ lib/meson.build | 8 ++- meson_mingw.txt | 14 +++++ 10 files changed, 108 insertions(+), 17 deletions(-) create mode 100644 m= eson_mingw.txt -- 2.25.0