From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0082.outbound.protection.outlook.com [104.47.34.82]) by dpdk.org (Postfix) with ESMTP id BBDFD5A13 for ; Sat, 13 Aug 2016 00:26:35 +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=zgvoawTyhheOp8vMsScugtG3UKT17qF7X47p5GRojso=; b=ft9EGX/4CraDUQMdKpDDaILsZl2RD7ohy+GXz3pFtLsn3yPaais+5s88T86BmvF3CuIK8eEVY7RPJRIdxjLOIXN9/V1pubaHfort93rFhhR67UJjVK0eCr1wErEpNPX8dgJ5BgFDrUkICkn5++wK+aBAaxePrrIV1jr3luly+90= Received: from SN1PR0601MB1920.namprd06.prod.outlook.com (10.169.38.6) by SN1PR0601MB1918.namprd06.prod.outlook.com (10.169.37.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15; Fri, 12 Aug 2016 22:26:32 +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.027; Fri, 12 Aug 2016 22:26:32 +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/19aArPzmAgAdmTgCAE12wgA== Date: Fri, 12 Aug 2016 22:26:31 +0000 Message-ID: References: <088AEF4A-B47F-4EB6-B880-215948779093@casa-systems.com> <1815021.UC28Ze6bN7@xps13> <2F36759D-F7A8-4096-AD50-96C77F7D0485@casa-systems.com> In-Reply-To: <2F36759D-F7A8-4096-AD50-96C77F7D0485@casa-systems.com> 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: [50.252.238.165] x-ms-office365-filtering-correlation-id: a7822edd-c08b-41e1-a069-08d3c2ffb649 x-microsoft-exchange-diagnostics: 1; SN1PR0601MB1918; 6:UIFuUo8P1p6ktKlHN5itiVcl/lH8YyXDvLXs4BcOw+2uYTKtCFAM0wKY2lHwTgJhXabe95AeTN8eQMh8zR5UylxOcm6u8TGIgTDIu2Cwk4N8DAtkxqP4sDfOtDjmJku20hO6aSamlltqKKK1UOdMypJa9N7d4mP4/5PdbeBi37Wl5etKd5AtpfCJOfC1zxTeZ3aLR4/KPjCV3K0zLPZbBN3HZedAinT4fQl1BkTRiuotW4h2t7BCPwHOOIHmmI7EO0jcGYwSZMrxcpRePRkOFPSSQRnYTeIB55LnKByKItk=; 5:1VCpsFMI2jnjIgQ06z1MIyd/9Grgb4v+GHlpuumZi2htrBHWbBOsXFGmlhByxj0CUBGlrVUNUV+MdNCxSAnq0270Hzbaw21MBGLI5XsKwjgWGc+zCGZFpapQhK/UoaaprAhQMC1vzSulX35canW3eg==; 24:SPMaqA7DADJtopIt7ZTbdL7VT0cSMtWIagy9EIYjO0QfSwsQL+RV7kR/9W3UrJPT1fAybOXCY4zumN7bZamIC45pZNaAiau5wQ885j4nu5M=; 7:ntNZdxajFPHnSUwxNZbXIG7uIJlPRj70XEyDz9f0XHcylX+PHZpNDqpL8B6WnMMfcBrlz4dbIAEqqxQblfqNYpwaz9m2q8DNvOv0hxJcRADxqpiAjUaauEHvsUksJPl5y1Cnty+QuBZEypUoTLfqWbRPfdOWkxcWG6eMlD+NJ8L6sJiL1zMzVAJb31eKBZLwyReAz0KmhvsZWhruGE+QLXE9g0sbVwKCnNqrePYZXBIZet5EMKomVya1vWc8+dyh x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR0601MB1918; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046); SRVR:SN1PR0601MB1918; BCL:0; PCL:0; RULEID:; SRVR:SN1PR0601MB1918; x-forefront-prvs: 003245E729 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(979002)(6009001)(7916002)(189002)(57704003)(377454003)(199003)(24454002)(51914003)(377424004)(2950100001)(92566002)(2900100001)(110136002)(3280700002)(19580395003)(19580405001)(50986999)(2906002)(101416001)(81156014)(81166006)(106116001)(8676002)(8936002)(31430400001)(99286002)(11100500001)(36756003)(189998001)(4326007)(33656002)(10400500002)(87936001)(122556002)(5002640100001)(86362001)(68736007)(66066001)(6116002)(102836003)(3846002)(7736002)(586003)(7846002)(83716003)(76176999)(3660700001)(15975445007)(54356999)(305945005)(97736004)(106356001)(82746002)(105586002)(77096005)(104396002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0601MB1918; H:SN1PR0601MB1920.namprd06.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: casa-systems.com X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Aug 2016 22:26:31.9118 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 17b16a32-cb34-482f-946d-8a975023450e X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0601MB1918 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: Fri, 12 Aug 2016 22:26:36 -0000 I was finally able to get it to build after downloading a kernel and with t= he downloading kernel instead of the one on my server. mark > On Jul 31, 2016, at 10:42 AM, Mark Szczesniak wrote: >=20 > Thomas, >=20 > Thanks for the info. > Once I do this, I run into the following issue (compiler-gcc.h missing) >=20 > make -f /usr/src/kernels/3.10.0-229.14.1.el7.x86_64/scripts/Makefile.buil= d obj=3D/vob/mszczesn/accurev_local/NFV2_CMTS/pub/dpdk/dpdk-16.04/build/bui= ld/lib/librte_eal/linuxapp/igb_uio > aarch64-linux-gnu-gcc -Wp,-MD,/vob/mszczesn/accurev_local/NFV2_CMTS/pub/= dpdk/dpdk-16.04/build/build/lib/librte_eal/linuxapp/igb_uio/.igb_uio.o.d -= nostdinc -isystem /opt/arm/gcc-linaro-5.3-2016.02-x86_64_aarch64-linux-gnu/= bin/../lib/gcc/aarch64-linux-gnu/5.3.1/include -I/usr/src/kernels/3.10.0-22= 9.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/kernel= s/3.10.0-229.14.1.el7.x86_64/arch/arm64/include/uapi -Iarch/arm64/include/g= enerated/uapi -I/usr/src/kernels/3.10.0-229.14.1.el7.x86_64/include/uapi -I= include/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__ -mlitt= le-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-alia= sing -fno-common -Werror-implicit-function-declaration -Wno-format-security= -fno-delete-null-pointer-checks -O2 -mgeneral-regs-only -Wframe-larger-tha= n=3D2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-fr= ame-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_CM= TS/pub/dpdk/dpdk-16.04/lib/librte_eal/linuxapp/igb_uio --param max-inline-i= nsns-single=3D100 -I/vob/mszczesn/accurev_local/NFV2_CMTS/pub/dpdk/dpdk-1= 6.04/build/include -Winline -Wall -Werror -include /vob/mszczesn/accurev_lo= cal/NFV2_CMTS/pub/dpdk/dpdk-16.04/build/include/rte_config.h -DMODULE -D"= KBUILD_STR(s)=3D#s" -D"KBUILD_BASENAME=3DKBUILD_STR(igb_uio)" -D"KBUILD_MO= DNAME=3DKBUILD_STR(igb_uio)" -c -o /vob/mszczesn/accurev_local/NFV2_CMTS/pu= b/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= /linux/compiler.h:54:0, > from /usr/src/kernels/3.10.0-229.14.1.el7.x86_64/include/= linux/ioport.h:12, > from /usr/src/kernels/3.10.0-229.14.1.el7.x86_64/include/= linux/device.h:16, > from /vob/mszczesn/accurev_local/NFV2_CMTS/pub/dpdk/dpdk-= 16.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:= 103: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/b= uild/build/lib/librte_eal/linuxapp/igb_uio/igb_uio.o] Error 1 > make[8]: *** [_module_/vob/mszczesn/accurev_local/NFV2_CMTS/pub/dpdk/dpdk= -16.04/build/build/lib/librte_eal/linuxapp/igb_uio] Error 2 >=20 > mark >=20 >> 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 ta= rget? >>=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-gn= u/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 go= es into details for x86. >>=20 >> Yes. Nobody contributed specific doc for ARM details. >>=20 >>=20 >=20