[dpdk-dev] Compilation errors in FreeBSD and OR Linux (Kerne 2.6.39l
Cao, Waterman
waterman.cao at intel.com
Wed Jul 2 04:38:47 CEST 2014
Hi Thomas,
We defected two compilation errors in RC3:
-------------------------------------------------
One from FreeBSD 10:
target: x86_64-native-bsdapp-gcc
== Build lib/librte_eal/bsdapp/eal
CC eal.o
/jenkins/workspace/DPDK_AUTO_IDT_VM_FreeBSD10.0_64_BUILD/DPDK/lib/librte_eal/bsdapp/eal/eal.c: In function 'rte_eal_init':
/jenkins/workspace/DPDK_AUTO_IDT_VM_FreeBSD10.0_64_BUILD/DPDK/lib/librte_eal/bsdapp/eal/eal.c:877:2: error: implicit declaration of function 'rte_eal_dev_init' [-Werror=implicit-function-declaration]
if (rte_eal_dev_init(PMD_INIT_PRE_PCI_PROBE) < 0)
^
/jenkins/workspace/DPDK_AUTO_IDT_VM_FreeBSD10.0_64_BUILD/DPDK/lib/librte_eal/bsdapp/eal/eal.c:877:2: error: nested extern declaration of 'rte_eal_dev_init' [-Werror=nested-externs]
/jenkins/workspace/DPDK_AUTO_IDT_VM_FreeBSD10.0_64_BUILD/DPDK/lib/librte_eal/bsdapp/eal/eal.c:877:23: error: 'PMD_INIT_PRE_PCI_PROBE' undeclared (first use in this function)
if (rte_eal_dev_init(PMD_INIT_PRE_PCI_PROBE) < 0)
^
/jenkins/workspace/DPDK_AUTO_IDT_VM_FreeBSD10.0_64_BUILD/DPDK/lib/librte_eal/bsdapp/eal/eal.c:877:23: note: each undeclared identifier is reported only once for each function it appears in
/jenkins/workspace/DPDK_AUTO_IDT_VM_FreeBSD10.0_64_BUILD/DPDK/lib/librte_eal/bsdapp/eal/eal.c:914:23: error: 'PMD_INIT_POST_PCI_PROBE' undeclared (first use in this function)
if (rte_eal_dev_init(PMD_INIT_POST_PCI_PROBE) < 0)
^
cc1: all warnings being treated as errors
gmake[7]: *** [eal.o] Error 1
gmake[6]: *** [eal] Error 2
gmake[5]: *** [bsdapp] Error 2
gmake[4]: *** [librte_eal] Error 2
gmake[3]: *** [lib] Error 2
gmake[2]: *** [all] Error 2
gmake[1]: *** [x86_64-native-bsdapp-gcc_install] Error 2
gmake: *** [install] Error 2
---------------------------------------------------------------
The other from ORACLELINUX64_32 (Linux Kernel 2.6.39)
>>>i686-native-linuxapp-gcc%CONFIG_RTE_LIBRTE_PMD_PCAP=y at CONFIG_RTE_NIC_BYPASS=y<<<
================== Installing i686-native-linuxapp-gcc
gmake[5]: Nothing to be done for `depdirs'.
Configuration done
== Build scripts
== Build scripts/testhost
== Build lib
== Build lib/librte_eal
== Build lib/librte_eal/common
== Build lib/librte_eal/linuxapp
== Build lib/librte_eal/linuxapp/igb_uio
Building modules, stage 2.
MODPOST 1 modules
== Build lib/librte_eal/linuxapp/eal
== Build lib/librte_malloc
== Build lib/librte_ring
== Build lib/librte_mempool
== Build lib/librte_mbuf
== Build lib/librte_timer
== Build lib/librte_cfgfile
== Build lib/librte_cmdline
== Build lib/librte_ether
== Build lib/librte_net
== Build lib/librte_pmd_e1000
== Build lib/librte_pmd_ixgbe
== Build lib/librte_pmd_i40e
== Build lib/librte_kvargs
== Build lib/librte_pmd_bond
CC rte_eth_bond_api.o
In file included from /usr/include/stdlib.h:320,
from /jenkins/workspace/DPDK_AUTO_IDT_VM_ORACLELINUX64_32_BUILD/DPDK/i686-native-linuxapp-gcc/include/rte_mempool.h:63,
from /jenkins/workspace/DPDK_AUTO_IDT_VM_ORACLELINUX64_32_BUILD/DPDK/i686-native-linuxapp-gcc/include/rte_mbuf.h:61,
from /jenkins/workspace/DPDK_AUTO_IDT_VM_ORACLELINUX64_32_BUILD/DPDK/lib/librte_pmd_bond/rte_eth_bond_api.c:37:
/usr/include/sys/types.h:61: error: conflicting types for 'dev_t'
/usr/include/linux/types.h:22: note: previous declaration of 'dev_t' was here
/usr/include/sys/types.h:66: error: conflicting types for 'gid_t'
/usr/include/linux/types.h:52: note: previous declaration of 'gid_t' was here
/usr/include/sys/types.h:71: error: conflicting types for 'mode_t'
/usr/include/linux/types.h:24: note: previous declaration of 'mode_t' was here
/usr/include/sys/types.h:76: error: conflicting types for 'nlink_t'
/usr/include/linux/types.h:25: note: previous declaration of 'nlink_t' was here
/usr/include/sys/types.h:81: error: conflicting types for 'uid_t'
/usr/include/linux/types.h:51: note: previous declaration of 'uid_t' was here
In file included from /usr/include/sys/types.h:133,
from /usr/include/stdlib.h:320,
from /jenkins/workspace/DPDK_AUTO_IDT_VM_ORACLELINUX64_32_BUILD/DPDK/i686-native-linuxapp-gcc/include/rte_mempool.h:63,
from /jenkins/workspace/DPDK_AUTO_IDT_VM_ORACLELINUX64_32_BUILD/DPDK/i686-native-linuxapp-gcc/include/rte_mbuf.h:61,
from /jenkins/workspace/DPDK_AUTO_IDT_VM_ORACLELINUX64_32_BUILD/DPDK/lib/librte_pmd_bond/rte_eth_bond_api.c:37:
/usr/include/time.h:104: error: conflicting types for 'timer_t'
/usr/include/linux/types.h:31: note: previous declaration of 'timer_t' was here
In file included from /usr/include/sys/types.h:220,
from /usr/include/stdlib.h:320,
from /jenkins/workspace/DPDK_AUTO_IDT_VM_ORACLELINUX64_32_BUILD/DPDK/i686-native-linuxapp-gcc/include/rte_mempool.h:63,
from /jenkins/workspace/DPDK_AUTO_IDT_VM_ORACLELINUX64_32_BUILD/DPDK/i686-native-linuxapp-gcc/include/rte_mbuf.h:61,
from /jenkins/workspace/DPDK_AUTO_IDT_VM_ORACLELINUX64_32_BUILD/DPDK/lib/librte_pmd_bond/rte_eth_bond_api.c:37:
/usr/include/sys/select.h:78: error: conflicting types for 'fd_set'
/usr/include/linux/types.h:21: note: previous declaration of 'fd_set' was here
In file included from /usr/include/stdlib.h:320,
from /jenkins/workspace/DPDK_AUTO_IDT_VM_ORACLELINUX64_32_BUILD/DPDK/i686-native-linuxapp-gcc/include/rte_mempool.h:63,
from /jenkins/workspace/DPDK_AUTO_IDT_VM_ORACLELINUX64_32_BUILD/DPDK/i686-native-linuxapp-gcc/include/rte_mbuf.h:61,
from /jenkins/workspace/DPDK_AUTO_IDT_VM_ORACLELINUX64_32_BUILD/DPDK/lib/librte_pmd_bond/rte_eth_bond_api.c:37:
/usr/include/sys/types.h:236: error: conflicting types for 'blkcnt_t'
/usr/include/linux/types.h:140: note: previous declaration of 'blkcnt_t' was here
gmake[5]: *** [rte_eth_bond_api.o] Error 1
gmake[4]: *** [librte_pmd_bond] Error 2
gmake[3]: *** [lib] Error 2
gmake[2]: *** [all] Error 2
gmake[1]: *** [i686-native-linuxapp-gcc_install] Error 2
gmake: *** [install] Error 2
Waterman
More information about the dev
mailing list