Resend to dev@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 
<aostrus...@marvell.com<mailto:aostrus...@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....



Reply via email to