From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 5C35330D for ; Wed, 2 Jul 2014 04:38:34 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 01 Jul 2014 19:38:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,586,1400050800"; d="scan'208,217";a="563920829" Received: from fmsmsx106.amr.corp.intel.com ([10.19.9.37]) by fmsmga002.fm.intel.com with ESMTP; 01 Jul 2014 19:38:51 -0700 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by FMSMSX106.amr.corp.intel.com (10.19.9.37) with Microsoft SMTP Server (TLS) id 14.3.123.3; Tue, 1 Jul 2014 19:38:51 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.123.3; Tue, 1 Jul 2014 19:38:51 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.210]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.122]) with mapi id 14.03.0123.003; Wed, 2 Jul 2014 10:38:48 +0800 From: "Cao, Waterman" To: Thomas Monjalon , "dev@dpdk.org" Thread-Topic: Compilation errors in FreeBSD and OR Linux (Kerne 2.6.39l Thread-Index: Ac+VnreUg4/rRym5QlWd76KrdfK27g== Date: Wed, 2 Jul 2014 02:38:47 +0000 Message-ID: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Compilation errors in FreeBSD and OR Linux (Kerne 2.6.39l X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jul 2014 02:38:35 -0000 Hi Thomas, We defected two compilation errors in RC3: ------------------------------------------------- One from FreeBSD 10: target: x86_64-native-bsdapp-gcc =3D=3D Build lib/librte_eal/bsdapp/eal CC eal.o /jenkins/workspace/DPDK_AUTO_IDT_VM_FreeBSD10.0_64_BUILD/DPDK/lib/librte_ea= l/bsdapp/eal/eal.c: In function 'rte_eal_init': /jenkins/workspace/DPDK_AUTO_IDT_VM_FreeBSD10.0_64_BUILD/DPDK/lib/librte_ea= l/bsdapp/eal/eal.c:877:2: error: implicit declaration of function 'rte_eal_= dev_init' [-Werror=3Dimplicit-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_ea= l/bsdapp/eal/eal.c:877:2: error: nested extern declaration of 'rte_eal_dev_= init' [-Werror=3Dnested-externs] /jenkins/workspace/DPDK_AUTO_IDT_VM_FreeBSD10.0_64_BUILD/DPDK/lib/librte_ea= l/bsdapp/eal/eal.c:877:23: error: 'PMD_INIT_PRE_PCI_PROBE' undeclared (firs= t 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_ea= l/bsdapp/eal/eal.c:877:23: note: each undeclared identifier is reported onl= y once for each function it appears in /jenkins/workspace/DPDK_AUTO_IDT_VM_FreeBSD10.0_64_BUILD/DPDK/lib/librte_ea= l/bsdapp/eal/eal.c:914:23: error: 'PMD_INIT_POST_PCI_PROBE' undeclared (fir= st 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=3Dy@CONFIG_RTE_NIC_B= YPASS=3Dy<<< =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Installing i686-nati= ve-linuxapp-gcc gmake[5]: Nothing to be done for `depdirs'. Configuration done =3D=3D Build scripts =3D=3D Build scripts/testhost =3D=3D Build lib =3D=3D Build lib/librte_eal =3D=3D Build lib/librte_eal/common =3D=3D Build lib/librte_eal/linuxapp =3D=3D Build lib/librte_eal/linuxapp/igb_uio Building modules, stage 2. MODPOST 1 modules =3D=3D Build lib/librte_eal/linuxapp/eal =3D=3D Build lib/librte_malloc =3D=3D Build lib/librte_ring =3D=3D Build lib/librte_mempool =3D=3D Build lib/librte_mbuf =3D=3D Build lib/librte_timer =3D=3D Build lib/librte_cfgfile =3D=3D Build lib/librte_cmdline =3D=3D Build lib/librte_ether =3D=3D Build lib/librte_net =3D=3D Build lib/librte_pmd_e1000 =3D=3D Build lib/librte_pmd_ixgbe =3D=3D Build lib/librte_pmd_i40e =3D=3D Build lib/librte_kvargs =3D=3D 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 he= re /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 he= re /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 h= ere /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 he= re 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 h= ere 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' wa= s 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