Fedora 23 上的 DPDK 编译器错误
DPDK compiler error on fedora 23
正在尝试构建 DPDK 16.04,但出现错误。我做了一些搜索,一些解决方案是 "update the kernel" 我目前是 运行 Fedora 23。下面有一个 uname -a 和确切的版本。我认为我真正在寻找的是有关问题所在的更多信息。错误信息似乎含糊不清。我的下一步是深入研究 make 文件,看看错误发生之前发生了什么。任何有关获取有关该错误的更多信息的建议都将不胜感激。
[rmaes@ruwv-pbullock-2 dpdk-16.04]$ make config T=x86_64-native-linuxapp-gcc
Configuration done
[rmaes@ruwv-pbullock-2 dpdk-16.04]$ make
== Build lib
== Build lib/librte_compat
SYMLINK-FILE include/rte_compat.h
== Build lib/librte_eal
== Build lib/librte_eal/common
SYMLINK-FILE include/generic/rte_atomic.h
SYMLINK-FILE include/generic/rte_byteorder.h
SYMLINK-FILE include/generic/rte_cycles.h
SYMLINK-FILE include/generic/rte_prefetch.h
SYMLINK-FILE include/generic/rte_spinlock.h
SYMLINK-FILE include/generic/rte_memcpy.h
SYMLINK-FILE include/generic/rte_cpuflags.h
SYMLINK-FILE include/generic/rte_rwlock.h
SYMLINK-FILE include/rte_branch_prediction.h
SYMLINK-FILE include/rte_common.h
SYMLINK-FILE include/rte_debug.h
SYMLINK-FILE include/rte_eal.h
SYMLINK-FILE include/rte_errno.h
SYMLINK-FILE include/rte_launch.h
SYMLINK-FILE include/rte_lcore.h
SYMLINK-FILE include/rte_log.h
SYMLINK-FILE include/rte_memory.h
SYMLINK-FILE include/rte_memzone.h
SYMLINK-FILE include/rte_pci.h
SYMLINK-FILE include/rte_pci_dev_ids.h
SYMLINK-FILE include/rte_per_lcore.h
SYMLINK-FILE include/rte_random.h
SYMLINK-FILE include/rte_tailq.h
SYMLINK-FILE include/rte_interrupts.h
SYMLINK-FILE include/rte_alarm.h
SYMLINK-FILE include/rte_string_fns.h
SYMLINK-FILE include/rte_version.h
SYMLINK-FILE include/rte_eal_memconfig.h
SYMLINK-FILE include/rte_malloc_heap.h
SYMLINK-FILE include/rte_hexdump.h
SYMLINK-FILE include/rte_devargs.h
SYMLINK-FILE include/rte_dev.h
SYMLINK-FILE include/rte_pci_dev_feature_defs.h
SYMLINK-FILE include/rte_pci_dev_features.h
SYMLINK-FILE include/rte_malloc.h
SYMLINK-FILE include/rte_keepalive.h
SYMLINK-FILE include/rte_time.h
SYMLINK-FILE include/rte_rwlock.h
SYMLINK-FILE include/rte_memcpy.h
SYMLINK-FILE include/rte_cycles.h
SYMLINK-FILE include/rte_spinlock.h
SYMLINK-FILE include/rte_atomic_32.h
SYMLINK-FILE include/rte_vect.h
SYMLINK-FILE include/rte_prefetch.h
SYMLINK-FILE include/rte_byteorder_32.h
SYMLINK-FILE include/rte_atomic_64.h
SYMLINK-FILE include/rte_rtm.h
SYMLINK-FILE include/rte_cpuflags.h
SYMLINK-FILE include/rte_byteorder_64.h
SYMLINK-FILE include/rte_atomic.h
SYMLINK-FILE include/rte_byteorder.h
== Build lib/librte_eal/linuxapp
== Build lib/librte_eal/linuxapp/eal
CC eal.o
CC eal_hugepage_info.o
CC eal_memory.o
CC eal_thread.o
CC eal_log.o
CC eal_pci.o
CC eal_pci_uio.o
CC eal_pci_vfio.o
CC eal_pci_vfio_mp_sync.o
CC eal_debug.o
CC eal_lcore.o
CC eal_timer.o
CC eal_interrupts.o
CC eal_alarm.o
CC eal_common_lcore.o
CC eal_common_timer.o
CC eal_common_memzone.o
CC eal_common_log.o
CC eal_common_launch.o
CC eal_common_pci.o
CC eal_common_pci_uio.o
CC eal_common_memory.o
CC eal_common_tailqs.o
CC eal_common_errno.o
CC eal_common_cpuflags.o
CC eal_common_string_fns.o
CC eal_common_hexdump.o
CC eal_common_devargs.o
CC eal_common_dev.o
CC eal_common_options.o
CC eal_common_thread.o
CC eal_common_proc.o
CC rte_malloc.o
CC malloc_elem.o
CC malloc_heap.o
CC rte_keepalive.o
CC rte_cpuflags.o
AR librte_eal.a
SYMLINK-FILE include/exec-env/rte_interrupts.h
SYMLINK-FILE include/exec-env/rte_kni_common.h
SYMLINK-FILE include/exec-env/rte_dom0_common.h
INSTALL-LIB librte_eal.a
== Build lib/librte_eal/linuxapp/igb_uio
make[6]: *** /lib/modules/4.2.3-300.fc23.x86_64/build: No such file or directory. Stop.
/home/rmaes/Downloads/dpdk-16.04/mk/rte.module.mk:79: recipe for target 'igb_uio.ko' failed
make[5]: *** [igb_uio.ko] Error 2
/home/rmaes/Downloads/dpdk-16.04/mk/rte.subdir.mk:61: recipe for target 'igb_uio' failed
make[4]: *** [igb_uio] Error 2
/home/rmaes/Downloads/dpdk-16.04/mk/rte.subdir.mk:61: recipe for target 'linuxapp' failed
make[3]: *** [linuxapp] Error 2
/home/rmaes/Downloads/dpdk-16.04/mk/rte.subdir.mk:61: recipe for target 'librte_eal' failed
make[2]: *** [librte_eal] Error 2
/home/rmaes/Downloads/dpdk-16.04/mk/rte.sdkbuild.mk:77: recipe for target 'lib' failed
make[1]: *** [lib] Error 2
/home/rmaes/Downloads/dpdk-16.04/mk/rte.sdkroot.mk:123: recipe for target 'all' failed
make: *** [all] Error 2
[rmaes@ruwv-pbullock-2 dpdk-16.04]$ uname -a
Linux ruwv-pbullock-2 4.2.3-300.fc23.x86_64 #1 SMP Mon Oct 5 15:42:54 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[rmaes@ruwv-pbullock-2 dpdk-16.04]$
是否执行了 sudo yum install kernel-devel-4.2.3-300.fc23.x86_64 一切正常。编译无误。
正在尝试构建 DPDK 16.04,但出现错误。我做了一些搜索,一些解决方案是 "update the kernel" 我目前是 运行 Fedora 23。下面有一个 uname -a 和确切的版本。我认为我真正在寻找的是有关问题所在的更多信息。错误信息似乎含糊不清。我的下一步是深入研究 make 文件,看看错误发生之前发生了什么。任何有关获取有关该错误的更多信息的建议都将不胜感激。
[rmaes@ruwv-pbullock-2 dpdk-16.04]$ make config T=x86_64-native-linuxapp-gcc
Configuration done
[rmaes@ruwv-pbullock-2 dpdk-16.04]$ make
== Build lib
== Build lib/librte_compat
SYMLINK-FILE include/rte_compat.h
== Build lib/librte_eal
== Build lib/librte_eal/common
SYMLINK-FILE include/generic/rte_atomic.h
SYMLINK-FILE include/generic/rte_byteorder.h
SYMLINK-FILE include/generic/rte_cycles.h
SYMLINK-FILE include/generic/rte_prefetch.h
SYMLINK-FILE include/generic/rte_spinlock.h
SYMLINK-FILE include/generic/rte_memcpy.h
SYMLINK-FILE include/generic/rte_cpuflags.h
SYMLINK-FILE include/generic/rte_rwlock.h
SYMLINK-FILE include/rte_branch_prediction.h
SYMLINK-FILE include/rte_common.h
SYMLINK-FILE include/rte_debug.h
SYMLINK-FILE include/rte_eal.h
SYMLINK-FILE include/rte_errno.h
SYMLINK-FILE include/rte_launch.h
SYMLINK-FILE include/rte_lcore.h
SYMLINK-FILE include/rte_log.h
SYMLINK-FILE include/rte_memory.h
SYMLINK-FILE include/rte_memzone.h
SYMLINK-FILE include/rte_pci.h
SYMLINK-FILE include/rte_pci_dev_ids.h
SYMLINK-FILE include/rte_per_lcore.h
SYMLINK-FILE include/rte_random.h
SYMLINK-FILE include/rte_tailq.h
SYMLINK-FILE include/rte_interrupts.h
SYMLINK-FILE include/rte_alarm.h
SYMLINK-FILE include/rte_string_fns.h
SYMLINK-FILE include/rte_version.h
SYMLINK-FILE include/rte_eal_memconfig.h
SYMLINK-FILE include/rte_malloc_heap.h
SYMLINK-FILE include/rte_hexdump.h
SYMLINK-FILE include/rte_devargs.h
SYMLINK-FILE include/rte_dev.h
SYMLINK-FILE include/rte_pci_dev_feature_defs.h
SYMLINK-FILE include/rte_pci_dev_features.h
SYMLINK-FILE include/rte_malloc.h
SYMLINK-FILE include/rte_keepalive.h
SYMLINK-FILE include/rte_time.h
SYMLINK-FILE include/rte_rwlock.h
SYMLINK-FILE include/rte_memcpy.h
SYMLINK-FILE include/rte_cycles.h
SYMLINK-FILE include/rte_spinlock.h
SYMLINK-FILE include/rte_atomic_32.h
SYMLINK-FILE include/rte_vect.h
SYMLINK-FILE include/rte_prefetch.h
SYMLINK-FILE include/rte_byteorder_32.h
SYMLINK-FILE include/rte_atomic_64.h
SYMLINK-FILE include/rte_rtm.h
SYMLINK-FILE include/rte_cpuflags.h
SYMLINK-FILE include/rte_byteorder_64.h
SYMLINK-FILE include/rte_atomic.h
SYMLINK-FILE include/rte_byteorder.h
== Build lib/librte_eal/linuxapp
== Build lib/librte_eal/linuxapp/eal
CC eal.o
CC eal_hugepage_info.o
CC eal_memory.o
CC eal_thread.o
CC eal_log.o
CC eal_pci.o
CC eal_pci_uio.o
CC eal_pci_vfio.o
CC eal_pci_vfio_mp_sync.o
CC eal_debug.o
CC eal_lcore.o
CC eal_timer.o
CC eal_interrupts.o
CC eal_alarm.o
CC eal_common_lcore.o
CC eal_common_timer.o
CC eal_common_memzone.o
CC eal_common_log.o
CC eal_common_launch.o
CC eal_common_pci.o
CC eal_common_pci_uio.o
CC eal_common_memory.o
CC eal_common_tailqs.o
CC eal_common_errno.o
CC eal_common_cpuflags.o
CC eal_common_string_fns.o
CC eal_common_hexdump.o
CC eal_common_devargs.o
CC eal_common_dev.o
CC eal_common_options.o
CC eal_common_thread.o
CC eal_common_proc.o
CC rte_malloc.o
CC malloc_elem.o
CC malloc_heap.o
CC rte_keepalive.o
CC rte_cpuflags.o
AR librte_eal.a
SYMLINK-FILE include/exec-env/rte_interrupts.h
SYMLINK-FILE include/exec-env/rte_kni_common.h
SYMLINK-FILE include/exec-env/rte_dom0_common.h
INSTALL-LIB librte_eal.a
== Build lib/librte_eal/linuxapp/igb_uio
make[6]: *** /lib/modules/4.2.3-300.fc23.x86_64/build: No such file or directory. Stop.
/home/rmaes/Downloads/dpdk-16.04/mk/rte.module.mk:79: recipe for target 'igb_uio.ko' failed
make[5]: *** [igb_uio.ko] Error 2
/home/rmaes/Downloads/dpdk-16.04/mk/rte.subdir.mk:61: recipe for target 'igb_uio' failed
make[4]: *** [igb_uio] Error 2
/home/rmaes/Downloads/dpdk-16.04/mk/rte.subdir.mk:61: recipe for target 'linuxapp' failed
make[3]: *** [linuxapp] Error 2
/home/rmaes/Downloads/dpdk-16.04/mk/rte.subdir.mk:61: recipe for target 'librte_eal' failed
make[2]: *** [librte_eal] Error 2
/home/rmaes/Downloads/dpdk-16.04/mk/rte.sdkbuild.mk:77: recipe for target 'lib' failed
make[1]: *** [lib] Error 2
/home/rmaes/Downloads/dpdk-16.04/mk/rte.sdkroot.mk:123: recipe for target 'all' failed
make: *** [all] Error 2
[rmaes@ruwv-pbullock-2 dpdk-16.04]$ uname -a
Linux ruwv-pbullock-2 4.2.3-300.fc23.x86_64 #1 SMP Mon Oct 5 15:42:54 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[rmaes@ruwv-pbullock-2 dpdk-16.04]$
是否执行了 sudo yum install kernel-devel-4.2.3-300.fc23.x86_64 一切正常。编译无误。