aregm / nff-go

NFF-Go -Network Function Framework for GO (former YANFF)
BSD 3-Clause "New" or "Revised" License
1.38k stars 156 forks source link

Unable to build #692

Closed sitilge closed 4 years ago

sitilge commented 4 years ago

Hi,

I'm keep getting the following errors and unable to complete the build. Any ideas?

home/martins/nff-go/dpdk/dpdk/x86_64-native-linuxapp-gcc-install/usr/local/share/dpdk/x86_64-native-linuxapp-gcc/include/rte_ether.h: In function ‘rte_is_same_ether_addr’:
/home/martins/nff-go/dpdk/dpdk/x86_64-native-linuxapp-gcc-install/usr/local/share/dpdk/x86_64-native-linuxapp-gcc/include/rte_ether.h:84:2: warning: converting a packed ‘const struct rte_ether_addr’ pointer (alignment 1) to a ‘unaligned_uint16_t’ {aka ‘const short unsigned int’} pointer (alignment 2) may result in an unaligned pointer value [-Waddress-of-packed-member]
   84 |  const unaligned_uint16_t *w1 = (const uint16_t *)ea1;
      |  ^~~~~
/home/martins/nff-go/dpdk/dpdk/x86_64-native-linuxapp-gcc-install/usr/local/share/dpdk/x86_64-native-linuxapp-gcc/include/rte_ether.h:85:2: warning: converting a packed ‘const struct rte_ether_addr’ pointer (alignment 1) to a ‘unaligned_uint16_t’ {aka ‘const short unsigned int’} pointer (alignment 2) may result in an unaligned pointer value [-Waddress-of-packed-member]
   85 |  const unaligned_uint16_t *w2 = (const uint16_t *)ea2;
      |  ^~~~~
/home/martins/nff-go/dpdk/dpdk/x86_64-native-linuxapp-gcc-install/usr/local/share/dpdk/x86_64-native-linuxapp-gcc/include/rte_ether.h: In function ‘rte_is_zero_ether_addr’:
/home/martins/nff-go/dpdk/dpdk/x86_64-native-linuxapp-gcc-install/usr/local/share/dpdk/x86_64-native-linuxapp-gcc/include/rte_ether.h:102:2: warning: converting a packed ‘const struct rte_ether_addr’ pointer (alignment 1) to a ‘unaligned_uint16_t’ {aka ‘const short unsigned int’} pointer (alignment 2) may result in an unaligned pointer value [-Waddress-of-packed-member]
  102 |  const unaligned_uint16_t *w = (const uint16_t *)ea;
      |  ^~~~~
/home/martins/nff-go/dpdk/dpdk/x86_64-native-linuxapp-gcc-install/usr/local/share/dpdk/x86_64-native-linuxapp-gcc/include/rte_ether.h: In function ‘rte_is_broadcast_ether_addr’:
/home/martins/nff-go/dpdk/dpdk/x86_64-native-linuxapp-gcc-install/usr/local/share/dpdk/x86_64-native-linuxapp-gcc/include/rte_ether.h:149:2: warning: converting a packed ‘const struct rte_ether_addr’ pointer (alignment 1) to a ‘unaligned_uint16_t’ {aka ‘const short unsigned int’} pointer (alignment 2) may result in an unaligned pointer value [-Waddress-of-packed-member]
  149 |  const unaligned_uint16_t *ea_words = (const unaligned_uint16_t *)ea;
aregm commented 4 years ago

Hi @sitilge! The messages you are showing are warnings, not errors, they are part of DPDK and should not affect the end build. If you switched on -Werror, please switch it off.