DPDK patches and discussions
 help / color / mirror / Atom feed
From: chintu hetam <rometoroam@gmail.com>
To: dev@dpdk.org
Subject: [dpdk-dev] DPDK 2.2 build failing with vhost-kni
Date: Sat, 9 Apr 2016 19:26:04 -0400	[thread overview]
Message-ID: <CAOH8HtoUOEddeciO9F0XFdz7B9OFZvwb22sc8Rc9GSs5WaQ=fg@mail.gmail.com> (raw)

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

             reply	other threads:[~2016-04-09 23:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-09 23:26 chintu hetam [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOH8HtoUOEddeciO9F0XFdz7B9OFZvwb22sc8Rc9GSs5WaQ=fg@mail.gmail.com' \
    --to=rometoroam@gmail.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).