lua-llthreads icon indicating copy to clipboard operation
lua-llthreads copied to clipboard

Build failing on Win10, LuaJIT, MinGW

Open bbblitz opened this issue 9 years ago • 0 comments

Installing through luarocks gives this error:

C:\Users\Alex\Desktop>luarocks install lua-llthreads
Installing https://luarocks.org/lua-llthreads-1.2-1.src.rock...
Using https://luarocks.org/lua-llthreads-1.2-1.src.rock... switching to 'build' mode
mingw32-gcc -O2 -c -o src/pre_generated-llthreads.nobj.o -IC:/My/LuaJIT/Install/Directory// src/pre_generated-llthreads.nobj.c
src/pre_generated-llthreads.nobj.c: In function 'Lua_LLThread__start__meth':
src/pre_generated-llthreads.nobj.c:1136:3: error: unknown type name 'bool'
   bool start_detached_idx2 = lua_toboolean(L,2);
   ^
src/pre_generated-llthreads.nobj.c:1137:3: error: unknown type name 'bool'
   bool res_idx1 = 0;
   ^
src/pre_generated-llthreads.nobj.c:1152:13: error: 'true' undeclared (first use in this function)
  res_idx1 = true;
             ^
src/pre_generated-llthreads.nobj.c:1152:13: note: each undeclared identifier is reported only once for each function it appears in
src/pre_generated-llthreads.nobj.c: In function 'Lua_LLThread__join__meth':
src/pre_generated-llthreads.nobj.c:1161:3: error: unknown type name 'bool'
   bool res_idx1 = 0;
   ^
src/pre_generated-llthreads.nobj.c:1202:14: error: 'false' undeclared (first use in this function)
   res_idx1 = false;
              ^

Error: Build error: Failed compiling object src/pre_generated-llthreads.nobj.o

Installing manually with luarocks install https://github.com/Neopallium/lua-llthreads/raw/master/rockspecs/lua-llthreads-scm-0.rockspec works as expected. Update please!

bbblitz avatar Jun 28 '16 02:06 bbblitz