欢迎来到 DPDK交流社区 ,有什么问题可以尽管在这里提问,您将会收到社区其他成员的回答;也可以将您的总结写在这里,为社区其他成员提供帮助。 QQ交流2群:635461501

编译DPDK 遇到 No such file or directory <numa.h>

0 投票

本人是unbuntu 18.04, DPDK 18.05,编译时遇到 找不到numa.h:

Configuration done using x86_64-native-linuxapp-gcc
== Build lib
== Build lib/librte_compat
== Build lib/librte_eal
== Build lib/librte_eal/common
== Build lib/librte_eal/linuxapp
== Build lib/librte_eal/linuxapp/eal
  CC eal_memory.o
/home/david/dpdk-18.05/lib/librte_eal/linuxapp/eal/eal_memory.c:27:10: fatal error: numa.h: No such file or directory
 #include <numa.h>

ubuntu上已经用sudo apt-get install numactl 安装了numactl :

david@david-VirtualBox:~$ numactl --show
policy: default
preferred node: current
physcpubind: 0 1 
cpubind: 0 
nodebind: 0 
membind: 0 

 

在本机目录下也找到了一些numa.h:

/usr/src/linux-headers-4.15.0-23-generic/include/config/numa.h
/usr/src/linux-headers-4.15.0-23-generic/include/config/acpi/numa.h
/usr/src/linux-headers-4.15.0-23-generic/include/config/x86/64/acpi/numa.h
/usr/src/linux-headers-4.15.0-23-generic/include/config/amd/numa.h
/usr/src/linux-headers-4.15.0-29/arch/ia64/include/asm/numa.h
/usr/src/linux-headers-4.15.0-29/arch/arm64/include/asm/numa.h
/usr/src/linux-headers-4.15.0-29/arch/x86/include/asm/numa.h
/usr/src/linux-headers-4.15.0-29/arch/s390/include/asm/numa.h
/usr/src/linux-headers-4.15.0-29/include/linux/numa.h
/usr/src/linux-headers-4.15.0-23/arch/ia64/include/asm/numa.h
/usr/src/linux-headers-4.15.0-23/arch/arm64/include/asm/numa.h
/usr/src/linux-headers-4.15.0-23/arch/x86/include/asm/numa.h
/usr/src/linux-headers-4.15.0-23/arch/s390/include/asm/numa.h
/usr/src/linux-headers-4.15.0-23/include/linux/numa.h
/usr/src/linux-headers-4.15.0-29-generic/include/config/numa.h
/usr/src/linux-headers-4.15.0-29-generic/include/config/acpi/numa.h
/usr/src/linux-headers-4.15.0-29-generic/include/config/x86/64/acpi/numa.h
/usr/src/linux-headers-4.15.0-29-generic/include/config/amd/numa.h

 

最新提问 7月 30, 2018 分类:经验之谈 | 用户: shore_go (130 分)

3 个回答

0 投票
编译前环境变量等配置了吗?
最新回答 7月 30, 2018 用户: dpdk_lover (2,820 分)
配置了,安装了numactl-devel就好了,感谢!
+1 投票
安装numactl-devel
最新回答 7月 30, 2018 用户: sysight (13,020 分)
0 投票
yum install numactl-devel*x86_64
最新回答 11月 21, 2018 用户: wxk566 (160 分)
...