ndless-rs
ndless-rs copied to clipboard
cargo-ndless fails to build project with data-layout error
As the title says, cargo-ndless fails to build any code. It fails with the following error when compiling core:
error: data-layout for target armv5te-nspire-eabi-6321615079412794500, e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64, differs from LLVM target's armv5te-none-eabidefault layout,e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64``
You could try using a custom target JSON file when executing cargo ndless build, where the layout would be the one given for armv5te-none-eabi, and the rest would be the same as given for armv5te-nspire-eabi. Seems to work for me, don't know if there is more to this fix