LLVM ERROR: Not supported instr" on 'mips64-poky-linux-gnun32-gnu' target #100687
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
O-MIPS
Target: MIPS processors
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I am getting this error when compiling the rust application for mips n32 arch abi on Yocto project.
What could be the reason for this error and how to fix it? I suspect the data layout causing this issue. Below is the data layout used.
How do I derive a correct data layout for a specific arch? (Like the one given in rust-lang/compiler-builtins#400 (comment))
I tried changing the DATA_LAYOUT by referring https://llvm.org/docs/LangRef.html#data-layout & https://irix7.com/techpubs/007-2816-004.pdf docs but the error is still there.
My build is for mips64-n32 abi. I could not see this abi on the rust supported target list in https://doc.rust-lang.org/nightly/rustc/platform-support.html. Does this error because of n32 is a not supported target arch of rust?
The text was updated successfully, but these errors were encountered: