From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0067.outbound.protection.outlook.com [104.47.42.67]) by dpdk.org (Postfix) with ESMTP id 26CA729CA for ; Tue, 26 Jul 2016 19:49:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=studentuml.onmicrosoft.com; s=selector1-student-uml-edu; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=rzc01fUssSM0zSPnP92VmS1OZvDBAJNOrFlWojWTD/M=; b=k7vxt6SEtD1eDGu0laaMiMN/SfwUe69FMSLhZ7cwa+2m6hYbrsKndunizDF8sYMMOAo7Y+MEKMJgKk/0+uBdeOC7mvhCYl0QpdcHzZd2+qGDc8Spmj2R+39bAt/2j9pyE15EXgWDv+mLkrz8HAN9ltMezO/rGRnZJrrePLhbapU= Received: from CY1PR0201MB0827.namprd02.prod.outlook.com (10.160.141.28) by CY1PR0201MB0827.namprd02.prod.outlook.com (10.160.141.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.544.10; Tue, 26 Jul 2016 17:49:30 +0000 Received: from CY1PR0201MB0827.namprd02.prod.outlook.com ([10.160.141.28]) by CY1PR0201MB0827.namprd02.prod.outlook.com ([10.160.141.28]) with mapi id 15.01.0544.019; Tue, 26 Jul 2016 17:49:30 +0000 From: "Wu, Xiaoban" To: "users@dpdk.org" Thread-Topic: compilation error while building mlx5 of dpdk-16.04 on Ubuntu 16.04 Thread-Index: AQHR52Ut534McgPtM0yiMISG0KMOxw== Date: Tue, 26 Jul 2016 17:49:30 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Xiaoban_Wu@student.uml.edu; x-originating-ip: [129.63.253.96] x-ms-office365-filtering-correlation-id: 1b6c9e6d-fd4c-4a57-2145-08d3b57d3224 x-microsoft-exchange-diagnostics: 1; CY1PR0201MB0827; 6:PPe8WRWCOJYrjl8liK+fJnApznfOjYGuxQ8oePJ7UE9sPknq4RXMsUsmfuhDSkPYZaueY9vhBfUok4czvBM4W9dARCPd9vgxQl+iIX6wqCeeBtAfq9UUTzG+fI0yKgy2ZeKWo3YyISZwuAHPHzhKUww3NcjQIVMT4OrnBcZV6CIdU8osOFYuosIVdHAWs6oQn+jDF61WkmAo1PxSD9mAKtaW/OS8SVZzO2kL86JuXQ85MWBeTJZVg5S5KU/ppz2UEvHPq5RWaZmCetJpR3mMpHvMACHi2li05upmCsqdqOw=; 5:adxj4jdVT4Wc7HWUpytU+LQQFiC46gMKdlEXrA9pBr2s5PkXbwBKaDdBODAalztSebts0ggfb3M0MjIxsLjjnRSJJNcpGhCUG6oKo29xbZfQr+JO8AWOnw1le3Su+1oLgDzg6dOS9PE9OZMTHIaD2w==; 24:gNMqFy1oC42m+SZg2zdLIZEWf6qq8ondelRPxgMJk5gJUimEN7rDJ6z8ddtVs2CDJuG0dQuGYKmulqFsffSLlUGAuyM4TjBChJoQ7oKCu0E=; 7:xpn66MbpKUzbHADVI84S3oGLCq9DScL+ULTdpkiqGmbqDWcYSVYlijW2LKIleJ84cJSVH+rMPWyEQ/YkiR1SeAjx9WLRe7zoRMU5M5gjbu2eh55bpbx+c1gzc+fdJeTUOIUS2fNsU0oiWu7j83fmktORY7v+H35Zi98dg+qo3TAj4B47bYYHmYXe8+HFxGKeQBafM1w30cvyn/qmUKKJpnJqkR8xJtnABeseGeJ0dXrbPdc/irNbnF2Cxul7Z4Gd x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0201MB0827; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(17755550239193); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046); SRVR:CY1PR0201MB0827; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0201MB0827; x-forefront-prvs: 00159D1518 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(189002)(199003)(45984002)(105586002)(19627405001)(89122001)(16236675004)(450100001)(2900100001)(2501003)(74316002)(33656002)(68736007)(19625215002)(76576001)(77096005)(19580395003)(86362001)(99286002)(189998001)(110136002)(107886002)(92566002)(11100500001)(97736004)(101416001)(75432002)(66066001)(7696003)(5003600100003)(229853001)(8936002)(102836003)(6116002)(586003)(50986999)(7736002)(9686002)(3846002)(106116001)(106356001)(54356999)(7846002)(2351001)(3660700001)(87936001)(122556002)(5002640100001)(5640700001)(88552002)(3280700002)(2906002)(10400500002)(81156014)(1730700003)(8676002)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0201MB0827; H:CY1PR0201MB0827.namprd02.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: student.uml.edu does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: student.uml.edu X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jul 2016 17:49:30.4498 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4c25b8a6-17f7-46f9-83f0-54734ab81fb1 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0201MB0827 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] compilation error while building mlx5 of dpdk-16.04 on Ubuntu 16.04 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jul 2016 17:49:33 -0000 Dear DPDK Users, I successfully built the mlx5 on Ubuntu 14.04 before, but when I tried to b= uild it on Ubuntu 16.04, I encountered these compilation errors. The kernel= version is 4.4.0-31-generic. Build command: make install T=3DT=3Dx86_64-na= tive-linuxapp-gcc CC mlx5.o In file included from /usr/include/linux/if.h:31:0, from dpdk-16.04/drivers/net/mlx5/mlx5.h:42, from /dpdk-16.04/drivers/net/mlx5/mlx5.c:64: /usr/include/linux/hdlc/ioctl.h:76:14: error: 'IFNAMSIZ' undeclared here (n= ot in a function) char master[IFNAMSIZ]; /* Name of master FRAD device */ ^ In file included from /dpdk-16.04/drivers/net/mlx5/mlx5.c:64:0: /dpdk-16.04/drivers/net/mlx5/mlx5.h:175:53: warning: 'struct ifreq' declare= d inside parameter list int priv_ifreq(const struct priv *, int req, struct ifreq *); ^ dpdk-16.04/drivers/net/mlx5/mlx5.h:175:53: warning: its scope is only this = definition or declaration, which is probably not what you want dpdk-16.04/drivers/net/mlx5/mlx5.c: In function 'mlx5_pci_devinit': dpdk-16.04/drivers/net/mlx5/mlx5.c:572:25: error: 'IFF_UP' undeclared (firs= t use in this function) priv_set_flags(priv, ~IFF_UP, IFF_UP); ^ /dpdk-16.04/drivers/net/mlx5/mlx5.c:572:25: note: each undeclared identifie= r is reported only once for each function it appears in /dpdk-16.04/mk/internal/rte.compile-pre.mk:126: recipe for target 'mlx5.o' = failed make[6]: *** [mlx5.o] Error 1 /dpdk-16.04/mk/rte.subdir.mk:61: recipe for target 'mlx5' failed make[5]: *** [mlx5] Error 2 /dpdk-16.04/mk/rte.subdir.mk:61: recipe for target 'net' failed make[4]: *** [net] Error 2 /dpdk-16.04/mk/rte.sdkbuild.mk:77: recipe for target 'drivers' failed make[3]: *** [drivers] Error 2 /dpdk-16.04/mk/rte.sdkroot.mk:123: recipe for target 'all' failed make[2]: *** [all] Error 2 /dpdk-16.04/mk/rte.sdkinstall.mk:84: recipe for target 'pre_install' failed make[1]: *** [pre_install] Error 2 dpdk-16.04/mk/rte.sdkroot.mk:98: recipe for target 'install' failed make: *** [install] Error 2 Can anybody please tell me how to fix this? Thank you very much for your he= lp. All the best, Xiaoban