gcc-10 uses '-fno-common' by default, which results in error about duplicate definition. Use '-fcommon' to avoid such problem.
Signed-off-by: Chen Qi <[email protected]> --- recipes-extended/dpdk/dpdk_19.11.2.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipes-extended/dpdk/dpdk_19.11.2.bb b/recipes-extended/dpdk/dpdk_19.11.2.bb index 84ab32e..6216228 100644 --- a/recipes-extended/dpdk/dpdk_19.11.2.bb +++ b/recipes-extended/dpdk/dpdk_19.11.2.bb @@ -16,3 +16,6 @@ do_install_append () { # Remove the unneeded dir rm -rf ${D}/${INSTALL_PATH}/${RTE_TARGET}/app } + +# Fix build failure for gcc-10 +DPDK_EXTRA_CFLAGS_append = " -fcommon" -- 2.21.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#6687): https://lists.yoctoproject.org/g/meta-intel/message/6687 Mute This Topic: https://lists.yoctoproject.org/mt/76550886/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
