error: size of array element is not a multiple of its alignment
Problem: This problem occurs when compiling the latest master branch of Xonotic on GCC 11.1.0 on Archlinux. The problem is: ``` ../../../dpsoftrast.c:239:22: error: size of array element is not a multiple of its alignment 239 | typedef ALIGN(struct DPSOFTRAST_State_Thread_s | ^~~~~~~~~~~~~~~~~~~~~~~~~ ``` Looks like modifying line 45, `#define ALIGN(var) var __attribute__((__aligned__(16)))` and change 16 to 8 fixes this issue, but this can be dangerous. Also, this problem doesn't occur on GCC 10, Clang 12.0.1. For now, game works fine, alignment set to 8.
issue