[dpdk-dev] avp_ethdev.c failed to build on Fedora32 gcc10

Kevin Traynor ktraynor at redhat.com
Thu Apr 16 13:06:15 CEST 2020


On 16/04/2020 12:02, Mcnamara, John wrote:
> Resend to dev at dpdk.org
> 
> 
> 
> 
> 
> GCC 10 compilation failure in drivers/net/avp/avp_ethdev.c on Fedora32
>>
> 
> 
> 
> Environment
> 
> ===========
> 
> 
> 
>     commit 10c69730a4b4910b4d57c365329a6c26479d25cd (HEAD -> master, origin/master, origin/HEAD)
> 
>     Author: Andrzej Ostruszka <aostruszka at marvell.com<mailto:aostruszka at marvell.com>>
> 
>     Date: Tue Mar 10 10:13:26 2020 +0100
> 
> 
> 
>     lpm6: make IPv6 address immutable
> 
> 
> 
>     OS:Linux Fedora32  5.6.0-0.rc7.git0.2.fc32.x86_64 #1 SMP Mon Mar 23 18:38:45 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
> 
>     Compiler:gcc (GCC) 10.0.1 20200311 (Red Hat 10.0.1-0.9)
> 
> 
> 
> Test Setup
> 
> ==========
> 
> 
> 
> Steps to reproduce
> 
> 
> 
>     export RTE_TARGET=x86_64-native-linuxapp-gcc
> 
>     export RTE_SDK=`pwd`
> 
>     git apply {http://patches.dpdk.org/project/dpdk/list/?series=9038}
> 
>     make -j install T=x86_64-native-linuxapp-gcc
> 
>     Show the output from the previous commands.
> 
>     /root/dpdk/drivers/net/avp/avp_ethdev.c: In function 'avp_xmit_scattered_pkts':
> 
>     /root/dpdk/drivers/net/avp/avp_ethdev.c:1791:24: error: 'avp_bufs[count]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
> 
>     1791 |   tx_bufs[i] = avp_bufs[count];
> 
>           |                ~~~~~~~~^~~~~~~
> 
>     /root/dpdk/drivers/net/avp/avp_ethdev.c:1791:24: error: 'avp_bufs[count]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
> 
>     == Build drivers/crypto/octeontx2
> 
>     cc1: all warnings being treated as errors
> 
>     make[6]: *** [/root/dpdk/mk/internal/rte.compile-pre.mk:116: avp_ethdev.o] Error 1
> 
>     make[5]: *** [/root/dpdk/mk/rte.subdir.mk:37: avp] Error 2
> 
>     make[4]: *** [/root/dpdk/mk/rte.subdir.mk:37: net] Error 2
> 
>     make[4]: *** Waiting for unfinished jobs....
> 
> 
> 

Hi John, this will take care of it,

https://patchwork.dpdk.org/patch/66540/

Kevin.



More information about the dev mailing list