ubuntu-18.04 - 制作busybox时缺少头文件
问题描述
我正在尝试使用 qemu 安装 riscv linux,并在此处遵循本指南: https ://risc-v-getting-started-guide.readthedocs.io/en/latest/linux-qemu.html
操作系统是 ubuntu 18.04
我设法制作了 qemu 和 linux,但 busybox 引起了问题。当我尝试CROSS_COMPILE=riscv64-unknown-elf- make -j $(nproc)
错误消失为
include/platform.h:168:11: fatal error: byteswap.h: No such file or directory
168 | # include <byteswap.h>
| ^~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:197: recipe for target 'applets/applets.o' failed
make[1]: *** [applets/applets.o] Error 1
Makefile:372: recipe for target 'applets_dir' failed
make: *** [applets_dir] Error 2
我不确定,但尝试从 glibc 添加文件会给我更多缺少的标头错误,这些错误在此 https://github.com/lattera/glibc/blob/master/bits/byteswap.h中不可用
如果有帮助,我正在使用 risc64-unknown-elf
解决方案
推荐阅读
- sql - SQL - 计数功能无法正常工作
- postgresql - 在这个后来的连接案例中,它是一个函数还是一个表?
- javascript - 无法通过 id 复制和重命名元素
- c++ - 本地编译的 C++ 代码循环不正确
- swift - 在 Swift 5 中,如何在 UIAlert 中连续执行动作?
- gem5 - 为什么在 gem5 中添加 DPRINTF(XXX 调试标志失败,并出现“错误:'XXX' 未在此范围内声明”?
- javascript - 如何通过本机反应传递子屏幕的参数?
- python - 制作一个每 5 分钟截取一次屏幕截图并将其发布到特定频道的不和谐机器人。我是新人,不太确定下一步该做什么
- python - 是否可以在给定 2 个参数的 csv 中找到某物的名称?Python
- performance - okhttp3 中的 connectTimeout 会减慢响应时间