Error: "offset is not a multiple of ??"
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Code
Sadly none. There is no line a file that the error outputs
Current output
error: offset is not a multiple of 16
error: could not compile `hexium_os` (lib) due to 1 previous error
Desired output
No error
Rust Version
PS D:\dev\Projekter\hexium_os\kernel> rustc --version --verbose
rustc 1.87.0-nightly (85abb2763 2025-02-25)
binary: rustc
commit-hash: 85abb276361c424d64743c0965242dd0e7b866d1
commit-date: 2025-02-25
host: x86_64-pc-windows-msvc
release: 1.87.0-nightly
LLVM version: 20.1.0
Anything else?
It is when cloning the flanterm crate into "/kernel/deps/flanterm" on this repository and then adding it as a crate using its path in Cargo.toml. I also removed a GCC inliner (In the C code), and fixed some issues with the framebuffer not being raw here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure by adding the cloned flanterm crate at /kernel/deps/flanterm and referencing it from Cargo.toml with the reported rustc nightly version. Inspect the changes in flanterm/src/lib.rs and the removed C inliner, then determine why compilation reports the offset alignment error. Done means identifying a reproducible cause and confirming that the crate compiles without the error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, rust
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100