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

ch11-fledgeos-0 not building. Fix provided. error: data-layout for target differs fro LLVM target's #118

Open
sm13 opened this issue Sep 10, 2024 · 0 comments

Comments

@sm13
Copy link

sm13 commented Sep 10, 2024

If you encounter the following error code:

error: data-layout for target `fledge-7879698637846445954`, `e-m:e-i64:64-f80:128-n8:16:32:64-S128`, differs from LLVM target's `x86_64-unknown-none` default layout, `e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128`

Perhaps the bootloader definition is out of that w.r.t. Rust. Edit the fledge.json file to modify the data-layout entry with the one provided in the error message. In my case:

"data-layout": "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128",

This along with the other fix provided in #88 should be enough to run the code in qemu.

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

1 participant