makefile - DPDK Compilation Error When Building igb_uio -
i trying test out dpdk sample applications in centos 6.4 vm running under kvm, can't dpdk compile.
when trying run
make install t=x86_64-default-linuxapp-gcc -n from dpdk-2.0.0, following output:
[...] make s=lib/librte_eal/linuxapp -f /home/dpdk-1.6.0r2/lib/librte_eal/linuxapp/makefile -c /home/dpdk-1.6.0r2/x86_64-default-linuxapp-gcc/build/lib/librte_eal/linuxapp [ -d /home/dpdk-1.6.0r2/x86_64-default-linuxapp-gcc/build/lib/librte_eal/linuxapp/igb_uio ] || mkdir -p /home/dpdk-1.6.0r2/x86_64-default-linuxapp-gcc/build/lib/librte_eal/linuxapp/igb_uio echo "== build lib/librte_eal/linuxapp/igb_uio" make s=lib/librte_eal/linuxapp/igb_uio -f /home/dpdk-1.6.0r2/lib/librte_eal/linuxapp/igb_uio/makefile -c /home/dpdk-1.6.0r2/x86_64-default-linuxapp-gcc/build/lib/librte_eal/linuxapp/igb_uio if [ ! -f igb_uio.c ]; ln -nfs /home/dpdk-1.6.0r2/lib/librte_eal/linuxapp/igb_uio/igb_uio.c . ; fi if [ ! -f makefile ]; ln -nfs /home/dpdk-1.6.0r2/lib/librte_eal/linuxapp/igb_uio/makefile . ; fi make -c /lib/modules/2.6.32-358.el6.x86_64/build m=/home/dpdk-1.6.0r2/x86_64-default-linuxapp-gcc/build/lib/librte_eal/linuxapp/igb_uio o=/lib/modules/2.6.32-358.el6.x86_64/build \ cross_compile= make: *** /lib/modules/2.6.32-358.el6.x86_64/build: no such file or directory. stop. make[7]: *** [igb_uio.ko] error 2 make[6]: *** [igb_uio] error 2 make[5]: *** [linuxapp] error 2 make[4]: *** [librte_eal] error 2 make[3]: *** [lib] error 2 make[2]: *** [all] error 2 make[1]: *** [x86_64-native-linuxapp-gcc_install] error 2 make: *** [install] error 2 i've installed required packages specified here:
http://dpdk.org/doc/guides/linux_gsg/sys_reqs.html
and i've seen , attempted solution here:
the issue appears both dpdk2-0.0 , 1.6.0.
also, make sure; running
ls /lib/modules/2.6.32-358.el6.x86_64/build returns output:
/lib/modules/2.6.32-358.el6.x86_64/build so directory exists..
i've managed compile dpdk in centos 6.6 kvm on same host without issue, time around keep getting error.
also need centos 6.4, sadly.
update:
added verbose output above ^
just solved it:
i using kernel version 2.6.32-358.el6.x86_64, , had update version 2.6.32-504.23.4.el6.x86_64 rid of error.
additionally, ran error after included line
previous definition of ‘skb_set_hash’ here this happened because of issue dpdk version using (1.6) trying 2.0 fixed this.
then got following error when running of module-related options of setup.sh script:
traceback (most recent call last): file "tools/dpdk_nic_bind.py", line 536, in <module> main() file "tools/dpdk_nic_bind.py", line 532, in main get_nic_details() file "tools/dpdk_nic_bind.py", line 225, in get_nic_details dev_lines = check_output(["lspci", "-dvmmn"]).splitlines() file "tools/dpdk_nic_bind.py", line 120, in check_output stderr=stderr).communicate()[0] file "/usr/lib64/python2.6/subprocess.py", line 642, in __init__ errread, errwrite) file "/usr/lib64/python2.6/subprocess.py", line 1234, in _execute_child raise child_exception oserror: [errno 2] no such file or directory this error because didn't have pciutils installed , script couldn't find lspci.
hope helps else same issues.
Comments
Post a Comment