rv6
rv6 copied to clipboard
rustc 1.56.0-nightly 버전으로 업그레이드 후 ARM 버전 빌드 문제
rustc 버전을 1.56.0-nightly (30a0a9b69 2021-08-17)
로 업그레이드 한 후 잘 동작하던 build target specification file(kernel-rs/aarch64-unknown-none.json
)이 build 과정에서 에러를 발생시킵니다.
cargo build --manifest-path kernel-rs/Cargo.toml --target kernel-rs/aarch64-unknown-none.json --features 'gicv2'
로 실행하면 다음과 같은 에러가 발생합니다. --target
옵션을 json 파일이 아니라 target name (e.g., aarch64-unknown-none)으로 바꿔서 실행하면 정상적으로 실행됩니다.
error: failed to run `rustc` to learn about target-specific information
Caused by:
process didn't exit successfully: `rustc - --crate-name ___ --print=file-names --target /kaist-cp-home/sunghwan.shim/rv6-refactoring/kernel-rs/aarch64-unknown-none.json --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=cfg` (exit status: 1)
--- stderr
error: Error loading target specification: may not set is_builtin for targets not built-in. Run `rustc --print target-list` for a list of built-in targets
다른 ARM target들에 대해서도 실험을 해보았지만 제대로 실행되지 않았습니다.