Error[E0793] in trying "cargo run"
fkoenigde opened this issue · 0 comments
I followed the instructions installing OpenSSL
. Placed the sqlite.3.def
and sqlite.dll
in the folder SQLite
in the cloned dispository (didn't find any instructions googeling unfortunately, I assume this might be a problem later on). I installed the C++ Libraries
and Rust
. I opened CMD as administrator (just in case) and got the following error message trying to execute cargo run
:
error[E0793]: reference to packed field is unaligned
--> C:\Users\Prename Surname\.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
--> C:\Users\Prename Surname\.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)
Compiling num-traits v0.2.14
Compiling cookie v0.16.0
Compiling regex-syntax v0.6.25
Compiling slab v0.4.5
Compiling ryu v1.0.9
Compiling futures-io v0.3.21
Compiling percent-encoding v2.1.0
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...
Unfortunately my coding ability in Rust is non-existent. I tested: 1) this error occurs in the same way on my NTFS volume and on my FAT32 volume. 2) the error occurs in a admin-version of CMD as well as in normal CMD.
Any ideas on how to fix this?, and someone can point me on where to place/what to do with sqlite.3.def
and sqlite.dll
?