[SimGrid-user] Error in building Simgrid with Lua support!!

Tania Malik tania.malik at ucdconnect.ie
Mon Feb 1 12:18:56 CET 2016


Hi

As you suggested now I am trying to play with Lua to create heterogeneous
platform. So when I am trying to install Simgrid using Lua support , during
make I got this error.


/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:142:1: error: unknown
type name ‘luaL_reg’
 static const luaL_reg comm_functions[] = {
 ^
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:143:3: warning: braces
around scalar initializer [enabled by default]
   {"wait", l_comm_wait},
   ^
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:143:3: warning: (near
initialization for ‘comm_functions[0]’) [enabled by default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:143:3: warning:
initialization makes integer from pointer without a cast [enabled by
default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:143:3: warning: (near
initialization for ‘comm_functions[0]’) [enabled by default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:143:3: error:
initializer element is not computable at load time
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:143:3: error: (near
initialization for ‘comm_functions[0]’)
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:143:3: warning: excess
elements in scalar initializer [enabled by default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:143:3: warning: (near
initialization for ‘comm_functions[0]’) [enabled by default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:144:3: warning: braces
around scalar initializer [enabled by default]
   {"test", l_comm_test},
   ^
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:144:3: warning: (near
initialization for ‘comm_functions[1]’) [enabled by default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:144:3: warning:
initialization makes integer from pointer without a cast [enabled by
default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:144:3: warning: (near
initialization for ‘comm_functions[1]’) [enabled by default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:144:3: error:
initializer element is not computable at load time
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:144:3: error: (near
initialization for ‘comm_functions[1]’)
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:144:3: warning: excess
elements in scalar initializer [enabled by default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:144:3: warning: (near
initialization for ‘comm_functions[1]’) [enabled by default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:146:3: warning: braces
around scalar initializer [enabled by default]
   {NULL, NULL}
   ^
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:146:3: warning: (near
initialization for ‘comm_functions[2]’) [enabled by default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:146:3: warning:
initialization makes integer from pointer without a cast [enabled by
default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:146:3: warning: (near
initialization for ‘comm_functions[2]’) [enabled by default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:146:3: warning: excess
elements in scalar initializer [enabled by default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:146:3: warning: (near
initialization for ‘comm_functions[2]’) [enabled by default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:167:1: error: unknown
type name ‘luaL_reg’
 static const luaL_reg comm_meta[] = {
 ^
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:168:3: warning: braces
around scalar initializer [enabled by default]
   {"__gc", l_comm_gc},
   ^
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:168:3: warning: (near
initialization for ‘comm_meta[0]’) [enabled by default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:168:3: warning:
initialization makes integer from pointer without a cast [enabled by
default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:168:3: warning: (near
initialization for ‘comm_meta[0]’) [enabled by default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:168:3: error:
initializer element is not computable at load time
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:168:3: error: (near
initialization for ‘comm_meta[0]’)
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:168:3: warning: excess
elements in scalar initializer [enabled by default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:168:3: warning: (near
initialization for ‘comm_meta[0]’) [enabled by default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:169:3: warning: braces
around scalar initializer [enabled by default]
   {NULL, NULL}
   ^
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:169:3: warning: (near
initialization for ‘comm_meta[1]’) [enabled by default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:169:3: warning:
initialization makes integer from pointer without a cast [enabled by
default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:169:3: warning: (near
initialization for ‘comm_meta[1]’) [enabled by default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:169:3: warning: excess
elements in scalar initializer [enabled by default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:169:3: warning: (near
initialization for ‘comm_meta[1]’) [enabled by default]
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c: In function
‘sglua_register_comm_functions’:
/home/tania/SimGrid-3.12/src/bindings/lua/lua_comm.c:182:3: warning:
implicit declaration of function ‘luaL_openlib’
[-Wimplicit-function-declaration]
   luaL_openlib(L, COMM_MODULE_NAME, comm_functions, 0);
   ^
make[2]: *** [CMakeFiles/simgrid.dir/src/bindings/lua/lua_comm.c.o] Error 1
make[1]: *** [CMakeFiles/simgrid.dir/all] Error 2
make: *** [all] Error 2

Can you please help me to fix it?
Plus the latest 3.12 version source code have no lua examples in
example/platform folder. I found lua examples in older released. Its good
to add them in latest release too.

Regards:
----------------
Tania
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/simgrid-user/attachments/20160201/4e257cbf/attachment.html>


More information about the Simgrid-user mailing list