Skip to content
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

使用cargo qemu进行build时报错 #11

Closed
leo-frank opened this issue Dec 25, 2021 · 2 comments
Closed

使用cargo qemu进行build时报错 #11

leo-frank opened this issue Dec 25, 2021 · 2 comments

Comments

@leo-frank
Copy link

我在使用cargo qemu进行编译,显示了如下错误。
image
因此,我认为是rustsbi v0.2.0-alpha.8导致的编译错误。
这是我使用的toolchain 的情况:
image
奇怪的是,我在rustsbi的仓库下(https://github.com/rustsbi/rustsbi/)
对rustsbi的最新版本0.2.0-alpha.9进行编译不会报错。
image
并且编译rustsbi使用的toolchain和编译rustsbi-qemu时使用的toolchain相同:
image

看上去问题 的根源应该是最新版本的toolchain不太适配rustsbi v0.2.0-alpha.8导致的编译错误。

@luojia65
Copy link
Member

核心问题在最近的1.59.0 rust把asm宏稳定了,移动了它的位置。目前的rustsbi还在预览版,预计ptr_metadata的事情解决后,rustsbi就可以在stable rust下编译了(届时发布0.2.0正式版)

@leo-frank
Copy link
Author

感谢!

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

2 participants