From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0085.outbound.protection.outlook.com [104.47.41.85]) by dpdk.org (Postfix) with ESMTP id 7E5622E83 for ; Sun, 31 Jul 2016 16:42:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=casasystems.onmicrosoft.com; s=selector1-casasystems-com01b; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Wwf3Gjckcfaqaz2vkYn3xuy4FXX7t/5J27BWHJOieho=; b=SFzQru65Syu/avFMNiUpGrSTUMHVL1o6TFEWiRu3RSG+VG4OiofuDPaZbwA4ecDqS+WnO+n3hHlHSzw1RsbJGinW9xCUUgjVuF6xaIRyfx2zC0MchVYS62NEaJieuOPfFq/28/RAerRpsleXQGANyYNFFV9KEnVKnbQ8Nv51ieE= Received: from SN1PR0601MB1920.namprd06.prod.outlook.com (10.169.38.6) by SN1PR0601MB1919.namprd06.prod.outlook.com (10.169.38.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15; Sun, 31 Jul 2016 14:42:38 +0000 Received: from SN1PR0601MB1920.namprd06.prod.outlook.com ([10.169.38.6]) by SN1PR0601MB1920.namprd06.prod.outlook.com ([10.169.38.6]) with mapi id 15.01.0549.022; Sun, 31 Jul 2016 14:42:38 +0000 From: Mark Szczesniak To: Thomas Monjalon CC: "users@dpdk.org" , "jerin.jacob@caviumnetworks.com" , Jianbo Liu Thread-Topic: [dpdk-users] crosscompiling dpdk Thread-Index: AQHR53SaEeqbkW4VtkmthdGXDz/19aArPzmAgAdmTgA= Date: Sun, 31 Jul 2016 14:42:38 +0000 Message-ID: <2F36759D-F7A8-4096-AD50-96C77F7D0485@casa-systems.com> References: <088AEF4A-B47F-4EB6-B880-215948779093@casa-systems.com> <1815021.UC28Ze6bN7@xps13> In-Reply-To: <1815021.UC28Ze6bN7@xps13> 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=mark.szczesniak@casa-systems.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [73.167.80.181] x-ms-office365-filtering-correlation-id: f94654e3-c2b7-4aa8-ddbf-08d3b950eb7f x-microsoft-exchange-diagnostics: 1; SN1PR0601MB1919; 6:0AJHe0iR0QZaKwBB220RdWY1sGXRqRhr+H1aTNy1QZDNUBUngmmR8Yv0kNykuzupR3jH6R3zfaRsonvQokDcib5SHfxVHOryd7VHILrixpL3m4KtaMjFVzBiBSFZ0/RM0gh6GK2WgluxBg+udavFU2sb0UwSTUTLZP7E5cxyFSfkUb9cDPDdMEdl0TEvzAm2qn7WiQ+JoHHfkDx83CSmzGKga0slzqz70/XPel+yNOK+H1CW5HEXlIzEZujt1mjnwBjYtrC6UzSdA86E3y9nzftHgxgLmyq2U2k9ZiFm+ZU=; 5:7nAHgSWy1sqVqj6rMaH5uLRonIDr8gvWBxyJgruyfZk/RHXk3vud2guvBV+n+5SbgUvz1JRJNn7fe0l0CtUj4gc/7QmnYAnzPH/KIf89iYL1+K0MT3RA1QjA3+i0Fh7HDPrzlXIMHIz8qpvcKox1ag==; 24:XpnTsHYlUlUti0+crSVewloF0w79bzB3yHFADejez1q8o/gCdB68CRIUpFdEr6BIL6ERg6aqjv13XYn25veI4NAS/GRhkVD6AV7tNkJYsjg=; 7:YPC0H0BFKug79id/bXsgAIEOVRo7I5/y69KXKvYn8X7daENcHvRfy4c4W5x2/bcmF5XOOX1tMCDEuIMS0EgKYc7WsOI7MyTlgkN9Tqs1m16KZ5Shq+5COavUpdY4ESEicvKIaTr7ComJ0g52Tt08M0asqouXiYQLp8bca0xZeZS/pU/AB1YqGskuk9BFyjwfb3tqtWb8osIEQ9jPF1tbbR1qMV0mMtDnm7eOkknU0PpAntlpYBkZ/RonouvseZZt x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR0601MB1919; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:SN1PR0601MB1919; BCL:0; PCL:0; RULEID:; SRVR:SN1PR0601MB1919; x-forefront-prvs: 0020414413 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(377424004)(377454003)(57704003)(199003)(51914003)(24454002)(189002)(3280700002)(2906002)(31430400001)(586003)(8936002)(33656002)(36756003)(81166006)(81156014)(19580405001)(19580395003)(97736004)(110136002)(87936001)(8676002)(11100500001)(82746002)(189998001)(10400500002)(86362001)(3660700001)(122556002)(77096005)(3846002)(15975445007)(6116002)(5002640100001)(101416001)(83716003)(102836003)(106356001)(76176999)(54356999)(7736002)(2950100001)(2900100001)(68736007)(50986999)(66066001)(106116001)(305945005)(7846002)(99286002)(4326007)(105586002)(92566002)(104396002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0601MB1919; H:SN1PR0601MB1920.namprd06.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: casa-systems.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <09D8D3BAE02EB649934D9C9BB5DB1688@namprd06.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: casa-systems.com X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jul 2016 14:42:38.7198 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 17b16a32-cb34-482f-946d-8a975023450e X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0601MB1919 Subject: Re: [dpdk-users] crosscompiling dpdk 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: Sun, 31 Jul 2016 14:42:43 -0000 Thomas, Thanks for the info. Once I do this, I run into the following issue (compiler-gcc.h missing) make -f /usr/src/kernels/3.10.0-229.14.1.el7.x86_64/scripts/Makefile.build = obj=3D/vob/mszczesn/accurev_local/NFV2_CMTS/pub/dpdk/dpdk-16.04/build/build= /lib/librte_eal/linuxapp/igb_uio aarch64-linux-gnu-gcc -Wp,-MD,/vob/mszczesn/accurev_local/NFV2_CMTS/pub/d= pdk/dpdk-16.04/build/build/lib/librte_eal/linuxapp/igb_uio/.igb_uio.o.d -n= ostdinc -isystem /opt/arm/gcc-linaro-5.3-2016.02-x86_64_aarch64-linux-gnu/b= in/../lib/gcc/aarch64-linux-gnu/5.3.1/include -I/usr/src/kernels/3.10.0-229= .14.1.el7.x86_64/arch/arm64/include -Iarch/arm64/include/generated -I/usr/= src/kernels/3.10.0-229.14.1.el7.x86_64/include -Iinclude -I/usr/src/kernels= /3.10.0-229.14.1.el7.x86_64/arch/arm64/include/uapi -Iarch/arm64/include/ge= nerated/uapi -I/usr/src/kernels/3.10.0-229.14.1.el7.x86_64/include/uapi -Ii= nclude/generated/uapi -include /usr/src/kernels/3.10.0-229.14.1.el7.x86_64/= include/linux/kconfig.h -I/vob/mszczesn/accurev_local/NFV2_CMTS/pub/dpdk/= dpdk-16.04/build/build/lib/librte_eal/linuxapp/igb_uio -D__KERNEL__ -mlittl= e-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-alias= ing -fno-common -Werror-implicit-function-declaration -Wno-format-security = -fno-delete-null-pointer-checks -O2 -mgeneral-regs-only -Wframe-larger-than= =3D2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-fra= me-pointer -fno-optimize-sibling-calls -g -pg -fno-inline-functions-called-= once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -= fconserve-stack -DCC_HAVE_ASM_GOTO -I/vob/mszczesn/accurev_local/NFV2_CMT= S/pub/dpdk/dpdk-16.04/lib/librte_eal/linuxapp/igb_uio --param max-inline-in= sns-single=3D100 -I/vob/mszczesn/accurev_local/NFV2_CMTS/pub/dpdk/dpdk-16= .04/build/include -Winline -Wall -Werror -include /vob/mszczesn/accurev_loc= al/NFV2_CMTS/pub/dpdk/dpdk-16.04/build/include/rte_config.h -DMODULE -D"K= BUILD_STR(s)=3D#s" -D"KBUILD_BASENAME=3DKBUILD_STR(igb_uio)" -D"KBUILD_MOD= NAME=3DKBUILD_STR(igb_uio)" -c -o /vob/mszczesn/accurev_local/NFV2_CMTS/pub= /dpdk/dpdk-16.04/build/build/lib/librte_eal/linuxapp/igb_uio/.tmp_igb_uio.o= /vob/mszczesn/accurev_local/NFV2_CMTS/pub/dpdk/dpdk-16.04/build/build/lib/= librte_eal/linuxapp/igb_uio/igb_uio.c In file included from /usr/src/kernels/3.10.0-229.14.1.el7.x86_64/include/l= inux/compiler.h:54:0, from /usr/src/kernels/3.10.0-229.14.1.el7.x86_64/include/l= inux/ioport.h:12, from /usr/src/kernels/3.10.0-229.14.1.el7.x86_64/include/l= inux/device.h:16, from /vob/mszczesn/accurev_local/NFV2_CMTS/pub/dpdk/dpdk-1= 6.04/build/build/lib/librte_eal/linuxapp/igb_uio/igb_uio.c:27: /usr/src/kernels/3.10.0-229.14.1.el7.x86_64/include/linux/compiler-gcc.h:10= 3:30: fatal error: linux/compiler-gcc5.h: No such file or directory compilation terminated. make[9]: *** [/vob/mszczesn/accurev_local/NFV2_CMTS/pub/dpdk/dpdk-16.04/bui= ld/build/lib/librte_eal/linuxapp/igb_uio/igb_uio.o] Error 1 make[8]: *** [_module_/vob/mszczesn/accurev_local/NFV2_CMTS/pub/dpdk/dpdk-1= 6.04/build/build/lib/librte_eal/linuxapp/igb_uio] Error 2 mark > On Jul 26, 2016, at 5:45 PM, Thomas Monjalon = wrote: >=20 > Hi, >=20 > 2016-07-26 19:33, Mark Szczesniak: >> What do I need to cross compile dpdk on an x86 platform for an arm64 tar= get? >=20 > You need a cross compiler like the ones provided by Linaro: > https://releases.linaro.org/components/toolchain/gcc-linaro/ > The version 5.3 supports ThunderX compilation. >=20 >> What environment variables need to be set to cross compile correctly? >=20 > export CROSS=3Daarch64-linux-gnu- > export PATH=3D$PATH:$root/gcc-linaro-5.3-2016.02-x86_64_aarch64-linux-gnu= /bin > make config T=3Darm64-thunderx-linuxapp-gcc > make >=20 >> Where can I find documentation for cross-compiling dpdk? >=20 > "make help" or read the programmers guide. >=20 >> Where can I find documentation for dpdk on arm? >=20 > It is missing currently. >=20 >> The current set of documentation only mentions other processors, but goe= s into details for x86. >=20 > Yes. Nobody contributed specific doc for ARM details. >=20 >=20