Since oe-core upgraded gcc to 10.1, there is a failure
...
|path_to_dpdk/19.11.1-r0/git/examples/ipsec-secgw/ipsec_process.c:131:34:
error: 'grp.m' may be used uninitialized in this function
[-Werror=maybe-uninitialized]
|  131 |    grp[n].cnt = pkts + i - grp[n].m;
...

Add option `-Wno-error=maybe-uninitialized' to workaround

Signed-off-by: Hongxu Jia <[email protected]>
---
 recipes-extended/dpdk/dpdk.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/recipes-extended/dpdk/dpdk.inc b/recipes-extended/dpdk/dpdk.inc
index 2a20be2..ece4a46 100644
--- a/recipes-extended/dpdk/dpdk.inc
+++ b/recipes-extended/dpdk/dpdk.inc
@@ -70,6 +70,9 @@ DPDK_EXTRA_CFLAGS = ""
 DPDK_EXTRA_CFLAGS_qemux86 ?= "-march=corei7"
 DPDK_EXTRA_CFLAGS_qemux86-64 ?= "-march=corei7"
 
+# Workaround failure on gcc10
+TOOLCHAIN_OPTIONS += "-Wno-error=maybe-uninitialized"
+
 CONFIG_NAME = "common_linux"
 TEST_DIR = "test"
 
-- 
2.21.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#6542): 
https://lists.yoctoproject.org/g/meta-intel/message/6542
Mute This Topic: https://lists.yoctoproject.org/mt/74340595/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to