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

rustc 1.56.0-nightly 버전으로 업그레이드 후 ARM 버전 빌드 문제 #573

Open
Gabriel4256 opened this issue Aug 23, 2021 · 0 comments
Assignees

Comments

@Gabriel4256
Copy link
Collaborator

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들에 대해서도 실험을 해보았지만 제대로 실행되지 않았습니다.

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

1 participant