DPDK compilation error while building igb_uio

I am trying to test DPDK sample applications on CentOS 6.4 VM running KVM, but I cannot get DPDK to compile.

When trying to run

make install T=x86_64-default-linuxapp-gcc -n

from DPDK-2.0.0, I get the 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 all
[ -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 all
if [ ! -f igb_uio.c ]; then ln -nfs /home/dpdk-1.6.0r2/lib/librte_eal/linuxapp/igb_uio/igb_uio.c . ; fi
if [ ! -f Makefile ]; then 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 installed all the necessary packages listed here:

http://dpdk.org/doc/guides/linux_gsg/sys_reqs.html

and I saw and tried to find a solution here:

Intel DPDK Compilation Error

The problem appears for both DPDK2-0.0 and 1.6.0.

Also to make sure; launch

ls /lib/modules/2.6.32-358.el6.x86_64/build

returns the result:

/lib/modules/2.6.32-358.el6.x86_64/build

therefore the directory definitely exists.

I managed to compile DPDK on CentOS 6.6 KVM on the same host without any problems, but this time I keep getting this error.

Also, unfortunately, this should be CentOS 6.4.

Update:

Added detailed output above ^

+4
1

:

2.6.32-358.el6.x86_64, 2.6.32- 504.23.4.el6.x86_64, .

, ,

previous definition of β€˜skb_set_hash’ was here

- DPDK, (1.6) Trying 2.0 .

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

- , pciutils, script lspci.

, - .

+4

All Articles