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 BC90EA0526; Wed, 22 Jul 2020 12:20:52 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 806031BFF9; Wed, 22 Jul 2020 12:20:51 +0200 (CEST) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10066.outbound.protection.outlook.com [40.107.1.66]) by dpdk.org (Postfix) with ESMTP id A2D541BFE9 for ; Wed, 22 Jul 2020 12:20:50 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EwkQ4M3qSn/FnMopvputZYEKNJM12DAEfeBLMwBCQeJgnXDjt0luhewljIeMIddnH+p98OweObRSYmk9PwgXmSRHc2HRxZGJwXKureqJFsTSZLtVZxq/X0A1HxSEVe02TBoKuGfsOuanLJ2kTR8BpNMA82/ZJa3WDmkF362sXP259MRi3+IRuGaKtyitf8vdH+jXSXrXnuYJDsIGf/Dr4lI6G7CF5/slGx1NSy8HuVCNR2B1pTWzjCW406IXEMejLF885U557j1wUdTj4BUpm7cjSnMBVz445wUNOURfkjmT0LH5b71c3FdzZ4Q6KYRxDH/i3a8Xzk/KDq+6UsIlRw== 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=iiBtf1qlthQx+s7x0odlt1pNArMBZ+ydXXzawc3hI9w=; b=D9fTRqg0CBCYhWPZUi0zPi7mLv5Cv34MEp4DIXO3SK1DYSVn9CuVqnEEH/n0VNVIJq7l9jlnPTixleJQwhFtnBjD92FHTkAejCI+FRAK9Lycr+cx8bMuQyiiuSIgSZP5XwctIzRDSDiYbDUXBDCaJCiY+oYyI1UBRTOmcMoGj+CMzHFuZzXqD++0UP8HTdAi5umw9KSsNfyQF1OcCpaRX3p8hKid8lsztsrIQi/abeipuJrU4ezp63v4psI9pNfv92xiTJboww+uoP1JgZ63hvCkFtquV370ZGwByCa5ckg++2FdA3wRfHXAxpIMVBXXxVULECvnfhuxWzT/rb70Jw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iiBtf1qlthQx+s7x0odlt1pNArMBZ+ydXXzawc3hI9w=; b=jPJe9p9owjHE2+KQFQIaIGmy5B8/3IO5s/5Ikbd58+rc1QCyyTTopui0JPWYu/Gr/Wfe6h5R73AGS+dU4xUhLrI7L0Xm1pi25noktKmz8mvwIAQ8ccR/NKS+5PkApH0uPvqmNaM5t37auSWRgJF+sVAGEczU5vlrONtJODBFg3A= Received: from VI1PR05MB5872.eurprd05.prod.outlook.com (2603:10a6:803:de::17) by VI1PR0501MB2432.eurprd05.prod.outlook.com (2603:10a6:800:68::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.23; Wed, 22 Jul 2020 10:20:48 +0000 Received: from VI1PR05MB5872.eurprd05.prod.outlook.com ([fe80::ec95:ae9e:77c8:63ae]) by VI1PR05MB5872.eurprd05.prod.outlook.com ([fe80::ec95:ae9e:77c8:63ae%6]) with mapi id 15.20.3216.023; Wed, 22 Jul 2020 10:20:48 +0000 From: Fady Bader To: Dmitry Kozlyuk CC: Narcisa Ana Maria Vasile , "dev@dpdk.org" , Thomas Monjalon , Tasnim Bashar , Tal Shnaiderman , Yohad Tor , "harini.ramakrishnan@microsoft.com" , "ocardona@microsoft.com" , "ranjit.menon@intel.com" , "olivier.matz@6wind.com" Thread-Topic: [dpdk-dev] [PATCH v2 3/3] eal/windows: librte_net build on Windows Thread-Index: AQHWPx7x7rPDSAUOKEeItJMuKBQIU6jh8fCAgAvxElCAHrBdgIAED9GAgABDqgCAApqmsA== Date: Wed, 22 Jul 2020 10:20:48 +0000 Message-ID: References: <'20200610112326.18576-1-fady@mellanox.com'> <20200610120040.17968-1-fady@mellanox.com> <20200610120040.17968-4-fady@mellanox.com> <20200620222209.6e66adae@sovereign> <20200717222251.GB34951@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> <20200720192640.2cd0c58e@sovereign> In-Reply-To: <20200720192640.2cd0c58e@sovereign> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=mellanox.com; x-originating-ip: [109.65.91.39] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 98b87de1-6e12-4974-b085-08d82e28e749 x-ms-traffictypediagnostic: VI1PR0501MB2432: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: JHMF1nn0WK1xCHxTFMu5bGS2h+NJXJXUtjnw5ir+wrMiIhgkTT6wv0niZbbg1uImFXvHlNkDDSKcyL/LlAh27KUZ7fAAX8OzO0tuZjidJba4BNzf6b5YmPUfjqkRxnqWwqYKi2YTS97EmudgYABt073Nnz5eLU3Eqc7QhhdcYBC41HNXT+/oSy9GfsswYO5Kfm0kJlowurZqrq5HE/S9hdnH9PBuy/yv5NSTtcZYQoN/5/XdL+b9+sbDXXoV/cntQDdfMGipsQzJrPURHnI7sXrZi0MA1T+k5A7ZawCuFx7TlmlouF7QB3G16ahcaqAPVTRi4xxZroGk2bCcQIzAHp/N9hBihfI5p2r0mCMpd9l4LfhtaQuIY24BW1OpnjPDyklZl6uVM9BP+1yw1HbMUQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR05MB5872.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(346002)(376002)(136003)(39860400002)(396003)(316002)(6916009)(53546011)(55016002)(6506007)(186003)(52536014)(8936002)(33656002)(83080400001)(8676002)(54906003)(478600001)(9686003)(76116006)(2906002)(45080400002)(66946007)(26005)(5660300002)(4326008)(66556008)(66476007)(64756008)(66446008)(966005)(83380400001)(86362001)(71200400001)(7696005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: QeyZiKtU1xKIYauBg8XVz9UVHqg6gPBr/0zl7uwmBVwqvFZY29tzxIYs3n2oBegdXJ+k0BFvcmNhUOB0JfJiuoFxfH6izUAOj8uZkfKFB4IoGVnc+TVwWa3LqjuU1vbZVrIx3Z6RXLfpPIegwpPIb6aIFmjeSfrdqLQu3t6JYviAvkKUXfiHYHhXBFNNEh+VKDq5K94BWENjX+oaAmJ+54ULzX5oWT9B0FNrkCo0jWO9h4DlM4ozHVNX58vNMldB8SrJvAtqj/KBg5tuLqD4m3NxM+PTcLRLO5muNQg2ueYWYzTUMBky7mLDQ79QUiXZrxuW2g4e9kYnODm+uq9oRDQw3qMptAahdYFr+By5oDGLDQbjt/J3Zyo8ERBYJX8eKcUW5BGcdsksFA1o+xajAcN9LLCLgN5heQNpU7RlUWGBtcrcZaJDaPeHCFJ+Ji+j27gWepulKv74DmAWhy9ZK5BO4FfKiJxn7shQEK0WgnA= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR05MB5872.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 98b87de1-6e12-4974-b085-08d82e28e749 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jul 2020 10:20:48.5881 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: GF9hrYIhKLwqCNZVsKfqXRpRNc7CVqWVk+CI8xexulIoLDu5sMaI4rcoMQUf3us8dvygmTTImdAbqrPcTeQQCw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0501MB2432 Subject: Re: [dpdk-dev] [PATCH v2 3/3] eal/windows: librte_net 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" > -----Original Message----- > From: Dmitry Kozlyuk > Sent: Monday, July 20, 2020 7:27 PM > To: Fady Bader > Cc: Narcisa Ana Maria Vasile ; dev@dpdk.org= ; > Thomas Monjalon ; Tasnim Bashar > ; Tal Shnaiderman ; Yohad Tor > ; harini.ramakrishnan@microsoft.com; > ocardona@microsoft.com; anand.rawat@intel.com; ranjit.menon@intel.com; > olivier.matz@6wind.com > Subject: Re: [dpdk-dev] [PATCH v2 3/3] eal/windows: librte_net build on > Windows >=20 > On Mon, 20 Jul 2020 12:54:08 +0000, Fady Bader wrote: > [snip] > > > Getting the same error with a setup similar to Dmitry's. My setup: > > > SDK 10.0.18362, > > > > I'm sending v4 patch that should resolve this. > > > > > clang 9.0.0. What version of clang are you using on your system? > > > You can try installing LLVM 9.0.0 from > > > https://eur03.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fr= e > > > leases.ll > > > > vm.org%2Fdownload.html&data=3D02%7C01%7Cfady%40mellanox.com%7C0b > > > > 29fed755494b55361d08d82a9ff2b4%7Ca652971c7d2e4d9ba6a4d149256f461b%7C > > > 0 > > > > %7C0%7C637306213753996879&sdata=3D5lPQtvt8EO7q8OAYN60J8rIdYdNJHjsS > > > Pp%2B6P9PL3N0%3D&reserved=3D0 > > > > Thanks for the link, even with clang and SDK version same as yours and > > Dmitry's I'm still passing compilation and not getting the error descri= bed. > > That's because the _m_prefetchw function that is defined in Clang's > > prfchwintrin.h is an intrinsic function corresponding to the > > instruction PREFETCHW that is part of the instruction set extension > > 3DNOW, my processor doesn't support this instruction set extension, so = my > compiler isn't reaching the part where it defines _m_prefetchw. > > I think your processor does support the 3DNOW instruction set > > extension and that why you are reaching this part and I'm not. >=20 > You can try building DPDK for a machine with RDSEED like so: >=20 > meson -Dmachine=3Dbroadwell -Dexamples=3Dhelloworld build Even with this option I still don't get the error. With this option RDSEED = is enabled but the reason I'm not getting the error is that 3DNOW is not supported by = my=20 machine and its disabled. Do you know of such way that I can enable instruction set extenuations for = the=20 project compilation? >=20 > FWIW, replacing with in rte_random.c resolves= the > issue on my setup and also looks valid as per [1]. I checked LLVM 10.0.0,= and both > native and cross MinGW-w64 (GCC 9.2.0). >=20 > [1]: > https://eur03.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fsoftw= are. > intel.com%2Fsites%2Flandingpage%2FIntrinsicsGuide%2F%23text%3D_rdseed32 > _step%26expand%3D4541&data=3D02%7C01%7Cfady%40mellanox.com%7Cd > e059e4538474040e05e08d82cc9b058%7Ca652971c7d2e4d9ba6a4d149256f461b%7 > C0%7C0%7C637308592047834349&sdata=3D5mzK66A1IF4n2KKhRSzbZxOYi0vhj > D4AZlBWyW1oxD8%3D&reserved=3D0 I also think this is a valid solution, this should be considered when addin= g the=20 rte_random support for windows. As for now I didn't use rte_random in the V= 4 patch.