Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile moongen from github on Centos 7 #169

Closed
ns-sundar opened this issue Apr 11, 2017 · 1 comment
Closed

Cannot compile moongen from github on Centos 7 #169

ns-sundar opened this issue Apr 11, 2017 · 1 comment

Comments

@ns-sundar
Copy link

Centos 7.3.1611 (kernel 3.10.0-514.el7.x86_64), moongen cloned from github today. Hitting the following errors in running build.sh:

/root/MoonGen/libmoon/deps/dpdk/x86_64-native-linuxapp-gcc/build/lib/librte_eal/linuxapp/kni/igb_main.c:2335:2: error: initialization from incompatible pointer type [-Werror]
.ndo_fdb_add = igb_ndo_fdb_add,
^
/root/MoonGen/libmoon/deps/dpdk/x86_64-native-linuxapp-gcc/build/lib/librte_eal/linuxapp/kni/igb_main.c:2335:2: error: (near initialization for ‘igb_netdev_ops..ndo_fdb_add’) [-Werror]
/root/MoonGen/libmoon/deps/dpdk/x86_64-native-linuxapp-gcc/build/lib/librte_eal/linuxapp/kni/igb_main.c:2342:2: error: initialization from incompatible pointer type [-Werror]
.ndo_bridge_setlink = igb_ndo_bridge_setlink,

. . .

Building C object libmoon/CMakeFiles/moon.dir/src/memory.c.o
/root/MoonGen/libmoon/src/device.c:2:25: fatal error: rte_ethdev.h: No such file or directory
#include <rte_ethdev.h>
^
compilation terminated.
/root/MoonGen/libmoon/src/memory.c:2:22: fatal error: rte_mbuf.h: No such file or directory
#include <rte_mbuf.h>

The include files rte_ethdev.h and rte_mbuf.h are in fact present in dpdk/lib under librte_ether and librte_mbuf resp.

Since both moongen and Centos 7 are stock versions, one world think they will work together out of the box. I tried a few hacks, but would appreciate an authoritative answer.

Thanks,
Sundar

@emmericp
Copy link
Owner

centos kernels often have quite a few backports and custom patches, not too surprised that it doesn't work.

you can try to disable the KNI mod, it's not used by any of the default examples anyways. just edit the DPDK config as you would normally and recompile.

CONFIG_RTE_KNI_KMOD=n

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants