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

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

Open
JeShGrCa opened this issue May 1, 2024 · 1 comment
Open

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

JeShGrCa opened this issue May 1, 2024 · 1 comment

Comments

@JeShGrCa
Copy link

JeShGrCa commented May 1, 2024

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

@Ti64CLi
Copy link

Ti64CLi commented May 2, 2024

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

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

No branches or pull requests

2 participants