我使用&bitbeake元工具链构建了一个工具链' (Yocto Morty)并将其安装在/opt/poky/2.2.1 /.
当我尝试手动构建包含#include的任何用户代码时,在缺少的linux / errno.h文件上构建中断。
. /opt/poky/2.2.1/environment-setup-cortexa9hf-neon-poky-linux-gnueabi
$CC main.c
In file included from /opt/poky/2.2.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/errno.h:35:0,
from main.c:2:
/opt/poky/2.2.1/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/bits/errno.h:24:26: fatal error: linux/errno.h: No such file or directory
# include <linux/errno.h>
^
compilation terminated.
我搜索了/opt/poky/2.2.1/ for" linux / errno.h&#34;一无所获。我错过了什么吗?我以为meta-toolchain构建了自包含的工具链安装。