wayst icon indicating copy to clipboard operation
wayst copied to clipboard

Fails to build on armv7 FreeBSD

Open clausecker opened this issue 2 months ago • 0 comments

Bulding wayst on armv7 FreeBSD, the build fails with the following error:

cc -c src/html.c -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -std=c18 -MD -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Werror=implicit-function-declaration -I/usr/local/include/freetype2/ -I/usr/local/include -o build/html.o
In file included from src/html.c:14:
src/vt.h:278:1: error: requested alignment is less than minimum alignment of 8 for type 'VtCommand'
  278 | DEF_RC_PTR(VtCommand, VtCommand_destroy);
      | ^
src/rcptr.h:24:9: note: expanded from macro 'DEF_RC_PTR'
   24 |         alignas(alignof(void*)) t payload;                                                         \
      |         ^
/usr/include/stdalign.h:34:19: note: expanded from macro 'alignas'
   34 | #define alignas                 _Alignas
      |                                 ^

Additionally, there is a warning:

src/main.c:1541:69: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
 1541 |             snprintf(tmp[ti], sizeof(tmp[ti]), "--x-window-id=%ld", window_id);
      |                                                               ~~~   ^~~~~~~~~
      |                                                               %lld

Please check and fix if possible.

clausecker avatar Nov 07 '25 17:11 clausecker