-
Notifications
You must be signed in to change notification settings - Fork 87
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
Data layout compile error. #169
Comments
Can you describe your build environment, such as OS version? I remember the error but don't remember how I fixed it. |
Hello,
Compiling scroll v0.11.0 Maybe this crash is related to the different data layout? |
Ps: the same error when build the kernel of RezOS: Compiling lock_api v0.4.7 error: could not compile |
It sounds like you're using an expected Rust toolchain. Did you install cargo with rustup? If so, can you share more about your build environment, such as rustc version? |
Hello Edit: |
@commitcompanion Hmm version look good 👍 Can you try it in a clean environment like in a docker container? |
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 target
x64-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 errorwarning: build failed, waiting for other jobs to finish...
error: could not compile
core
(lib) due to 1 previous errorerror: could not compile
compiler_builtins
(lib) due to 1 previous errormake[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!
The text was updated successfully, but these errors were encountered: