Skip to content

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

@sm13

Description

@sm13

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions