jmckaskill / luaffi

Standalone FFI library for calling C functions from lua. Compatible with the luajit FFI interface.
469 stars 84 forks source link

Linux 32 bit make error #51

Open stuta opened 11 years ago

stuta commented 11 years ago

In Linux Mint 14 Mate 32 bit I get an error:

make posix lua dynasm/dynasm.lua -LN -o call_x86.h call_x86.dasc lua dynasm/dynasm.lua -D X64 -LN -o call_x64.h call_x86.dasc lua dynasm/dynasm.lua -D X64 -D X64WIN -LN -o call_x64win.h call_x86.dasc cc -fPIC -g -Wall -Werror pkg-config --cflags lua5.1 2>/dev/null || pkg-config --cflags lua -fvisibility=hidden -Wno-unused-function --std=gnu99 -o ffi.o -c ffi.c ffi.c: In function ‘check_pointer’: ffi.c:469:20: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] cc1: all warnings being treated as errors make: *\ [ffi.o] Error 1

jmckaskill commented 11 years ago

What compiler are you using?

Its complaining about a int64_t -> void* explicit conversion which is a bit odd.