You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or at least it seems like it. I found at least two comments on this issue tracker coming across the same (or at least very similar) error (1, 2). I got this while investigating why SDL_CreateThread was segfaulting, finally realizing it was due to the default bindings (turns out, the function has two more arguments on windows), and then attempting to enable the use-bindgen feature.
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
--> C:\Users\jens\Desktop\sdl2-no-std-base\target\debug\build\sdl2-sys-72b695ace8247066\out/sdl_bindings.rs:71129:1
|
71129 | pub struct _IMAGE_TLS_DIRECTORY64 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: `_IMAGE_TLS_DIRECTORY64__bindgen_ty_1__bindgen_ty_1` has a `#[repr(align)]` attribute
--> C:\Users\jens\Desktop\sdl2-no-std-base\target\debug\build\sdl2-sys-72b695ace8247066\out/sdl_bindings.rs:71147:1
|
71147 | pub struct _IMAGE_TLS_DIRECTORY64__bindgen_ty_1__bindgen_ty_1 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `_IMAGE_TLS_DIRECTORY64` contains a field of type `_IMAGE_TLS_DIRECTORY64__bindgen_ty_1`
--> C:\Users\jens\Desktop\sdl2-no-std-base\target\debug\build\sdl2-sys-72b695ace8247066\out/sdl_bindings.rs:71135:9
|
71135 | pub __bindgen_anon_1: _IMAGE_TLS_DIRECTORY64__bindgen_ty_1,
| ^^^^^^^^^^^^^^^^
note: ...which contains a field of type `_IMAGE_TLS_DIRECTORY64__bindgen_ty_1__bindgen_ty_1`
--> C:\Users\jens\Desktop\sdl2-no-std-base\target\debug\build\sdl2-sys-72b695ace8247066\out/sdl_bindings.rs:71141:9
|
71141 | pub __bindgen_anon_1: _IMAGE_TLS_DIRECTORY64__bindgen_ty_1__bindgen_ty_1,
| ^^^^^^^^^^^^^^^^
For more information about this error, try `rustc --explain E0588`.
I'm clueless about bindgen, so I don't know if anything can be done on this crate's side, but a cursory search revealed that this might be caused by this issue in bindgen? Can anyone else reproduce this? Could sdl2-sys work around this somehow?
The text was updated successfully, but these errors were encountered:
Or at least it seems like it. I found at least two comments on this issue tracker coming across the same (or at least very similar) error (1, 2). I got this while investigating why SDL_CreateThread was segfaulting, finally realizing it was due to the default bindings (turns out, the function has two more arguments on windows), and then attempting to enable the
use-bindgen
feature.I'm clueless about bindgen, so I don't know if anything can be done on this crate's side, but a cursory search revealed that this might be caused by this issue in bindgen? Can anyone else reproduce this? Could sdl2-sys work around this somehow?
The text was updated successfully, but these errors were encountered: