Skip to content

Data layout compile error. #169

@ghost

Description

Hello!
There was an error compiling kerla. Here is the debug meassage
By build with make run:
Compiling rustc-std-workspace-core v1.99.0 (/home/dev/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core) error: data-layout for targetx64-14301396534749325905, e-m:e-i64:64-f80:128-n8:16:32:64-S128, differs from LLVM target's x86_64-unknown-none-elfdefault layout,e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128`

error: could not compile rustc-std-workspace-core (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile core (lib) due to 1 previous error
error: could not compile compiler_builtins (lib) due to 1 previous error
make[1]: *** [Makefile:96: build-crate] Fehler 101
make[1]: Verzeichnis „/home/dev/workbench/kerla“ wird verlassen
make: *** [Makefile:80: build] Fehler 2
`
This error exists on many rust kernels.
https://duckduckgo.com/?q=error%3A+data-layout+for+target+%60x64-14301396534749325905%60%2C+%60e-m%3Ae-i64%3A64-f80%3A128-n8%3A16%3A32%3A64-S128%60%2C+differs+from+LLVM+target%27s+%60x86_64-unknown-none-elf%60+default+layout%2C+%60e-m%3Ae-p270%3A32%3A32-p271%3A32%3A32-p272%3A64%3A64-i64%3A64-i128%3A128-f80%3A128-n8%3A16%3A32%3A64-S128%60+&t=newext&atb=v448-6__&ia=web
There not seem to be an easy fix for that.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions