jmckaskill / luaffi

Standalone FFI library for calling C functions from lua. Compatible with the luajit FFI interface.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when installing using make file

ChildishGiant opened this issue · comments

commented
if [ `uname` = "Darwin" ]; then make macosx; else make posix; fi
make[1]: Entering directory '/mnt/hdd/code/games/playdate/hexagain/luaffi'
cc -fPIC -g -Wall -Werror `pkg-config --cflags lua5.2 2>/dev/null || pkg-config --cflags lua` -fvisibility=hidden -Wno-unused-function --std=gnu99 -o ffi.o -c ffi.c
cc -fPIC -g -Wall -Werror `pkg-config --cflags lua5.2 2>/dev/null || pkg-config --cflags lua` -fvisibility=hidden -Wno-unused-function --std=gnu99 -o ctype.o -c ctype.c
cc -fPIC -g -Wall -Werror `pkg-config --cflags lua5.2 2>/dev/null || pkg-config --cflags lua` -fvisibility=hidden -Wno-unused-function --std=gnu99 -o parser.o -c parser.c
cc -fPIC -g -Wall -Werror `pkg-config --cflags lua5.2 2>/dev/null || pkg-config --cflags lua` -fvisibility=hidden -Wno-unused-function --std=gnu99 -o call.o -c call.c
In file included from call.c:38:
dynasm/dasm_x86.h: In function ‘dasm_put’:
dynasm/dasm_x86.h:207:2: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
  207 |  if (*p++ == 1 && *p == DASM_DISP) mrm = n; continue;
      |  ^~
dynasm/dasm_x86.h:207:45: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  207 |  if (*p++ == 1 && *p == DASM_DISP) mrm = n; continue;
      |                                             ^~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:41: call.o] Error 1
make[1]: Leaving directory '/mnt/hdd/code/games/playdate/hexagain/luaffi'
make: *** [Makefile:15: all] Error 2