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

Match abi and march settings for riscv on linux #583

Merged
merged 2 commits into from
Feb 17, 2021

Conversation

kraj
Copy link
Contributor

@kraj kraj commented Feb 17, 2021

linux distros have agreed on using lp64d on 64bit and
ilp32d on 32bit for ABI, we also need to match the march
values which can support these ABIs and therefore use rv64gc
and rv32gc for march

Fixes errors when compiling libstd-rs e.g.

warning: Assembler messages:
warning: Error: -march=rv64: first ISA extension must be e', i' or `g'
warning: cc1plus: error: '-march=rv64': first ISA subset must be 'e', 'i' or 'g'

kraj added 2 commits February 16, 2021 21:16
linux distros have agreed on using lp64d on 64bit and
ilp32d on 32bit for ABI, we also need to match the march
values which can support these ABIs and therefore use rv64gc
and rv32gc for march

Fixes errors when compiling libstd-rs e.g.

warning: Assembler messages:
warning: Error: -march=rv64: first ISA extension must be `e', `i' or `g'
warning: cc1plus: error: '-march=rv64': first ISA subset must be 'e', 'i' or 'g'
Signed-off-by: Khem Raj <raj.khem@gmail.com>
@alexcrichton alexcrichton merged commit bd9c671 into rust-lang:master Feb 17, 2021
@alexcrichton
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants