Building 1.7.1 or 1.8.0-rc4 on latest CentOS 6.6 fails
Hi
When building 1.7.1 or 1.8.0-rc4 on recent CentOS 6 (6.6) I got this error:
In file included from /home/makerpm/rpmbuild/BUILD/dpdk-1.8.0/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_osdep.h:41,
from/home/makerpm/rpmbuild/BUILD/dpdk-1.8.0/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_hw.h:31,
from/home/makerpm/rpmbuild/BUILD/dpdk-1.8.0/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_api.h:31,
from/home/makerpm/rpmbuild/BUILD/dpdk-1.8.0/x86_64-native-linuxapp-gcc/build/lib/librte_eal/linuxapp/kni/e1000_82575.c:38:
/home/makerpm/rpmbuild/BUILD/dpdk-1.8.0/lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h:3870:
error: conflicting types for 'skb_set_hash'
include/linux/skbuff.h:620: note: previous definition of 'skb_set_hash' was here
make[8]: *** [/home/makerpm/rpmbuild/BUILD/dpdk-1.8.0/x86_64-native-linuxapp-gcc/build/lib/librte_eal/linuxapp/kni/e1000_82575.o] Error 1
It seems the assumption that skb_set_hash is missing in CentOS prior to version 7 is not valid anymore.
Didn't see a fix of it in trunk or in the patches.
Thanks,
Barak
A message that is not in the archive (sent off-list or not yet received): df38f6e102cfd755dc36c575a2c75231-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 26 lines · Barak Enat
Hi
When building 1.7.1 or 1.8.0-rc4 on recent CentOS 6 (6.6) I got this error:
In file included from
/home/makerpm/rpmbuild/BUILD/dpdk-1.8.0/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_osdep.h:41,from
/home/makerpm/rpmbuild/BUILD/dpdk-1.8.0/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_hw.h:31,from
/home/makerpm/rpmbuild/BUILD/dpdk-1.8.0/lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_api.h:31,from
/home/makerpm/rpmbuild/BUILD/dpdk-1.8.0/x86_64-native-linuxapp-gcc/build/lib/librte_eal/linuxapp/kni/e1000_82575.c:38:
/home/makerpm/rpmbuild/BUILD/dpdk-1.8.0/lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h:3870:
error: conflicting types for 'skb_set_hash'
include/linux/skbuff.h:620: note: previous definition of 'skb_set_hash' was here
Quoted 8 lines
make[8]: *** [
/home/makerpm/rpmbuild/BUILD/dpdk-1.8.0/x86_64-native-linuxapp-gcc/build/lib/librte_eal/linuxapp/kni/e1000_82575.o] Error 1It seems the assumption that
skb_set_hashis missing in CentOS prior to version 7 is not valid anymore.
Yes, you are right, this function skb_set_hash is added from Cent 6.6, so some macro should be changed like this:
---
lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h +1 -1
@@ -3860,7 +3860,7 @@ static inline struct sk_buff *__kc__vlan_hwaccel_put_tag(s#endif /* >= 3.10.0 */ #if (LINUX_VERSION_CODE <KERNEL_VERSION (3 ,14 ,0 ) ) -#if (!(RHEL_RELEASE_CODE &&RHEL_RELEASE_CODE >=RHEL_RELEASE_VERSION (7 ,0 ))) +#if (!(RHEL_RELEASE_CODE &&RHEL_RELEASE_CODE >=RHEL_RELEASE_VERSION (6 ,6 )))#if (!(UBUNTU_KERNEL_CODE >=UBUNTU_KERNEL_VERSION (3 ,13 ,0 ,30 ,54 ) \ && (UBUNTU_RELEASE_CODE ==UBUNTU_RELEASE_VERSION (12 ,4 ) \ ||UBUNTU_RELEASE_CODE ==UBUNTU_RELEASE_VERSION (14 ,4 ))))
---
Regards,
Jincheng Miao
Quoted 8 lines
Didn't see a fix of it in trunk or in the patches.
Thanks,
Barak
A message that is not in the archive (sent off-list or not yet received): CAF-jSjRe4tT-t_iVAJWdmMFnF5K2Ls6LhydUPsgNQj0bWfUBdQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
2014-12-17 14:21, Jincheng Miao:
Quoted 7 lines · Barak Enat
Quoted 2 lines
It seems the assumption that
skb_set_hashis missing in CentOS prior to version 7 is not valid anymore.Yes, you are right, this function
skb_set_hashis added from Cent 6.6, so some macro should be changed like this:
[...]
lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h static inline struct sk_buff *__kc__vlan_hwaccel_put_tag(s · line 3866
Quoted 6 lines
#if (
LINUX_VERSION_CODE<KERNEL_VERSION(3,14,0))lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h +1
-1-#if (!(RHEL_RELEASE_CODE &&RHEL_RELEASE_CODE >=RHEL_RELEASE_VERSION (7 ,0 ))) +#if (!(RHEL_RELEASE_CODE &&RHEL_RELEASE_CODE >=RHEL_RELEASE_VERSION (6 ,6 )))#if (!(UBUNTU_KERNEL_CODE >=UBUNTU_KERNEL_VERSION (3 ,13 ,0 ,30 ,54 ) \ && (UBUNTU_RELEASE_CODE ==UBUNTU_RELEASE_VERSION (12 ,4 ) \ ||UBUNTU_RELEASE_CODE ==UBUNTU_RELEASE_VERSION (14 ,4 ))))
A patch would be appreciate :)
Thanks
Signature · 1 line
Thomas
2014-12-17 11:09, Thomas Monjalon:
Quoted 9 lines
2014-12-17 14:21, Jincheng Miao:
Quoted 7 lines · Barak Enat
Quoted 2 lines
It seems the assumption that
skb_set_hashis missing in CentOS prior to version 7 is not valid anymore.Yes, you are right, this function
skb_set_hashis added from Cent 6.6, so some macro should be changed like this:[...]
Quoted 8 lines
lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h static inline struct sk_buff *__kc__vlan_hwaccel_put_tag(s · line 3866
Quoted 6 lines
#if (
LINUX_VERSION_CODE<KERNEL_VERSION(3,14,0))lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h +1
-1-#if (!(RHEL_RELEASE_CODE &&RHEL_RELEASE_CODE >=RHEL_RELEASE_VERSION (7 ,0 ))) +#if (!(RHEL_RELEASE_CODE &&RHEL_RELEASE_CODE >=RHEL_RELEASE_VERSION (6 ,6 )))#if (!(UBUNTU_KERNEL_CODE >=UBUNTU_KERNEL_VERSION (3 ,13 ,0 ,30 ,54 ) \ && (UBUNTU_RELEASE_CODE ==UBUNTU_RELEASE_VERSION (12 ,4 ) \ ||UBUNTU_RELEASE_CODE ==UBUNTU_RELEASE_VERSION (14 ,4 ))))A patch would be appreciate :)
Should be fixed now:
http://dpdk.org/browse/dpdk/commit/?id=a8aac461cbdb
Signature · 1 line
Thomas