Hi! This may mainly be a question for @bjorn3 if they're willing. I'm trying to build rustc_codegen_cranelift on ARM (my M1 Mac, so aarch64-apple-darwin
) and running into this error during ./y.rs build
:
error: error writing object file: unimplemented relocation Relocation { offset: 32, size: 32, kind: Relative, encoding: Generic, symbol: SymbolId(32), addend: -4 }
I recall getting similar errors in the past (in a different Cranelift-related effort) that I ended up blaming on missing support in the object
crate for some PIC feature or other on aarch64. Do you know if I'm doing something obviously wrong?
ARM macOS is currently not supported unfortunately. There are a couple of missing features.
See https://github.com/bjorn3/rustc_codegen_cranelift/issues/1248
I thought relocations were already implemented though, but I guess something is still missing.
cg_clif does work on ARM Linux though. In fact I do most of the development on it nowadays. CI is still exclusively x86_64.
That would do it! Thank you for clarifying!!
Last updated: Nov 22 2024 at 16:03 UTC