ndless-rs icon indicating copy to clipboard operation
ndless-rs copied to clipboard

cargo-ndless fails to build project with data-layout error

Open JeShGrCa opened this issue 1 year ago • 1 comments

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``

JeShGrCa avatar May 01 '24 16:05 JeShGrCa

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

Ti64CLi avatar May 02 '24 10:05 Ti64CLi