DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] DPDK 2.2 build failing with vhost-kni
@ 2016-04-09 23:26 chintu hetam
  2016-04-11  8:25 ` Xie, Huawei
  2016-04-11 16:54 ` [dpdk-dev] [PATCH] kni: fix vhost-kni compile errors Ferruh Yigit
  0 siblings, 2 replies; 10+ messages in thread
From: chintu hetam @ 2016-04-09 23:26 UTC (permalink / raw)
  To: dev

I am compiling DPDK 2.2 on Fedora 23 and i am seeing following build error
/home/vcr/devel/dpdk/dpdk-2.2.0/build/build/lib/librte_eal/linuxapp/kni/kni_vhost.c:
In function ‘kni_sock_poll’:
/home/vcr/devel/dpdk/dpdk-2.2.0/build/build/lib/librte_eal/linuxapp/kni/kni_vhost.c:254:25:
error: ‘SOCK_ASYNC_NOSPACE’ undeclared (first use in this function)
      (!test_and_set_bit(SOCK_ASYNC_NOSPACE, &q->sock->flags) &&
                         ^
/home/vcr/devel/dpdk/dpdk-2.2.0/build/build/lib/librte_eal/linuxapp/kni/kni_vhost.c:254:25:
note: each undeclared identifier is reported only once for each function it
appears in
/home/vcr/devel/dpdk/dpdk-2.2.0/build/build/lib/librte_eal/linuxapp/kni/kni_vhost.c:
In function ‘kni_sk_write_space’:
/home/vcr/devel/dpdk/dpdk-2.2.0/build/build/lib/librte_eal/linuxapp/kni/kni_vhost.c:622:26:
error: ‘SOCK_ASYNC_NOSPACE’ undeclared (first use in this function)
      !test_and_clear_bit(SOCK_ASYNC_NOSPACE,
                          ^
/home/vcr/devel/dpdk/dpdk-2.2.0/build/build/lib/librte_eal/linuxapp/kni/kni_vhost.c:
In function ‘kni_vhost_backend_init’:
/home/vcr/devel/dpdk/dpdk-2.2.0/build/build/lib/librte_eal/linuxapp/kni/kni_vhost.c:669:38:
error: too few arguments to function ‘sk_alloc’
  if (!(q = (struct kni_vhost_queue *)sk_alloc(
                                      ^
In file included from
/home/vcr/devel/dpdk/dpdk-2.2.0/build/build/lib/librte_eal/linuxapp/kni/kni_vhost.c:27:0:
/usr/src/kernels/4.4.6-300.fc23.x86_64/include/net/sock.h:1511:14: note:
declared here
 struct sock *sk_alloc(struct net *net, int family, gfp_t priority,
              ^
/usr/src/kernels/4.4.6-300.fc23.x86_64/scripts/Makefile.build:258: recipe
for target
'/home/vcr/devel/dpdk/dpdk-2.2.0/build/build/lib/librte_eal/linuxapp/kni/kni_vhost.o'
failed
make[8]: ***
[/home/vcr/devel/dpdk/dpdk-2.2.0/build/build/lib/librte_eal/linuxapp/kni/kni_vhost.o]
Error 1
/usr/src/kernels/4.4.6-300.fc23.x86_64/Makefile:1388: recipe for target
'_module_/home/vcr/devel/dpdk/dpdk-2.2.0/build/build/lib/librte_eal/linuxapp/kni'
failed
make[7]: ***
[_module_/home/vcr/devel/dpdk/dpdk-2.2.0/build/build/lib/librte_eal/linuxapp/kni]
Error 2
Makefile:146: recipe for target 'sub-make' failed
make[6]: *** [sub-make] Error 2
/home/vcr/devel/dpdk/dpdk-2.2.0/mk/rte.module.mk:79: recipe for target
'rte_kni.ko' failed
make[5]: *** [rte_kni.ko] Error 2
/home/vcr/devel/dpdk/dpdk-2.2.0/mk/rte.subdir.mk:61: recipe for target
'kni' failed
make[4]: *** [kni] Error 2
/home/vcr/devel/dpdk/dpdk-2.2.0/mk/rte.subdir.mk:61: recipe for target
'linuxapp' failed
make[3]: *** [linuxapp] Error 2
/home/vcr/devel/dpdk/dpdk-2.2.0/mk/rte.subdir.mk:61: recipe for target
'librte_eal' failed
make[2]: *** [librte_eal] Error 2
/home/vcr/devel/dpdk/dpdk-2.2.0/mk/rte.sdkbuild.mk:77: recipe for target
'lib' failed
make[1]: *** [lib] Error 2
/home/vcr/devel/dpdk/dpdk-2.2.0/mk/rte.sdkroot.mk:123: recipe for target
'all' failed
make: *** [all] Error 2


it's confirmed it's failing after
1) CONFIG_RTE_KNI_VHOST=y a
2) make config T=x86_64-native-linuxapp-gcc
3) make

[root@localhost dpdk-2.2.0]# uname -a
Linux localhost.localdomain 4.4.6-300.fc23.x86_64 #1 SMP Wed Mar 16
22:10:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-04-11 20:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-09 23:26 [dpdk-dev] DPDK 2.2 build failing with vhost-kni chintu hetam
2016-04-11  8:25 ` Xie, Huawei
2016-04-11 14:09   ` chintu hetam
2016-04-11 18:57     ` chintu hetam
2016-04-11 19:02       ` chintu hetam
2016-04-11 16:54 ` [dpdk-dev] [PATCH] kni: fix vhost-kni compile errors Ferruh Yigit
2016-04-11 17:04   ` Thomas Monjalon
2016-04-11 17:57     ` Ferruh Yigit
2016-04-11 18:30     ` [dpdk-dev] [PATCH v2] " Ferruh Yigit
2016-04-11 20:43       ` 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).