* [dpdk-dev] Compilation errors in FreeBSD and OR Linux (Kerne 2.6.39l
@ 2014-07-02 2:38 Cao, Waterman
2014-07-02 9:22 ` [dpdk-dev] [PATCH] eal: fix build for bsd Thomas Monjalon
0 siblings, 1 reply; 4+ messages in thread
From: Cao, Waterman @ 2014-07-02 2:38 UTC (permalink / raw)
To: Thomas Monjalon, dev
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@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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [dpdk-dev] [PATCH] eal: fix build for bsd
2014-07-02 2:38 [dpdk-dev] Compilation errors in FreeBSD and OR Linux (Kerne 2.6.39l Cao, Waterman
@ 2014-07-02 9:22 ` Thomas Monjalon
2014-07-02 9:58 ` Zhan, Zhaochen
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Monjalon @ 2014-07-02 9:22 UTC (permalink / raw)
To: dev
When adding link bonding to EAL initialization (a155d430119),
an include was missing for BSD.
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
---
lib/librte_eal/bsdapp/eal/eal.c | 1 +
1 file changed, 1 insertion(+)
Please, a quick test and acknowledgement of this fix would be helpful.
diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c
index ec57b26..69ead31 100644
--- a/lib/librte_eal/bsdapp/eal/eal.c
+++ b/lib/librte_eal/bsdapp/eal/eal.c
@@ -66,6 +66,7 @@
#include <rte_cpuflags.h>
#include <rte_interrupts.h>
#include <rte_pci.h>
+#include <rte_dev.h>
#include <rte_devargs.h>
#include <rte_common.h>
#include <rte_version.h>
--
2.0.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH] eal: fix build for bsd
2014-07-02 9:22 ` [dpdk-dev] [PATCH] eal: fix build for bsd Thomas Monjalon
@ 2014-07-02 9:58 ` Zhan, Zhaochen
2014-07-02 10:05 ` Thomas Monjalon
0 siblings, 1 reply; 4+ messages in thread
From: Zhan, Zhaochen @ 2014-07-02 9:58 UTC (permalink / raw)
To: Thomas Monjalon, dev
Hi
I have tested the patch, it still has a build error although it is different from the previous one.
OS: FreeBSD10
== Build lib/librte_pmd_bond
CC rte_eth_bond_api.o
/root/zzc/dpdk-1.7.0-rc3/lib/librte_pmd_bond/rte_eth_bond_api.c:35:27: fatal error: linux/binfmts.h: No such file or directory
#include <linux/binfmts.h>
^
compilation terminated.
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]: *** [x86_64-native-bsdapp-gcc_install] Error 2
gmake: *** [install] Error 2
Thanks,
Zhaochen
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Thomas Monjalon
> Sent: Wednesday, July 02, 2014 5:22 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH] eal: fix build for bsd
>
> When adding link bonding to EAL initialization (a155d430119),
> an include was missing for BSD.
>
> Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
> ---
> lib/librte_eal/bsdapp/eal/eal.c | 1 +
> 1 file changed, 1 insertion(+)
>
>
> Please, a quick test and acknowledgement of this fix would be helpful.
>
>
> diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c
> index ec57b26..69ead31 100644
> --- a/lib/librte_eal/bsdapp/eal/eal.c
> +++ b/lib/librte_eal/bsdapp/eal/eal.c
> @@ -66,6 +66,7 @@
> #include <rte_cpuflags.h>
> #include <rte_interrupts.h>
> #include <rte_pci.h>
> +#include <rte_dev.h>
> #include <rte_devargs.h>
> #include <rte_common.h>
> #include <rte_version.h>
> --
> 2.0.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH] eal: fix build for bsd
2014-07-02 9:58 ` Zhan, Zhaochen
@ 2014-07-02 10:05 ` Thomas Monjalon
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2014-07-02 10:05 UTC (permalink / raw)
To: Zhan, Zhaochen; +Cc: dev
Hi Zhaochen,
Please read answer below:
2014-07-02 09:58, Zhan, Zhaochen:
> I have tested the patch, it still has a build error although it is different
> from the previous one.
>
> OS: FreeBSD10
>
> == Build lib/librte_pmd_bond
> CC rte_eth_bond_api.o
> /root/zzc/dpdk-1.7.0-rc3/lib/librte_pmd_bond/rte_eth_bond_api.c:35:27: fatal
> error: linux/binfmts.h: No such file or directory #include
> <linux/binfmts.h>
Please check with the latest version in master branch (after rc3).
It should be fixed by Helin's patch of today.
Thanks
--
Thomas
> > -----Original Message-----
> > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Thomas Monjalon
> > Sent: Wednesday, July 02, 2014 5:22 PM
> > To: dev@dpdk.org
> > Subject: [dpdk-dev] [PATCH] eal: fix build for bsd
> >
> > When adding link bonding to EAL initialization (a155d430119),
> > an include was missing for BSD.
> >
> > Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
> > ---
> >
> > lib/librte_eal/bsdapp/eal/eal.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > Please, a quick test and acknowledgement of this fix would be helpful.
> >
> >
> > diff --git a/lib/librte_eal/bsdapp/eal/eal.c
> > b/lib/librte_eal/bsdapp/eal/eal.c index ec57b26..69ead31 100644
> > --- a/lib/librte_eal/bsdapp/eal/eal.c
> > +++ b/lib/librte_eal/bsdapp/eal/eal.c
> > @@ -66,6 +66,7 @@
> >
> > #include <rte_cpuflags.h>
> > #include <rte_interrupts.h>
> > #include <rte_pci.h>
> >
> > +#include <rte_dev.h>
> >
> > #include <rte_devargs.h>
> > #include <rte_common.h>
> > #include <rte_version.h>
> >
> > --
> > 2.0.0
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-07-02 10:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-02 2:38 [dpdk-dev] Compilation errors in FreeBSD and OR Linux (Kerne 2.6.39l Cao, Waterman
2014-07-02 9:22 ` [dpdk-dev] [PATCH] eal: fix build for bsd Thomas Monjalon
2014-07-02 9:58 ` Zhan, Zhaochen
2014-07-02 10:05 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).