Wind River Support Network

HomeDefectsLIN6-3767
Fixed

LIN6-3767 : dpdk build error caused by host contamination

Created: Jun 20, 2013    Updated: Mar 10, 2016
Resolved Date: Dec 2, 2013
Previous ID: LIN5-3348, LIN6-3001
Found In Version: 6.0
Fix Version: 6.0
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: BSP - Async

Description

dpdk's    MACHINE_CFLAGS's value depends on the host gcc version, this is wrong.
It should use the WRlinux's toolchain CC.

Otherwise, dpdk will build failed as below:

|   CC rte_malloc.o
| In file included from /bitbake_build/tmp/work/intel_xeon_core_haswell_32-wrs-linux/dpdk-1.3.0-183-r1/DPDK/i686-default-linuxapp-gcc/include/rte_memcpy.h:46:0,
|                  from /bitbake_build/tmp/work/intel_xeon_core_haswell_32-wrs-linux/dpdk-1.3.0-183-r1/DPDK/lib/librte_malloc/rte_malloc.c:41:
| /home/nxadm/nx/pek-blade2.2/wrlinux-x/layers/wr-toolchain/4.7-128/bin/../lib/gcc/i686-wrs-linux-gnu/4.7.2/include/emmintrin.h:32:3: error: #error "SSE2 instruction set not enabled"
| In file included from /bitbake_build/tmp/work/intel_xeon_core_haswell_32-wrs-linux/dpdk-1.3.0-183-r1/DPDK/lib/librte_malloc/rte_malloc.c:41:0:
| /bitbake_build/tmp/work/intel_xeon_core_haswell_32-wrs-linux/dpdk-1.3.0-183-r1/DPDK/i686-default-linuxapp-gcc/include/rte_memcpy.h: In function 'rte_mov16':
| /bitbake_build/tmp/work/intel_xeon_core_haswell_32-wrs-linux/dpdk-1.3.0-183-r1/DPDK/i686-default-linuxapp-gcc/include/rte_memcpy.h:68:2: error: unknown type name '__m128i'
| /bitbake_build/tmp/work/intel_xeon_core_haswell_32-wrs-linux/dpdk-1.3.0-183-r1/DPDK/i686-default-linuxapp-gcc/include/rte_memcpy.h: In function 'rte_mov32':
| /bitbake_build/tmp/work/intel_xeon_core_haswell_32-wrs-linux/dpdk-1.3.0-183-r1/DPDK/i686-default-linuxapp-gcc/include/rte_memcpy.h:91:2: error: unknown type name '__m128i'
| /bitbake_build/tmp/work/intel_xeon_core_haswell_32-wrs-linux/dpdk-1.3.0-183-r1/DPDK/i686-default-linuxapp-gcc/include/rte_memcpy.h: In function 'rte_mov48':
| /bitbake_build/tmp/work/intel_xeon_core_haswell_32-wrs-linux/dpdk-1.3.0-183-r1/DPDK/i686-default-linuxapp-gcc/include/rte_memcpy.h:117:2: error: unknown type name '__m128i'
| /bitbake_build/tmp/work/intel_xeon_core_haswell_32-wrs-linux/dpdk-1.3.0-183-r1/DPDK/i686-default-linuxapp-gcc/include/rte_memcpy.h: In function 'rte_mov64':
| /bitbake_build/tmp/work/intel_xeon_core_haswell_32-wrs-linux/dpdk-1.3.0-183-r1/DPDK/i686-default-linuxapp-gcc/include/rte_memcpy.h:146:2: error: unknown type name '__m128i'
| /bitbake_build/tmp/work/intel_xeon_core_haswell_32-wrs-linux/dpdk-1.3.0-183-r1/DPDK/i686-default-linuxapp-gcc/include/rte_memcpy.h: In function 'rte_mov128':
| /bitbake_build/tmp/work/intel_xeon_core_haswell_32-wrs-linux/dpdk-1.3.0-183-r1/DPDK/i686-default-linuxapp-gcc/include/rte_memcpy.h:178:2: error: unknown type name '__m128i'
| make[4]: *** [rte_malloc.o] Error 1
| make[3]: *** [librte_malloc] Error 2
| make[2]: *** [lib] Error 2
| make[1]: *** [all] Error 2
| make[1]: Leaving directory `/bitbake_build/tmp/work/intel_xeon_core_haswell_32-wrs-linux/dpdk-1.3.0-183-r1/DPDK'
| make: *** [all] Error 2
| make: Leaving directory `/bitbake_build/tmp/work/intel_xeon_core_haswell_32-wrs-linux/dpdk-1.3.0-183-r1/DPDK/i686-default-linuxapp-gcc'
| ERROR: oe_runmake failed
| WARNING: /bitbake_build/tmp/work/intel_xeon_core_haswell_32-wrs-linux/dpdk-1.3.0-183-r1/temp/do_compile/run.do_compile.24732:111 exit 1 from
|   exit 1
| ERROR: Function failed: do_compile (see /bitbake_build/tmp/work/intel_xeon_core_haswell_32-wrs-linux/dpdk-1.3.0-183-r1/temp/do_compile/log.do_compile.24732 for further information)
ERROR: Task 8 (/layers/wr-intel-support/recipes-dpdk/dpdk/dpdk_1.3.0-183.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 497 tasks of which 496 didn't need to be rerun and 1 failed.
No currently running tasks (497 of 732)

Summary: 1 task failed:
  /layers/wr-intel-support/recipes-dpdk/dpdk/dpdk_1.3.0-183.bb, do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
make: *** [dpdk] Error 1
make: Leaving directory `/build'

Steps to Reproduce

1. config a project on a host whoes gcc is below: 4.3  as below:

 /home/nxadm/nx/pek-blade2.2/wrlinux-x/wrlinux/configure --enable-board=intel-xeon-core-haswell-32 --enable-rootfs=glibc-std-sato --enable-kernel=standard --with-layer=wr-intel-support --enable-bootimage=noimage --enable-reconfig=yes

2. make -C build dpdk

Other Downloads


Live chat
Online