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 C5374A04F2; Mon, 8 Jun 2020 17:06:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D68E02BE9; Mon, 8 Jun 2020 17:06:52 +0200 (CEST) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40078.outbound.protection.outlook.com [40.107.4.78]) by dpdk.org (Postfix) with ESMTP id 890412BAA for ; Mon, 8 Jun 2020 17:06:51 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KH8IAybvwP/YmZurwdV0axhXfGN/41eZY1bhKC6yEdjnCBL9vV0xx6jXHyE3S+dwbA4euZUpPAci5hTGv319Hs1eqeqwe86/I3KiTIQNoWXS5xx7A8eW11y+VPDRJfQucUBipNYNjH0r1h7poMMH7ui/5Bn/Ae7vcd8Y32siZIEayYkUHw2pDEJJHDRRY40hCZNW7P66A25arJZDGxBQ/fF3fHI0Il8WkX0tMhnVO1OOTWVtXI7PnIulrz/CaVPqCRBQdX58F9owqhQYPBP0ltf5x8GnT/uulFiT/cRLwCvCAi3ZWHG1cBFknWnmYI4gwH83ap7RAl03DEdC75kAmg== 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=HH33dojkGkOWemjZmRjVKbCfrzuVnMRZXXnxUxdjrbQ=; b=lEUgI4EEQRhTPmAO1X28ALG2CPdpuZslnPpswhPJcoNe0SDHTOowSkB47iYmVERVp/9myZGKprwO+ThVe6IdLhGdVHjXCb9jj9IjzJJyuta6dUwWgpnh0GdQZTs99qDHcpDxoou4oOu//3U/1s34hcVZhTAbr/NUrcCy0R1ECEacP+qxosFdJoEE2DSwC6J1H/B7Xpgjr/yOgc+rJjCEBPc9r2D8JWvluLp3EZm9NsxbzDjUqVIinTEpc5DPRDKGfcGNUX3U+kcnt9EtPoarXFXx7FGfgQkLPO3ZGiaR7lDZizIFDWzvh91NMB0CkHSdH9JqSyopHGPmUpzJxGQc8A== 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=HH33dojkGkOWemjZmRjVKbCfrzuVnMRZXXnxUxdjrbQ=; b=ffZTo4vT9YI++vqNnf0V47JSI9hmfFoNDBUOHAft7p5jwQtZZA06oK1LFiwGu/4WLy4tcihH/YGwNs5Ed+tFlmuAkpwaH6ZebLi5S49zDCZdybF5T48F43b5TVLXiDLqDZxiftG+dOATjIcEu5a/kj5ouP1fsu2gp0nK5PHhEqs= Received: from AM0PR05MB5313.eurprd05.prod.outlook.com (2603:10a6:208:f2::28) by AM0PR05MB4675.eurprd05.prod.outlook.com (2603:10a6:208:af::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18; Mon, 8 Jun 2020 15:06:25 +0000 Received: from AM0PR05MB5313.eurprd05.prod.outlook.com ([fe80::3069:d8f4:fadc:4d7]) by AM0PR05MB5313.eurprd05.prod.outlook.com ([fe80::3069:d8f4:fadc:4d7%5]) with mapi id 15.20.3066.023; Mon, 8 Jun 2020 15:06:24 +0000 From: Tal Shnaiderman To: Dmitry Kozlyuk CC: Thomas Monjalon , "ranjit.menon@intel.com" , "pallavi.kadam@intel.com" , Harini Ramakrishnan , "navasile@linux.microsoft.com" , "bruce.richardson@intel.com" , William Tu , "Dmitry Malloy (MESHCHANINOV)" , Fady Bader , Tasnim Bashar , "dev@dpdk.org" Thread-Topic: Handling missing export functions in MSVC linkage Thread-Index: AdY8xk4gV3xCwzEtR3GP4gSGphqm0wAYseAAAB2dnBA= Date: Mon, 8 Jun 2020 15:06:24 +0000 Message-ID: References: <20200608030932.5d09c061@sovereign> In-Reply-To: <20200608030932.5d09c061@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: [193.47.165.251] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 767c08a5-c11a-4eb7-1156-08d80bbd8321 x-ms-traffictypediagnostic: AM0PR05MB4675: 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:9508; x-forefront-prvs: 042857DBB5 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ypDE/v/T8WxRLcymD/KWSFaJs1a6370LOFBpViB8YXMXoetAD8ivzmbDtCARzxyjZ7N9dILfm3DZZ5SrAH8zWsIwvmgyrhvUycPAz7fHJsFQ7KzKm5EhQ/Uvbk7hC0pHThcg8fHvFx6q23/igYuUVDiAvayFl1WmZV/+suI7usTnsYeumXcX8pMA5TV3MdoGpc1YWckGtzWAvtiErYX/qRqT2bqwG597qaaoSIcADUo9vl/3aey+n7zEu8nm9BxIdeN1kQ1EvjQJWcDgaZXHZOzf8hSuxQZWHfjjhhopga3Ux/+lnGUGrAkn38rl8Qq/Fzp1MvZACZC5lMPLutL80iZPSLf1nFMsfo8HwNzir8nk0DxCaGj1wnKITsfJw7ah7VH9B5ELBGXFOdmp+weXX5PDJpl8y5/LLXID2DURZpR0NSV+f31zDeOUIt9f38ha x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR05MB5313.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(39860400002)(136003)(346002)(396003)(376002)(7416002)(6916009)(966005)(478600001)(66476007)(64756008)(66556008)(316002)(45080400002)(66446008)(66946007)(186003)(26005)(7696005)(6506007)(54906003)(83080400001)(4326008)(9686003)(55016002)(2906002)(71200400001)(76116006)(33656002)(5660300002)(8936002)(86362001)(8676002)(52536014)(460985005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: +4vbwhu/nXftm3ZQZW+idqyvyqnU0FTwr42ivlz36U0rDEPJStEeX/XzN6zrmjH/PXp/R04cnbruKqbzeaVmruFWE1sovms+59AoCfVtKCx1VTkAwB+Z18iSzc8MbF7uBmsPXgoKMIbtiujgtVo2f0mwmHS7l4c0wIw9DrHN4S4iBS9pVKwsVh7Dv+TbiRdx1jSMAxrlFmWWXQ5Br61guI3NxwBfsndBhYv8DHlGQHiF17YBGElLJpFt8gpV6kM8BZa74y6N5Y0hscOV1q0WXEAX3MSOMIJbVoJqqS2b0goJSG9eXYqv33pi6Epo9WX5fwZzsGbpac3e2ORMD/7S/7AWNiqsQ+rCJYsRuLfbovkmJRwWUHShm8BW5MzOKqKJLWw6JfZHTB5/MjMclG/oLT6CGUreDYPbbrb9xDadDidEmwiN3Bf6G4bZgSlWJo+GUwgLD7A/ZWOPtVv2tYpVyv+KjYAlBmj9lJ4B7cbpx3fN2e8xn1VuDFPXWucd1l6z Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 767c08a5-c11a-4eb7-1156-08d80bbd8321 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jun 2020 15:06:24.8092 (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: gtbf9cosPXKWAPVg3OoI4iVZDM2fuMi3incTT99+CMw4n4os+hD57nkAzW1aUhEKWPKYRzvObTNCIaSQseJHlw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB4675 Subject: Re: [dpdk-dev] Handling missing export functions in MSVC linkage 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" > Subject: Re: Handling missing export functions in MSVC linkage >=20 > On Sun, 7 Jun 2020 12:26:56 +0000 > Tal Shnaiderman wrote: >=20 > > In clang build the .map file is converted into Module-Definition (.Def)= File. >=20 > If you create a .def manually, it will override the generation from .map.= Of > cause, this adds manual work and ideally all .def files should be generat= ed. >=20 Right, eal uses this ability, however in the metrics lib this will not be s= ufficient=20 since in case jansson is found (and it does have Windows support) we do wan= t to export the full .map file >=20 > > Is there a way to instruct the linker to ignore missing functions in th= e def > file? >=20 > There is /FORCE:UNRESOLVED, but it will ignore *any* unresolved reference= , > that's why I'm against using it---this can lead to hard-to-diagnose error= s. >=20 > https://eur03.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fdocs. > microsoft.com%2Fen-us%2Fcpp%2Fbuild%2Freference%2Fforce-force-file- > output%3Fview%3Dvs- > 2019&data=3D02%7C01%7Ctalshn%40mellanox.com%7Cee173c939f094360 > 14f708d80b403a2d%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C6 > 37271717789602353&sdata=3DAfIjZd5K2Grztih%2Fu7utJQZimsjpCX7qgxn0 > Z9n0hd0%3D&reserved=3D0 >=20 > The only proper way I see is forgenertor script to analyze both names .ma= p > and symbols .lib to filter out undefined functions. Dumpbin.exe should be > able to list symbols and it comes with MS Windows SDK, IIRC. >=20 Looks like a good solution to me, however I'm not familiar with the availab= ility of Dumpbin We can discuss this solution in the upcoming community call, thanks! > -- > Dmitry Kozlyuk