Skip to content

[bug] Command "make vf2" failed #132

@PassingThroughStarDust

Description

@PassingThroughStarDust

"make vf2" 失败

在 Starry 目录下直接通过 “make vf2” 命令编译 visionfive2 平台的 starry 二进制会产生以下报错:

$ make vf2
...
cp: cannot stat '/path/to/Starry/target/riscv64gc-unknown-none-elf/release/starryos': No such file or directory
make[2]: *** [build.mk:51: _cargo_build] Error 1
make[2]: Leaving directory '/path/to/Starry/make'
make[1]: *** [Makefile:45: build] Error 2
make[1]: Leaving directory '/path/to/Starry'
make: *** [Makefile:58: vf2] Error 2

经过检查,发现将 Starry/Cargo.toml 中

[[bin]]
name = "starryos"
path = "src/main.rs"
required-features = ["qemu"]

这一部分的 “required-features = ["qemu"]” 删除,可以保证在 qemu-system-riscv64 与 visionfive2 两种平台上编译通过,且 starry 可以正常运行。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions