* [dpdk-dev] avp_ethdev.c failed to build on Fedora32 gcc10
@ 2020-04-16 11:02 Mcnamara, John
2020-04-16 11:06 ` Kevin Traynor
0 siblings, 1 reply; 2+ messages in thread
From: Mcnamara, John @ 2020-04-16 11:02 UTC (permalink / raw)
To: Andrzej Ostruszka; +Cc: Zhang, XuemingX, Daly, Lee, Yigit, Ferruh, dev
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 <aostruszka@marvell.com<mailto:aostruszka@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....
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] avp_ethdev.c failed to build on Fedora32 gcc10
2020-04-16 11:02 [dpdk-dev] avp_ethdev.c failed to build on Fedora32 gcc10 Mcnamara, John
@ 2020-04-16 11:06 ` Kevin Traynor
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Traynor @ 2020-04-16 11:06 UTC (permalink / raw)
To: Mcnamara, John, Andrzej Ostruszka
Cc: Zhang, XuemingX, Daly, Lee, Yigit, Ferruh, dev
On 16/04/2020 12:02, Mcnamara, John wrote:
> 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 <aostruszka@marvell.com<mailto:aostruszka@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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-16 11:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-16 11:02 [dpdk-dev] avp_ethdev.c failed to build on Fedora32 gcc10 Mcnamara, John
2020-04-16 11:06 ` Kevin Traynor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).