-
Notifications
You must be signed in to change notification settings - Fork 32
Description
你们好,我按照文档中记录的步骤,使用你们提供的docker环境,想要编译一个x86的最小内核,其中我的x86.json文件内容如下:
{
"llvm-target": "x86_64-unknown-none",
"data-layout": "e-m:e-i64:64-f80:128-n8:16:32:64-S128",
"arch": "x86_64",
"target-endian": "little",
"target-pointer-width": "64",
"target-c-int-width": "32",
"os": "none",
"executables": true,
"linker-flavor": "ld.lld",
"linker": "rust-lld",
"panic-strategy": "abort",
"disable-redzone": true,
"features": "-mmx,-sse,+soft-float"
}
src/main.rs中的内容与你们文档中的内容一样。
rust版本用的文档中的nightly-2019-04-08:

xbuild版本为docker镜像中的默认版本0.5.5
在执行cargo xbuild --target x86.json之后,出现如下报错:


可见报错分为两部分:第一是error[E0660]: malformed inline assembly, 第二是error[E0599]: no associated item named MAXfound for typeusize in the current scope,最终导致error: Could not compile compiler_builtins`。
请问你们有好的解决办法吗?希望你们能看到我的issue,并给我一点帮助,谢谢!