From: "Wu, Xiaoban" <Xiaoban_Wu@student.uml.edu>
To: "users@dpdk.org" <users@dpdk.org>
Subject: [dpdk-users] compilation error while building mlx5 of dpdk-16.04 on Ubuntu 16.04
Date: Tue, 26 Jul 2016 17:49:30 +0000 [thread overview]
Message-ID: <CY1PR0201MB0827B146A56B93990D22A87FBC0E0@CY1PR0201MB0827.namprd02.prod.outlook.com> (raw)
Dear DPDK Users,
I successfully built the mlx5 on Ubuntu 14.04 before, but when I tried to build it on Ubuntu 16.04, I encountered these compilation errors. The kernel version is 4.4.0-31-generic. Build command: make install T=T=x86_64-native-linuxapp-gcc
CC mlx5.o
In file included from /usr/include/linux/if.h:31:0,
from dpdk-16.04/drivers/net/mlx5/mlx5.h:42,
from /dpdk-16.04/drivers/net/mlx5/mlx5.c:64:
/usr/include/linux/hdlc/ioctl.h:76:14: error: 'IFNAMSIZ' undeclared here (not in a function)
char master[IFNAMSIZ]; /* Name of master FRAD device */
^
In file included from /dpdk-16.04/drivers/net/mlx5/mlx5.c:64:0:
/dpdk-16.04/drivers/net/mlx5/mlx5.h:175:53: warning: 'struct ifreq' declared inside parameter list
int priv_ifreq(const struct priv *, int req, struct ifreq *);
^
dpdk-16.04/drivers/net/mlx5/mlx5.h:175:53: warning: its scope is only this definition or declaration, which is probably not what you want
dpdk-16.04/drivers/net/mlx5/mlx5.c: In function 'mlx5_pci_devinit':
dpdk-16.04/drivers/net/mlx5/mlx5.c:572:25: error: 'IFF_UP' undeclared (first use in this function)
priv_set_flags(priv, ~IFF_UP, IFF_UP);
^
/dpdk-16.04/drivers/net/mlx5/mlx5.c:572:25: note: each undeclared identifier is reported only once for each function it appears in
/dpdk-16.04/mk/internal/rte.compile-pre.mk:126: recipe for target 'mlx5.o' failed
make[6]: *** [mlx5.o] Error 1
/dpdk-16.04/mk/rte.subdir.mk:61: recipe for target 'mlx5' failed
make[5]: *** [mlx5] Error 2
/dpdk-16.04/mk/rte.subdir.mk:61: recipe for target 'net' failed
make[4]: *** [net] Error 2
/dpdk-16.04/mk/rte.sdkbuild.mk:77: recipe for target 'drivers' failed
make[3]: *** [drivers] Error 2
/dpdk-16.04/mk/rte.sdkroot.mk:123: recipe for target 'all' failed
make[2]: *** [all] Error 2
/dpdk-16.04/mk/rte.sdkinstall.mk:84: recipe for target 'pre_install' failed
make[1]: *** [pre_install] Error 2
dpdk-16.04/mk/rte.sdkroot.mk:98: recipe for target 'install' failed
make: *** [install] Error 2
Can anybody please tell me how to fix this? Thank you very much for your help.
All the best,
Xiaoban
next reply other threads:[~2016-07-26 17:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-26 17:49 Wu, Xiaoban [this message]
2016-07-26 19:33 ` Javier Blazquez
2016-07-26 19:34 ` Javier Blazquez
2016-07-26 20:30 ` Wu, Xiaoban
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=CY1PR0201MB0827B146A56B93990D22A87FBC0E0@CY1PR0201MB0827.namprd02.prod.outlook.com \
--to=xiaoban_wu@student.uml.edu \
--cc=users@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).