MurderUserDungeon icon indicating copy to clipboard operation
MurderUserDungeon copied to clipboard

windows build error

Open Choi-Jungwoo opened this issue 2 years ago • 0 comments

info: syncing channel updates for 'stable-x86_64-pc-windows-msvc' info: latest update on 2023-10-05, rust version 1.73.0 (cc66ad468 2023-10-03)

error[E0793]: reference to packed field is unaligned --> D:\ProgramData\Rust.cargo\registry\src\index.crates.io-6f17d22bba15001f\ntapi-0.3.7\src\ntexapi.rs:2783:52 | 2783 | *tick_count.QuadPart_mut() = read_volatile(&(*USER_SHARED_DATA).u.TickCountQuad); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use read_unaligned/write_unaligned (loads and stores via *p must be properly aligned even when using raw pointers)

error[E0793]: reference to packed field is unaligned --> D:\ProgramData\Rust.cargo\registry\src\index.crates.io-6f17d22bba15001f\ntapi-0.3.7\src\ntexapi.rs:2807:25 | 2807 | ((read_volatile(&(*USER_SHARED_DATA).u.TickCountQuad) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use read_unaligned/write_unaligned (loads and stores via *p must be properly aligned even when using raw pointers)

For more information about this error, try rustc --explain E0793. error: could not compile ntapi (lib) due to 2 previous errors warning: build failed, waiting for other jobs to finish...

Choi-Jungwoo avatar Nov 09 '23 04:11 Choi-Jungwoo