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

rust cross compile to riscv64gc #50

Open
H-Y-B opened this issue Apr 19, 2019 · 0 comments
Open

rust cross compile to riscv64gc #50

H-Y-B opened this issue Apr 19, 2019 · 0 comments

Comments

@H-Y-B
Copy link

H-Y-B commented Apr 19, 2019

I want help, please.
(0)This is my rustc:
rustc 1.34.0 (91856ed52 2019-04-10)

(1) I have installed riscv64gc-unknown-none-elf.
`hyb:~/Rust/riscv64$ rustup show
Default host: x86_64-unknown-linux-gnu

installed targets for active toolchain

armv7-unknown-linux-gnueabihf
riscv64gc-unknown-none-elf
x86_64-unknown-linux-gnu

active toolchain

stable-x86_64-unknown-linux-gnu (default)
rustc 1.34.0 (91856ed52 2019-04-10)
`
(2) This is my ~/.cargo/config

[target.riscv64gc-unknown-none-elf] linker="riscv64-unknown-elf-gcc"
(3) Then, i run this command
cargo build --target=riscv64gc-unknown-none-elf

(4)But it shows this:
Compiling riscv64 v0.1.0 (/home/hyb/Rust/riscv64) error[E0463]: can't find crate for std| = note: theriscv64gc-unknown-none-elf` target may not be installed

error: aborting due to previous error

For more information about this error, try rustc --explain E0463.
error: Could not compile riscv64.

To learn more, run the command again with --verbose.
`
I want to know why? linker or std or rustc version?

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