From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id EF8212C18 for ; Sun, 10 Apr 2016 01:26:04 +0200 (CEST) Received: by mail-wm0-f42.google.com with SMTP id 191so49675144wmq.0 for ; Sat, 09 Apr 2016 16:26:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=xbARDkLYAC7RenZm2o9/y2/ZjQv0en0QjHizq9bomFU=; b=jpaEVwAMtn95ilkkSIB88ldXhUy+MgX/jzhuBjZOyuYb/rh/BrduRl7TnT2Nv+WiXs SKhbcaUXuc7H6j410sImjFYyK5XE80ALCgsnibmpK2qsLjzBb07rqx4Q+zU5GRDswipW jCRgDFlfxCMur/+GvfwBihwJAPeIfrSgYYeWpnlxzt9ExghGmkVvcChOQIJ9CmQmpIUW Im8F7m9xZkMqx6wecESKHA+lAWDP1Mj8nsLqAfxkA2MOIV+H0wAcinZUndeUU/49y1Xb JETTavY5mZC+MDdtZifiW6sZws9xZN022Ujxpxhj3MydwMglS48j3UNYE0+71pezkj7v CJVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=xbARDkLYAC7RenZm2o9/y2/ZjQv0en0QjHizq9bomFU=; b=ZpKBndUIK+S5LtRcxwfqqAxGJ4Ag07juL/tkYhkxiAhYvUVlJkPv/7La9jaYUIn11h 630autnUvHtuu9RHCl2fRAhuXFaRSoIUHDBjH3p1m2DyEmQTDXrr8A7fkjbGP4mmU6wJ pUAPLosf0qjM0LHnmNhHbGs9wLSNYUSqCj7+9mMXa60bexG12xC9ye9oZxvZijP3FEQO cJ6CkV0o5PaFedfBn2X5wO9FtKXxvXjhTmSDpKr6hJym3/cocus4u05mvhiYLMmGrkny pUf60JgvurEUQQmXhNv6t3GgIJjiOOwd5+KkKSZF5WvuLxx40xGThqDOtwzJ3nDDDpPm j/IA== X-Gm-Message-State: AD7BkJJH83eDTSFc2jM574t/bUIzGtzptL4TehLcpqeJUixtguQreVv4WqCH17MarOdkiWjzDQNBAC5RMUst6g== MIME-Version: 1.0 X-Received: by 10.194.95.73 with SMTP id di9mr17812920wjb.152.1460244364791; Sat, 09 Apr 2016 16:26:04 -0700 (PDT) Received: by 10.194.111.35 with HTTP; Sat, 9 Apr 2016 16:26:04 -0700 (PDT) Date: Sat, 9 Apr 2016 19:26:04 -0400 Message-ID: From: chintu hetam To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] DPDK 2.2 build failing with vhost-kni 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: Sat, 09 Apr 2016 23:26:05 -0000 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 =E2=80=98kni_sock_poll=E2=80=99: /home/vcr/devel/dpdk/dpdk-2.2.0/build/build/lib/librte_eal/linuxapp/kni/kni= _vhost.c:254:25: error: =E2=80=98SOCK_ASYNC_NOSPACE=E2=80=99 undeclared (first use in this f= unction) (!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 =E2=80=98kni_sk_write_space=E2=80=99: /home/vcr/devel/dpdk/dpdk-2.2.0/build/build/lib/librte_eal/linuxapp/kni/kni= _vhost.c:622:26: error: =E2=80=98SOCK_ASYNC_NOSPACE=E2=80=99 undeclared (first use in this f= unction) !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 =E2=80=98kni_vhost_backend_init=E2=80=99: /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 =E2=80=98sk_alloc=E2=80=99 if (!(q =3D (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/kn= i_vhost.o' failed make[8]: *** [/home/vcr/devel/dpdk/dpdk-2.2.0/build/build/lib/librte_eal/linuxapp/kni/kn= i_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/linuxap= p/kni' failed make[7]: *** [_module_/home/vcr/devel/dpdk/dpdk-2.2.0/build/build/lib/librte_eal/linuxap= p/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=3Dy a 2) make config T=3Dx86_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