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 9FE48A051C; Sun, 9 Feb 2020 22:51:32 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1DD4E1BEDE; Sun, 9 Feb 2020 22:51:31 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 742B81BE94 for ; Sun, 9 Feb 2020 22:51:29 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Feb 2020 13:51:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,422,1574150400"; d="scan'208";a="433144172" Received: from orsmsx104.amr.corp.intel.com ([10.22.225.131]) by fmsmga006.fm.intel.com with ESMTP; 09 Feb 2020 13:51:27 -0800 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX104.amr.corp.intel.com (10.22.225.131) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 9 Feb 2020 13:51:26 -0800 Received: from orsmsx605.amr.corp.intel.com (10.22.229.18) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sun, 9 Feb 2020 13:51:26 -0800 Received: from ORSEDG001.ED.cps.intel.com (10.7.248.4) by orsmsx605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Sun, 9 Feb 2020 13:51:26 -0800 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.48) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 9 Feb 2020 13:51:26 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U+0f3kPAiQz6Pi8vZ+3SihnNybd7t0E+4fo8aaSy/U4kndD/JSuISkK0mhQDiDpb+v30+quaKn3wVIwFnhSQqNQBv7fvzAULHQLqKiescLpNTC3ZfLYN7yA4H5rBaMmPjAWc8kypZXnscIivgZc0/jwkETuq4P5xHEQALSsCTrBAEB+cs/zYNoWZg9hqum+k9TMQFFR0OyHnwavShWNCV5BYkqs4vuyFUd/QHHoyWyoZxv2EWhZsB7MmeR9uX4j8EbQaSbjTwHV0Mzm00KVW8Dnuef4DWTPy7eZI2AwBJNbsW3RoB47vZgQhw7OfwuawYm0CjE66C3sGVdYCi7CspA== 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=nYU7lygleUOr+tOMz4Cm1gXDU4+xI1dHl8ty0F+gDcY=; b=Fjw8QnFSIeP1C4x055Kx2hUIelmUYnEHByrOzLI2G/dSEpkiCMpNWwzRW2YkJnKji5MBWeo/ogUK8i8TsQUjpOI6PaFagswvD/ayFAtB4Dl3JIgw/vkXsTmJm5qgaf1IdDd+H13ZPxiwbM53ixPTmymFnK9DzJ6Vssu8vqPK0jGeiV59PUfkEIjryYPcqzwL/OP6KWYMoZyC8XupEAn3mUvgmGP5meoitFC9d1pNa71f3JnGDpxiuwFwHf+wPZmGxbjAa/qTVnHImhXcbcs4VpEoaHgkLg9ogEi/2g9NaZpNWE+0F1LgSWIoiZv0rHuX+dCj4fwiDtkeolwq9z13GQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nYU7lygleUOr+tOMz4Cm1gXDU4+xI1dHl8ty0F+gDcY=; b=FSwTQLu49SlqQzCkJd7Y2GPuaJbjo9ajINchDRy7jbeN9sJDZ0WwlPHZQRmuZw+eHA3s7aLyu4A5qWRFpZ8bQhBl7HSyP700BVPoPQNwPCkHQK8aNd5kyiwawgKERFP2bowmiD3ZX4bgRF+4MyfS8OWdbQijupWW7k+17QqJG3U= Received: from SN6PR11MB2558.namprd11.prod.outlook.com (52.135.94.19) by SN6PR11MB3421.namprd11.prod.outlook.com (52.135.124.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2707.21; Sun, 9 Feb 2020 21:51:23 +0000 Received: from SN6PR11MB2558.namprd11.prod.outlook.com ([fe80::395e:eb75:6ab7:2ba5]) by SN6PR11MB2558.namprd11.prod.outlook.com ([fe80::395e:eb75:6ab7:2ba5%3]) with mapi id 15.20.2707.028; Sun, 9 Feb 2020 21:51:23 +0000 From: "Ananyev, Konstantin" To: Stephen Hemminger CC: "dev@dpdk.org" Thread-Topic: BUG BPF examples broken Thread-Index: AQHV3jT3p6kOlEfzT0q3i/+OfSFYJagTZ8Dw Date: Sun, 9 Feb 2020 21:51:23 +0000 Message-ID: References: <20200207200436.7c42c7a5@hermes.lan> In-Reply-To: <20200207200436.7c42c7a5@hermes.lan> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYjI3NmFhYmQtOGExMC00ZWQ1LWI5ZWEtMzA1MDgxMTJmOWUzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiOEx0VUVPR0RjczF0MEFyRGRMUHRxZ0hcL2FwMHJybHRcL1FJdUdMWmlqem5Dd3J1bEZ0Yko5N2ZXbGRHODRTbEdVIn0= dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 x-ctpclassification: CTP_NT authentication-results: spf=none (sender IP is ) smtp.mailfrom=konstantin.ananyev@intel.com; x-originating-ip: [192.198.151.191] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a662679b-d10f-4d83-eb73-08d7adaa34b8 x-ms-traffictypediagnostic: SN6PR11MB3421: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:211; x-forefront-prvs: 0308EE423E x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(346002)(396003)(39860400002)(136003)(366004)(376002)(189003)(199004)(7696005)(3480700007)(86362001)(478600001)(4744005)(4326008)(71200400001)(8936002)(76116006)(53546011)(6506007)(66446008)(66556008)(55016002)(9686003)(52536014)(66946007)(316002)(66476007)(64756008)(2906002)(186003)(26005)(33656002)(8676002)(5660300002)(81166006)(81156014)(6916009); DIR:OUT; SFP:1102; SCL:1; SRVR:SN6PR11MB3421; H:SN6PR11MB2558.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: wwtmAk4gl+fF6vRjvQhK6EkIoaMqMVS7DEfUqDbsb9mM1GDJYFpKFMgtNLNvjYgZKd9HSsylBdlkIC1VDjsU0Gl74wXx7w4WXdh/zWebQkzu7PtL2j5gXKHv4D1W/hX9kJZQCYjQ2zS78v6SWdFWig6pEN2Ar1FAY20Y6QdgnHHZw7rsrD3clojovdKUzeNXYEBhGt5eajra1Y6XFeOc22Gy9FXlZkUUfkwJPYVQGARa3dONZVZ1khQf2FBuiTH9/zFzMKmdCWO1XZbUqbJ39P8Sy2CzfNXk4jOeVXTlT4lN74zsewjykdnLfgtAKxAz4cJ3Md62yerekdgxb3LByo0GK9OjmfRfoBZ/5XaacjZ3MZm5IEk+1f9cQ3S5LpAGuBqEcAN+Aotv5ewjTcMkmEcNLHWpqU6H2jRIXFfOp/+4dAoJFemuMk3DVuD/zYdo x-ms-exchange-antispam-messagedata: u+sda5smPzd+EHfGAn6mdnDh0Kyc3vzbkbtygH4hS2ctKuGXSuyga7BR4Gs0MoVufGB+ZWwGy8c/OEU9JU9m00naCI44C1ldrwaG6LKHXP+V3Ld4IUq62MhUA3FHpmbIEMz1y4SL090qWyxSlWsLUg== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: a662679b-d10f-4d83-eb73-08d7adaa34b8 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Feb 2020 21:51:23.4945 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ug6XFYSh7bLtLqkvUwhJ3B9S+j94K49/07b0KUuuxV7EeOI1kq6LAuGzm5KMhXOPhIyrhgMo+ea2c1i75psT+Ugq0qbVwKphS7bQ4KUxgFU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3421 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] BUG BPF examples broken 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: Stephen Hemminger > Sent: Saturday, February 8, 2020 4:05 AM > To: Ananyev, Konstantin > Cc: dev@dpdk.org > Subject: BUG BPF examples broken >=20 > The BPF examples do not compile on Debian. >=20 > The issue is that ret_mbuf_core.h includes rte_atomic which include rte_c= ommon > which pulls in errno.h and bits/errno.h. And then asm/errno.h >=20 > /usr/include/linux/errno.h:1:10: fatal error: 'asm/errno.h' file not foun= d > #include > ^~~~~~~~~~~~~ > 1 error generated. >=20 > asm/errno.h is architecture specific and BPF is an architecture. AFAIK, installing gcc-multilib package will generate a symlink for /usr/inc= lude/asm: On my ubuntu box: ls -ld /usr/include/asm lrwxrwxrwx 1 root root 20 May 20 2019 /usr/include/asm -> x86_64-linux-gnu= /asm As another possible way: -I/usr/include/x86_64-linux-gnu manually. clang -O2 -U __GNUC__ -I/usr/include/x86_64-linux-gnu -I${RTE_SDK}/${RTE_TA= RGET}/include -target bpf -Wno-int-to-void-pointer-cast -c t3.c