You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the latest luajit-rocks, torch builds fail with
gcc -O2 -fPIC -I/opt/torch/install/include -c src/lfs.c -o src/lfs.o
src/lfs.c:84:0: warning: "luaL_newlib" redefined
# define luaL_newlib(L,l) (lua_newtable(L), luaL_register(L,NULL,l))
^
In file included from src/lfs.c:67:0:
/opt/torch/install/include/lauxlib.h:125:0: note: this is the location of the previous definition
#define luaL_newlib(L, l) (luaL_newlibtable(L, l), luaL_setfuncs(L, l, 0))
^
gcc -shared -o lfs.so -L/opt/torch/install/lib src/lfs.o
Updating manifest for /opt/torch/install/lib/luarocks/rocks
No existing manifest. Attempting to rebuild...
luafilesystem 1.6.3-1 is now built and installed in /opt/torch/install/ (license: MIT/X11)
Updating manifest for /opt/torch/install/lib/luarocks/rocks
penlight scm-1 is now built and installed in /opt/torch/install/ (license: MIT/X11)
gcc -O2 -fPIC -I/opt/torch/install/include -c lua_cjson.c -o lua_cjson.o
lua_cjson.c:1312:13: error: static declaration of 'luaL_setfuncs' follows non-static declaration
static void luaL_setfuncs (lua_State *l, const luaL_Reg *reg, int nup)
^
In file included from lua_cjson.c:44:0:
/opt/torch/install/include/lauxlib.h:88:18: note: previous declaration of 'luaL_setfuncs' was here
LUALIB_API void (luaL_setfuncs) (lua_State *L, const luaL_Reg *l, int nup);
^
Error: Build error: Failed compiling object lua_cjson.o
Any updates on this? Can you please recommend some workaround for it? I mean workaround for building torch with luajit-2.1.0-beta3? Or just stay away from beta3 for now?
With the latest luajit-rocks, torch builds fail with
Looks like it is caused by the following line that was added in one of the latest commits:
https://github.com/torch/luajit-rocks/blob/master/luajit-2.1/src/lauxlib.h#L125
The text was updated successfully, but these errors were encountered: