From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id 28E2B201; Tue, 16 May 2017 13:45:19 +0200 (CEST) Received: from [2606:a000:111b:40ed:109f:ff09:a08:b1fa] (helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1dAauW-0006Yj-UC; Tue, 16 May 2017 07:45:15 -0400 Date: Tue, 16 May 2017 07:44:59 -0400 From: Neil Horman To: Jan Viktorin Cc: Jimmy Carter , users@dpdk.org, dev@dpdk.org, maintainers@dpdk.org, jianbo.liu@linaro.org, kosar@rehivetech.com Message-ID: <20170516114458.GA18139@hmswarspite.think-freely.org> References: <20170516125140.21f0020d.viktorin@rehivetech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170516125140.21f0020d.viktorin@rehivetech.com> User-Agent: Mutt/1.8.0 (2017-02-23) X-Spam-Score: -1.0 (-) X-Spam-Status: No Subject: Re: [dpdk-users] [dpdk-dev] Issue->Dpdk for arm cortex-a15 compilation X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 May 2017 11:45:20 -0000 On Tue, May 16, 2017 at 12:51:40PM +0200, Jan Viktorin wrote: > Hello Jimmy, > > On Tue, 16 May 2017 15:38:22 +0530 > Jimmy Carter wrote: > > > Hi All > > > > I am using dpdk16.11.1 and want to use openwrt external toolchain so that I > > can cross compile for arm cortex 15 > > neon.(arm_cortex-a15+neon-vfpv4_gcc-5.4.0_musl_eabi) > > I've never built DPDK with musl-eabi. I don't think that your issue is > related but just note that my builds have always been done with gnueabi. > > > My target board is Tp link archer C2600. > > I am have assigned these env variables but still getting compilation error > > > > export > > STAGING_DIR=/home/xav-101000739/ovslede/source/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-5.4.0_musl_eabi > > export > > PATH=$PATH:/home/xav-101000739/ovslede/source/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-5.4.0_musl_eabi/bin > > > > > > export CROSS=arm-openwrt-linux- > > export DPDK_TARGET=arm-armv7a-linuxapp-gcc > > export DPDK_DIR=$PWD > > export DPDK_BUILD=$DPDK_DIR/$DPDK_TARGET > > export > > CFLAGS+=-I/home/xav-101000739/ovslede/source/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-5.4.0_musl_eabi > > export RTE_SDK=$PWD > > export RTE_TARGET=arm-armv7a-linuxapp-gcc > > export DPDK_BUILD_DIR=arm-armv7a-linuxapp-gcc > > > > There is a patch to Buildroot that can help you with the setup. See: > > https://patchwork.ozlabs.org/patch/611383/ > > > > > Error:Attached file > > Your build fails on > > eal_memory.c:92: > /home/xav-101000739/Downloads/dpdk/dpdk-stable-16.11.1/build/include/rte_lcore.h:56:10: error: unknown type name 'cpu_set_t' > typedef cpu_set_t rte_cpuset_t; > > This looks like there is some issue with Linux Kernel headers. > > lib/librte_eal/common/include/rte_lcore.h: > > 53 #if defined(__linux__) > 54 typedef cpu_set_t rte_cpuset_t; > 55 #elif defined(__FreeBSD__) > 56 #include > 57 typedef cpuset_t rte_cpuset_t; > 58 #endif > > Probably, you should set the RTE_KERNELDIR properly. > I don't think so. cpu_set_t is most recently defined in /usr/include/bits/shced.h, which is a glibc header. What version of glibc are you building with? Neil > > > > Please advise > > Does dpdk have support for openwrt (arm cortex a15) > > DPDK does not support OpenWRT because (as far as I know) nobody from > the DPDK community is using it in this way. I build DPDK via Buildroot > but this is unsupported by the DPDK upstream. > > I could build DPDK for Cortex-A7, Cortex-A9 and Cortex-A15 in the past. > > I run regular builds of the master branch and I can see no breakage > for the arm-armv7a-linuxapp-gcc configuration. > > Regards > Jan > > > > > Thanks > > Akshay >