Hi All Attached is the complete env variables file I have added RTE_KERNELDIR too Also I am now using gnu-eabi version 5.4.0 [arm-openwrt-linux-muslgnueabi-gcc (LEDE GCC 5.4.0 r3909-6411a12) 5.4.0] But I am still getting the same error
Currently I am not using buildroot Is there any step by step available guide for cross compiling dpdk using buildroot for target arm cortex-a15 using some external toolchain. I found this http://dpdk.org/ml/archives/announce/2015-October/000066.html Please advise Thanks On Tue, May 16, 2017 at 5:14 PM, Neil Horman <nhor...@tuxdriver.com> wrote: > 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 <jimmycarter...@gmail.com> 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 <pthread_np.h> > > 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 > > >
DPDK_BUILD_DIR=arm-armv7a-linuxapp-gcc COMP_WORDBREAKS= "'><;|&(: SHELL=/bin/bash TERM=xterm EXTRA_LDLIBS=-L/home/xav-101000739/ovslede/source/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-5.4.0_musl_eabi/lib OLDPWD=/usr/src/dpdk-16.11/examples USER=root LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36: SUDO_USER=xav-101000739 SUDO_UID=1000 DPDK_BUILD=/usr/src/dpdk-16.11/arm-armv7a-linuxapp-gcc USERNAME=root DPDK_TARGET=arm-armv7a-linuxapp-gcc DPDK_DIR=/usr/src/dpdk-16.11 MAIL=/var/mail/root PATH=/home/xav-101000739/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/xav-101000739/ovslede/source/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-5.4.0_musl_eabi/bin RTE_SDK=/usr/src/dpdk-16.11 RTE_TARGET=arm-armv7a-linuxapp-gcc PWD=/usr/src/dpdk-16.11 LANG=en_IN SHLVL=1 SUDO_COMMAND=/bin/bash HOME=/home/xav-101000739 RTE_KERNELDIR=/home/xav-101000739/ovslede/source/build_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-5.4.0_musl_eabi/linux-4.9.20 LANGUAGE=en_IN:en CFLAGS=-I/home/xav-101000739/ovslede/source/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-5.4.0_musl_eabi STAGING_DIR=/home/xav-101000739/ovslede/source/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-5.4.0_musl_eabi LOGNAME=root WIRESHARK=/usr/include/wireshark LESSOPEN=| /usr/bin/lesspipe %s ARCH=arm CROSS=arm-openwrt-linux-muslgnueabi- EXTRA_CFLAGS=-I/home/xav-101000739/ovslede/source/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-5.4.0_musl_eabi/include SUDO_GID=1000 DISPLAY=:0 LESSCLOSE=/usr/bin/lesspipe %s %s EXTRA_LDFLAGS=-L/home/xav-101000739/ovslede/source/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-5.4.0_musl_eabi/lib COLORTERM=gnome-terminal XAUTHORITY=/home/xav-101000739/.Xauthority _=/usr/bin/env