Wind River Support Network

HomeDefectsOVP-255
Fixed

OVP-255 : OVDK: build with host gcc,actually we don't need host support sse4.2

Created: Aug 14, 2013    Updated: Mar 11, 2016
Resolved Date: Sep 5, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.7
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Kernel

Description

/buildarea2/lyang0/benchmark/ovdk/bitbake_build/bin/python ./build-aux/check-structs ./include/openflow/openflow.h
touch include/openflow/openflow.h.stamp
/buildarea2/lyang0/benchmark/ovdk/bitbake_build/bin/python ./build-aux/check-structs ./include/openflow/openflow.h ./include/openflow/nicira-ext.h
touch include/openflow/nicira-ext.h.stamp
make[2]: Leaving directory `/buildarea2/lyang0/benchmark/ovdk/bitbake_build/tmp/work/x86_64-wrs-linux/ovdk-0.4.1-1/openvswitch'
Making all in datapath/dpdk
make[2]: Entering directory `/buildarea2/lyang0/benchmark/ovdk/bitbake_build/tmp/work/x86_64-wrs-linux/ovdk-0.4.1-1/openvswitch/datapath/dpdk'
/buildarea2/lyang0/benchmark/ovdk/bitbake_build/tmp/work/x86_64-wrs-linux/ovdk-0.4.1-1/openvswitch/datapath/dpdk/Makefile:78: warning: overriding commands for target `clean'
/buildarea2/lyang0/benchmark/ovdk/bitbake_build/tmp/sysroots/intel-xeon-core/DPDK/mk/rte.app.mk:244: warning: ignoring old commands for target `clean'
gcc -Wp,-MD,./.main.o.d.tmp -m64 -pthread   -DRTE_MACHINE_CPUFLAG_SSE -DRTE_MACHINE_CPUFLAG_SSE2 -DRTE_MACHINE_CPUFLAG_SSE3 -DRTE_COMPILE_TIME_CPUFLAGS=RTE_CPUFLAG_SSE,RTE_CPUFLAG_SSE2,RTE_CPUFLAG_SSE3 -O2 -pipe -g -fPIC -I/buildarea2/lyang0/benchmark/ovdk/bitbake_build/tmp/work/x86_64-wrs-linux/ovdk-0.4.1-1/openvswitch/datapath/dpdk/build/include -I/buildarea2/lyang0/benchmark/ovdk/bitbake_build/tmp/sysroots/intel-xeon-core/DPDK/x86_64-default-linuxapp-gcc/include -include /buildarea2/lyang0/benchmark/ovdk/bitbake_build/tmp/sysroots/intel-xeon-core/DPDK/x86_64-default-linuxapp-gcc/include/rte_config.h -O3 -g -I/buildarea2/lyang0/benchmark/ovdk/bitbake_build/tmp/work/x86_64-wrs-linux/ovdk-0.4.1-1/openvswitch/datapath/dpdk/../shared -I/buildarea2/lyang0/benchmark/ovdk/bitbake_build/tmp/work/x86_64-wrs-linux/ovdk-0.4.1-1/openvswitch/include -I/buildarea2/lyang0/benchmark/ovdk/bitbake_build/tmp/work/x86_64-wrs-linux/ovdk-0.4.1-1/openvswitch/lib -I/buildarea2/lyang0/benchmark/ovdk/bitbake_build/tmp/work/x86_64-wrs-linux/ovdk-0.4.1-1/openvswitch -Wno-error -msse4.2 -DRTE_MACHINE_CPUFLAG_SSE4_2   -o main.o -c /buildarea2/lyang0/benchmark/ovdk/bitbake_build/tmp/work/x86_64-wrs-linux/ovdk-0.4.1-1/openvswitch/datapath/dpdk/main.c
cc1: error: unrecognized command line option "-msse4.2"
make[3]: *** [main.o] Error 1
make[2]: *** [all] Error 2
make[2]: Leaving directory `/buildarea2/lyang0/be

Workaround

vim /buildarea2/lyang0/benchmark/ovdk/bitbake_build/tmp/sysroots/intel-xeon-core/DPDK/mk/rte.vars.mk
add: CC = x86-64-wrswrap-linux-gnu-gcc

Steps to Reproduce

/buildarea2/lyang0/wrlinux-x/wrlinux/configure --enable-board=intel-xeon-core --enable-rootfs=ovp-kvm --enable-addons=wr-ovp --enable-parallel-pkgbuilds=20 --enable-jobs=20 --with-template=feature/intel-dpdk,feature/dpdk-vswitch --with-layer=wr-intel-support

build error will happen "cc1: error: unrecognized command line option "-msse4.2"
but it uses the build servers's gcc, our gcc support this flag, see workaround 
Live chat
Online