minoca / os

Minoca operating system
Other
2.71k stars 231 forks source link

Alignment build error on Debian #157

Closed yuppox closed 4 years ago

yuppox commented 4 years ago

Using Debian 10.3 x86_64 I'm using the latest version from github and the Linux (64-bit) toolchain (as provided from minocacorp.com).

os/include/minoca/kernel/x86.h:418:1: error: alignment 1 of ‘struct _SIGNAL_CONTEXT_X86’ is less than 64 [-Werror=packed-not-a]
 } PACKED SIGNAL_CONTEXT_X86, *PSIGNAL_CONTEXT_X86;
 ^
os/include/minoca/kernel/x86.h:417:17: error: ‘FpuContext’ offset 116 in ‘struct _SIGNAL_CONTEXT_X86’ isn’t aligned to 64 [-We]
     FPU_CONTEXT FpuContext;
evangreen commented 4 years ago

Thanks for reporting this. It looks like GCC added some new warnings. I added some fixes, can you sync to 460ae51663e02f607f0738521cc2488e0866e70c and see how that works for you?

evangreen commented 4 years ago

Closing this as Fixed, feel free to reopen if this is still an issue.