PMD null driver build fails
Null driver fails on Debian Wheezy (with backports) which uses GCC 4.7
== Build lib/librte_pmd_null
CC rte_eth_null.o/home/shemminger/src/dpdk/lib/librte_pmd_null/rte_eth_null.c: In function ‘eth_stats_get’:/home/shemminger/src/dpdk/lib/librte_pmd_null/rte_eth_null.c:302:28: error: array subscript is above array bounds [-Werror=array-bounds] /home/shemminger/src/dpdk/lib/librte_pmd_null/rte_eth_null.c:302:28: error: array subscript is above array bounds [-Werror=array-bounds] /home/shemminger/src/dpdk/lib/librte_pmd_null/rte_eth_null.c:302:28: error: array subscript is above array bounds [-Werror=array-bounds]
2015-02-26 16:44, Stephen Hemminger:
Quoted 10 lines
Null driver fails on Debian Wheezy (with backports) which uses GCC 4.7
== Build
lib/librte_pmd_null
CC rte_eth_null.o/home/shemminger/src/dpdk/lib/librte_pmd_null/rte_eth_null.c: In function ‘eth_stats_get’:/home/shemminger/src/dpdk/lib/librte_pmd_null/rte_eth_null.c:302:28: error: array subscript is above array bounds [-Werror=array-bounds]/home/shemminger/src/dpdk/lib/librte_pmd_null/rte_eth_null.c:302:28: error: array subscript is above array bounds [-Werror=array-bounds]/home/shemminger/src/dpdk/lib/librte_pmd_null/rte_eth_null.c:302:28: error: array subscript is above array bounds [-Werror=array-bounds]
Fixed: http://dpdk.org/browse/dpdk/commit/?id=e34550c8b97826
Thanks