Skip to content

编译赛题样例错误 #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
aSmallAppl opened this issue May 1, 2025 · 2 comments
Open

编译赛题样例错误 #5

aSmallAppl opened this issue May 1, 2025 · 2 comments

Comments

@aSmallAppl
Copy link

我按照qemu-edu/tutorials/QEMURISCV64-环境配置搭建.md 的说明来搭建环境。由于没有toolchains文件夹,我采用 qemu-edu/rt-thread/bsp/qemu-virt64-riscv/README_cn.md 中说明的

wget https://github.com/RT-Thread/toolchains-ci/releases/download/v1.7/riscv64-linux-musleabi_for_x86_64-pc-linux-gnu_latest.tar.bz2

来获取toolchains。
我在编译内核时没有发生错误,但是我在编译赛题时出现了以下错误:
In file included from /opt/riscv64gc-linux-musleabi_for_x86_64-pc-linux-gnu/riscv64-unknown-linux-musl/include/sys/vt.h:1,
from loginutils/vlock.c:41:
/opt/riscv64gc-linux-musleabi_for_x86_64-pc-linux-gnu/riscv64-unknown-linux-musl/include/bits/vt.h:1:10: fatal error: linux/vt.h: No such file or directory
1 | #include <linux/vt.h>
| ^~~~~~~~~~~~
compilation terminated.
请问这个错误是怎么出现的?我该如何解决?

@hydevcode
Copy link
Contributor

hydevcode commented May 23, 2025

https://github.com/RT-Thread/qemu-edu/pull/3/files
工具链可以用这个试试

这个错误应该是工具链里的include目录少了这个头文件,去别的工具链复制一个新的过来就好了

@Rbb666
Copy link
Member

Rbb666 commented May 23, 2025

https://github.com/RT-Thread/qemu-edu/pull/3/files 工具链可以用这个试试

这个错误应该是工具链里的linux目录少了这个头文件,去别的工具链复制一个新的过来就好了

@BernardXiong 熊大,这个pr你看下是否还有问题?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants