Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22169

DPDK GCC :error: array subscript is above array bounds [-Werror=array-bounds] rte_mov32((uint8_t *)dst + 2 * 32, (const uint8_t *)src + 2 * 32)

$
0
0

when i install dpdk into my Debian server

make install T=x86_64-native-linux-gcc

there will be an error:error: array subscript is above array bounds [-Werror=array-bounds] rte_mov32((uint8_t *)dst + 2 * 32, (const uint8_t *)src + 2 * 32)

so, how to solve it, and why it happened to dpdk?thx!

os: x86_64 GNU/Linux 4.14.52.bm.6-amd64

Gcc version: 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)

DPDK version: 20.05-4c

Error Message:

In file included from /root/zeh/dpdk/x86_64-native-linux-gcc/include/rte_ether.h:21:0,from /root/zeh/dpdk/drivers/net/ena/ena_ethdev.c:7:/root/zeh/dpdk/drivers/net/ena/ena_ethdev.c: In function ‘ena_rss_key_fill’:/root/zeh/dpdk/x86_64-native-linux-gcc/include/rte_memcpy.h:343:2: error: array subscript is above array bounds [-Werror=array-bounds] rte_mov32((uint8_t *)dst + 2 * 32, (const uint8_t *)src + 2 * 32); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/root/zeh/dpdk/x86_64-native-linux-gcc/include/rte_memcpy.h:344:2: error: array subscript is above array bounds [-Werror=array-bounds] rte_mov32((uint8_t *)dst + 3 * 32, (const uint8_t *)src + 3 * 32); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/root/zeh/dpdk/drivers/net/ena/ena_ethdev.c: At top level:cc1: error: unrecognized command line option ‘-Wno-address-of-packed-member’ [-Werror]

and i can install success with DPDK-19.11.


Viewing all articles
Browse latest Browse all 22169

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>