Skip to content

error: Could not compile compiler_builtins #18

@Chr1s-T

Description

@Chr1s-T

你们好,我按照文档中记录的步骤,使用你们提供的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,并给我一点帮助,谢谢!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions