Build of lua51 with android toolchain

The build took 00h 00m 51s and was NOT successful.

The program in this build is written in the following languages, according to sloccount:

SLOCLanguage
12,709 ansic
244 makefile
12,953 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

List of Errors

Log

To avoid scrolling, you may jump to the last line of the invocation of makepkg that was used to build this package.

Removed vanilla repositories from pacman.conf and added:
# [tuscan]
# Server = file:///var/cache/pacman/pkg/

CMD: pacman -Syy --noconfirm
# :: Synchronizing package databases...
# downloading tuscan.db...

Copied permanent toolchain into container-local sysroot
# /toolchain_root/arm-linux-androideabi --> /sysroot/arm-linux-androideabi
# /toolchain_root/COPYING3.LIB --> /sysroot/COPYING3.LIB
# /toolchain_root/sysroot --> /sysroot/sysroot
# /toolchain_root/COPYING.RUNTIME --> /sysroot/COPYING.RUNTIME
# /toolchain_root/lib --> /sysroot/lib
# /toolchain_root/SOURCES --> /sysroot/SOURCES
# /toolchain_root/lib64 --> /sysroot/lib64
# /toolchain_root/share --> /sysroot/share
# /toolchain_root/bin --> /sysroot/bin
# /toolchain_root/COPYING --> /sysroot/COPYING
# /toolchain_root/COPYING3 --> /sysroot/COPYING3
# /toolchain_root/COPYING.LIB --> /sysroot/COPYING.LIB
# /toolchain_root/include --> /sysroot/include
# /toolchain_root/libexec --> /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/sysroot/libexec/gcc/arm-linux-androideabi/4.8:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=arm-linux-androideabi-gcc CXX=arm-linux-androideabi-g++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: lua51 5.1.5-5 (Tue Apr 4 22:03:04 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# cd src && make linux
# make[1]: Entering directory '/tmp/lua51/src/lua-5.1.5/src'
# make all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"
# make[2]: Entering directory '/tmp/lua51/src/lua-5.1.5/src'
# gcc -O2 -Wall -DLUA_USE_LINUX -c -o lapi.o lapi.c
# cc1: error: no include path in which to search for stdc-predef.h
# lapi.c:8:20: error: no include path in which to search for assert.h
# #include
# ^
# lapi.c:9:18: error: no include path in which to search for math.h
# #include
# ^
# lapi.c:10:20: error: no include path in which to search for stdarg.h
# #include
# ^
# lapi.c:11:20: error: no include path in which to search for string.h
# #include
# ^
# In file included from lapi.c:16:0:
# lua.h:12:20: error: no include path in which to search for stdarg.h
# #include
# ^
# lua.h:13:20: error: no include path in which to search for stddef.h
# #include
# ^
# In file included from lua.h:16:0,
# from lapi.c:16:
# luaconf.h:11:20: error: no include path in which to search for limits.h
# #include
# ^
# luaconf.h:12:20: error: no include path in which to search for stddef.h
# #include
# ^
# luaconf.h:532:18: error: no include path in which to search for math.h
# #include
# ^
# In file included from lapi.c:16:0:
# lua.h:58:61: error: unknown type name 'size_t'
# typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz);
# ^
# lua.h:60:57: error: unknown type name 'size_t'
# typedef int (*lua_Writer) (lua_State *L, const void* p, size_t sz, void* ud);
# ^
# lua.h:66:51: error: unknown type name 'size_t'
# typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize);
# ^
# lua.h:66:65: error: unknown type name 'size_t'
# typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize);
# ^
# lua.h:103:1: error: unknown type name 'ptrdiff_t'
# typedef LUA_INTEGER lua_Integer;
# ^
# lua.h:110:36: error: unknown type name 'lua_Alloc'
# LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud);
# ^
# lua.h:149:65: error: unknown type name 'size_t'
# LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len);
# ^
# lua.h:150:9: warning: type defaults to 'int' in declaration of 'size_t' [-Wimplicit-int]
# LUA_API size_t (lua_objlen) (lua_State *L, int idx);
# ^
# lua.h:150:9: error: 'size_t' declared as function returning a function
# lua.h:150:1: warning: parameter names (without types) in function declaration [enabled by default]
# LUA_API size_t (lua_objlen) (lua_State *L, int idx);
# ^
# lua.h:163:63: error: expected declaration specifiers or '...' before 'size_t'
# LUA_API void (lua_pushlstring) (lua_State *L, const char *s, size_t l);
# ^
# lua.h:166:55: error: unknown type name 'va_list'
# va_list argp);
# ^
# lua.h:182:48: error: expected declaration specifiers or '...' before 'size_t'
# LUA_API void *(lua_newuserdata) (lua_State *L, size_t sz);
# ^
# lua.h:204:41: error: unknown type name 'lua_Reader'
# LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt,
# ^
# lua.h:207:39: error: unknown type name 'lua_Writer'
# LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data);
# ^
# lua.h:243:9: warning: type defaults to 'int' in declaration of 'lua_Alloc' [-Wimplicit-int]
# LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud);
# ^
# lua.h:243:9: error: 'lua_Alloc' declared as function returning a function
# lua.h:243:1: warning: parameter names (without types) in function declaration [enabled by default]
# LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud);
# ^
# lua.h:244:43: error: expected declaration specifiers or '...' before 'lua_Alloc'
# LUA_API void lua_setallocf (lua_State *L, lua_Alloc f, void *ud);
# ^
# In file included from lapi.h:11:0,
# from lapi.c:18:
# lobject.h:12:20: error: no include path in which to search for stdarg.h
# #include
# ^
# In file included from lobject.h:15:0,
# from lapi.h:11,
# from lapi.c:18:
# llimits.h:11:20: error: no include path in which to search for limits.h
# #include
# ^
# llimits.h:12:20: error: no include path in which to search for stddef.h
# #include
# ^
# In file included from lapi.h:11:0,
# from lapi.c:18:
# lobject.h:205:5: error: expected specifier-qualifier-list before 'size_t'
# size_t len;
# ^
# lobject.h:221:5: error: expected specifier-qualifier-list before 'size_t'
# size_t len;
# ^
# lobject.h:375:56: error: unknown type name 'va_list'
# va_list argp);
# ^
# lobject.h:377:61: error: expected declaration specifiers or '...' before 'size_t'
# LUAI_FUNC void luaO_chunkid (char *out, const char *source, size_t len);
# ^
# In file included from lzio.h:13:0,
# from lstate.h:14,
# from ldebug.h:11,
# from lapi.c:19:
# lmem.h:11:20: error: no include path in which to search for stddef.h
# #include
# ^
# lmem.h:41:59: error: expected declaration specifiers or '...' before 'size_t'
# LUAI_FUNC void *luaM_realloc_ (lua_State *L, void *block, size_t oldsize,
# ^
# lmem.h:42:59: error: expected declaration specifiers or '...' before 'size_t'
# size_t size);
# ^
# lmem.h:45:32: error: expected declaration specifiers or '...' before 'size_t'
# size_t size_elem, int limit,
# ^
# In file included from lstate.h:14:0,
# from ldebug.h:11,
# from lapi.c:19:
# lzio.h:26:3: error: expected specifier-qualifier-list before 'size_t'
# size_t n;
# ^
# lzio.h:46:62: error: expected declaration specifiers or '...' before 'size_t'
# LUAI_FUNC char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n);
# ^
# lzio.h:47:49: error: unknown type name 'lua_Reader'
# LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader,
# ^
# lzio.h:49:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'luaZ_read'
# LUAI_FUNC size_t luaZ_read (ZIO* z, void* b, size_t n); /* read next n bytes */
# ^
# lzio.h:57:3: error: expected specifier-qualifier-list before 'size_t'
# size_t n; /* bytes still unread */
# ^
# In file included from ldebug.h:11:0,
# from lapi.c:19:
# lstate.h:70:3: error: expected specifier-qualifier-list before 'lua_Alloc'
# lua_Alloc frealloc; /* function to reallocate memory */
# ^
# lstate.h:126:3: error: unknown type name 'ptrdiff_t'
# ptrdiff_t errfunc; /* current error handling function (stack index) */
# ^
# In file included from lapi.c:20:0:
# ldo.h:45:41: error: unknown type name 'ptrdiff_t'
# ptrdiff_t oldtop, ptrdiff_t ef);
# ^
# ldo.h:45:59: error: unknown type name 'ptrdiff_t'
# ptrdiff_t oldtop, ptrdiff_t ef);
# ^
# In file included from lapi.c:22:0:
# lgc.h:99:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'luaC_separateudata'
# LUAI_FUNC size_t luaC_separateudata (lua_State *L, int all);
# ^
# In file included from lapi.c:26:0:
# lstring.h:27:47: error: expected declaration specifiers or '...' before 'size_t'
# LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s, Table *e);
# ^
# lstring.h:28:65: error: expected declaration specifiers or '...' before 'size_t'
# LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l);
# ^
# In file included from lapi.c:29:0:
# lundump.h:20:56: error: unknown type name 'lua_Writer'
# LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip);
# ^
# In file included from ldebug.h:11:0,
# from lapi.c:19:
# lapi.c: In function 'index2adr':
# lstate.h:25:27: error: 'global_State' has no member named 'l_registry'
# #define registry(L) (&G(L)->l_registry)
# ^
# lapi.c:61:36: note: in expansion of macro 'registry'
# case LUA_REGISTRYINDEX: return registry(L);
# ^
# lapi.c: In function 'lua_atpanic':
# lapi.c:133:13: error: 'global_State' has no member named 'panic'
# old = G(L)->panic;
# ^
# lapi.c:134:7: error: 'global_State' has no member named 'panic'
# G(L)->panic = panicf;
# ^
# In file included from lapi.c:22:0:
# lapi.c: In function 'lua_newthread':
# lgc.h:82:11: error: 'global_State' has no member named 'totalbytes'
# if (G(L)->totalbytes >= G(L)->GCthreshold) \
# ^
# lapi.c:143:3: note: in expansion of macro 'luaC_checkGC'
# luaC_checkGC(L);
# ^
# lgc.h:82:31: error: 'global_State' has no member named 'GCthreshold'
# if (G(L)->totalbytes >= G(L)->GCthreshold) \
# ^
# lapi.c:143:3: note: in expansion of macro 'luaC_checkGC'
# luaC_checkGC(L);
# ^
# In file included from lapi.c:30:0:
# lapi.c: In function 'lua_isnumber':
# lvm.h:19:57: error: 'NULL' undeclared (first use in this function)
# (((o) = luaV_tonumber(o,n)) != NULL))
# ^
# lapi.c:263:10: note: in expansion of macro 'tonumber'
# return tonumber(o, &n);
# ^
# lvm.h:19:57: note: each undeclared identifier is reported only once for each function it appears in
# (((o) = luaV_tonumber(o,n)) != NULL))
# ^
# lapi.c:263:10: note: in expansion of macro 'tonumber'
# return tonumber(o, &n);
# ^
# lapi.c: In function 'lua_tonumber':
# lvm.h:19:57: error: 'NULL' undeclared (first use in this function)
# (((o) = luaV_tonumber(o,n)) != NULL))
# ^
# lapi.c:316:7: note: in expansion of macro 'tonumber'
# if (tonumber(o, &n))
# ^
# lapi.c: In function 'lua_tointeger':
# lvm.h:19:57: error: 'NULL' undeclared (first use in this function)
# (((o) = luaV_tonumber(o,n)) != NULL))
# ^
# lapi.c:326:7: note: in expansion of macro 'tonumber'
# if (tonumber(o, &n)) {
# ^
# lapi.c: At top level:
# lapi.c:343:59: error: expected declaration specifiers or '...' before 'size_t'
# LUA_API const char *lua_tolstring (lua_State *L, int idx, size_t *len) {
# ^
# lapi.c:361:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_objlen'
# LUA_API size_t lua_objlen (lua_State *L, int idx) {
# ^
# lapi.c: In function 'lua_tocfunction':
# lapi.c:381:30: error: 'NULL' undeclared (first use in this function)
# return (!iscfunction(o)) ? NULL : clvalue(o)->c.f;
# ^
# lapi.c: In function 'lua_touserdata':
# lapi.c:390:21: error: 'NULL' undeclared (first use in this function)
# default: return NULL;
# ^
# lapi.c: In function 'lua_tothread':
# lapi.c:397:29: error: 'NULL' undeclared (first use in this function)
# return (!ttisthread(o)) ? NULL : thvalue(o);
# ^
# lapi.c: In function 'lua_topointer':
# lapi.c:410:21: error: 'NULL' undeclared (first use in this function)
# default: return NULL;
# ^
# lapi.c: At top level:
# lapi.c:445:60: error: expected declaration specifiers or '...' before 'size_t'
# LUA_API void lua_pushlstring (lua_State *L, const char *s, size_t len) {
# ^
# lapi.c: In function 'lua_pushstring':
# lapi.c:455:12: error: 'NULL' undeclared (first use in this function)
# if (s == NULL)
# ^
# lapi.c:458:5: warning: implicit declaration of function 'lua_pushlstring' [-Wimplicit-function-declaration]
# lua_pushlstring(L, s, strlen(s));
# ^
# lapi.c:458:5: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# lapi.c:458:27: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# lua_pushlstring(L, s, strlen(s));
# ^
# lapi.c: At top level:
# lapi.c:463:39: error: unknown type name 'va_list'
# va_list argp) {
# ^
# lapi.c: In function 'lua_pushfstring':
# lapi.c:475:3: error: unknown type name 'va_list'
# va_list argp;
# ^
# In file included from lapi.c:22:0:
# lgc.h:82:11: error: 'global_State' has no member named 'totalbytes'
# if (G(L)->totalbytes >= G(L)->GCthreshold) \
# ^
# lapi.c:477:3: note: in expansion of macro 'luaC_checkGC'
# luaC_checkGC(L);
# ^
# lgc.h:82:31: error: 'global_State' has no member named 'GCthreshold'
# if (G(L)->totalbytes >= G(L)->GCthreshold) \
# ^
# lapi.c:477:3: note: in expansion of macro 'luaC_checkGC'
# luaC_checkGC(L);
# ^
# lapi.c:478:3: warning: implicit declaration of function 'va_start' [-Wimplicit-function-declaration]
# va_start(argp, fmt);
# ^
# lapi.c:479:3: warning: implicit declaration of function 'luaO_pushvfstring' [-Wimplicit-function-declaration]
# ret = luaO_pushvfstring(L, fmt, argp);
# ^
# lapi.c:479:7: warning: assignment makes pointer from integer without a cast [enabled by default]
# ret = luaO_pushvfstring(L, fmt, argp);
# ^
# lapi.c:480:3: warning: implicit declaration of function 'va_end' [-Wimplicit-function-declaration]
# va_end(argp);
# ^
# In file included from lapi.c:22:0:
# lapi.c: In function 'lua_pushcclosure':
# lgc.h:82:11: error: 'global_State' has no member named 'totalbytes'
# if (G(L)->totalbytes >= G(L)->GCthreshold) \
# ^
# lapi.c:489:3: note: in expansion of macro 'luaC_checkGC'
# luaC_checkGC(L);
# ^
# lgc.h:82:31: error: 'global_State' has no member named 'GCthreshold'
# if (G(L)->totalbytes >= G(L)->GCthreshold) \
# ^
# lapi.c:489:3: note: in expansion of macro 'luaC_checkGC'
# luaC_checkGC(L);
# ^
# lapi.c: In function 'lua_pushthread':
# lapi.c:524:15: error: 'global_State' has no member named 'mainthread'
# return (G(L)->mainthread == L);
# ^
# lapi.c: In function 'lua_getfield':
# lapi.c:550:3: warning: implicit declaration of function 'luaS_newlstr' [-Wimplicit-function-declaration]
# setsvalue(L, &key, luaS_new(L, k));
# ^
# In file included from lobject.h:15:0,
# from lapi.h:11,
# from lapi.c:18:
# lstring.h:20:44: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# #define luaS_new(L, s) (luaS_newlstr(L, s, strlen(s)))
# ^
# llimits.h:75:27: note: in definition of macro 'cast'
# #define cast(t, exp) ((t)(exp))
# ^
# lapi.c:550:3: note: in expansion of macro 'setsvalue'
# setsvalue(L, &key, luaS_new(L, k));
# ^
# lapi.c:550:22: note: in expansion of macro 'luaS_new'
# setsvalue(L, &key, luaS_new(L, k));
# ^
# In file included from lapi.c:22:0:
# lapi.c: In function 'lua_createtable':
# lgc.h:82:11: error: 'global_State' has no member named 'totalbytes'
# if (G(L)->totalbytes >= G(L)->GCthreshold) \
# ^
# lapi.c:580:3: note: in expansion of macro 'luaC_checkGC'
# luaC_checkGC(L);
# ^
# lgc.h:82:31: error: 'global_State' has no member named 'GCthreshold'
# if (G(L)->totalbytes >= G(L)->GCthreshold) \
# ^
# lapi.c:580:3: note: in expansion of macro 'luaC_checkGC'
# luaC_checkGC(L);
# ^
# lapi.c: In function 'lua_getmetatable':
# lapi.c:589:15: error: 'NULL' undeclared (first use in this function)
# Table *mt = NULL;
# ^
# lapi.c:601:16: error: 'global_State' has no member named 'mt'
# mt = G(L)->mt[ttype(obj)];
# ^
# In file included from lobject.h:15:0,
# from lapi.h:11,
# from lapi.c:18:
# lapi.c: In function 'lua_setfield':
# lstring.h:20:44: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# #define luaS_new(L, s) (luaS_newlstr(L, s, strlen(s)))
# ^
# llimits.h:75:27: note: in definition of macro 'cast'
# #define cast(t, exp) ((t)(exp))
# ^
# lapi.c:664:3: note: in expansion of macro 'setsvalue'
# setsvalue(L, &key, luaS_new(L, k));
# ^
# lapi.c:664:22: note: in expansion of macro 'luaS_new'
# setsvalue(L, &key, luaS_new(L, k));
# ^
# lapi.c: In function 'lua_setmetatable':
# lapi.c:705:10: error: 'NULL' undeclared (first use in this function)
# mt = NULL;
# ^
# lapi.c:724:11: error: 'global_State' has no member named 'mt'
# G(L)->mt[ttype(obj)] = mt;
# ^
# lapi.c: In function 'lua_pcall':
# lapi.c:808:3: error: unknown type name 'ptrdiff_t'
# ptrdiff_t func;
# ^
# lapi.c:821:3: warning: implicit declaration of function 'luaD_pcall' [-Wimplicit-function-declaration]
# status = luaD_pcall(L, f_call, &c, savestack(L, c.func), func);
# ^
# lapi.c: At top level:
# lapi.c:862:37: error: unknown type name 'lua_Reader'
# LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data,
# ^
# lapi.c:875:37: error: unknown type name 'lua_Writer'
# LUA_API int lua_dump (lua_State *L, lua_Writer writer, void *data) {
# ^
# lapi.c: In function 'lua_gc':
# lapi.c:906:8: error: 'global_State' has no member named 'GCthreshold'
# g->GCthreshold = MAX_LUMEM;
# ^
# lapi.c:910:8: error: 'global_State' has no member named 'GCthreshold'
# g->GCthreshold = g->totalbytes;
# ^
# lapi.c:910:25: error: 'global_State' has no member named 'totalbytes'
# g->GCthreshold = g->totalbytes;
# ^
# In file included from lobject.h:15:0,
# from lapi.h:11,
# from lapi.c:18:
# lapi.c:919:23: error: 'global_State' has no member named 'totalbytes'
# res = cast_int(g->totalbytes >> 10);
# ^
# llimits.h:75:27: note: in definition of macro 'cast'
# #define cast(t, exp) ((t)(exp))
# ^
# lapi.c:919:13: note: in expansion of macro 'cast_int'
# res = cast_int(g->totalbytes >> 10);
# ^
# lapi.c:923:23: error: 'global_State' has no member named 'totalbytes'
# res = cast_int(g->totalbytes & 0x3ff);
# ^
# llimits.h:75:27: note: in definition of macro 'cast'
# #define cast(t, exp) ((t)(exp))
# ^
# lapi.c:923:13: note: in expansion of macro 'cast_int'
# res = cast_int(g->totalbytes & 0x3ff);
# ^
# lapi.c:928:17: error: 'global_State' has no member named 'totalbytes'
# if (a <= g->totalbytes)
# ^
# lapi.c:929:10: error: 'global_State' has no member named 'GCthreshold'
# g->GCthreshold = g->totalbytes - a;
# ^
# lapi.c:929:27: error: 'global_State' has no member named 'totalbytes'
# g->GCthreshold = g->totalbytes - a;
# ^
# lapi.c:931:10: error: 'global_State' has no member named 'GCthreshold'
# g->GCthreshold = 0;
# ^
# lapi.c:932:15: error: 'global_State' has no member named 'GCthreshold'
# while (g->GCthreshold <= g->totalbytes) {
# ^
# lapi.c:932:33: error: 'global_State' has no member named 'totalbytes'
# while (g->GCthreshold <= g->totalbytes) {
# ^
# lapi.c:934:14: error: 'global_State' has no member named 'gcstate'
# if (g->gcstate == GCSpause) { /* end of cycle? */
# ^
# lapi.c:942:14: error: 'global_State' has no member named 'gcpause'
# res = g->gcpause;
# ^
# lapi.c:943:8: error: 'global_State' has no member named 'gcpause'
# g->gcpause = data;
# ^
# lapi.c:947:14: error: 'global_State' has no member named 'gcstepmul'
# res = g->gcstepmul;
# ^
# lapi.c:948:8: error: 'global_State' has no member named 'gcstepmul'
# g->gcstepmul = data;
# ^
# In file included from lapi.c:22:0:
# lapi.c: In function 'lua_concat':
# lgc.h:82:11: error: 'global_State' has no member named 'totalbytes'
# if (G(L)->totalbytes >= G(L)->GCthreshold) \
# ^
# lapi.c:994:5: note: in expansion of macro 'luaC_checkGC'
# luaC_checkGC(L);
# ^
# lgc.h:82:31: error: 'global_State' has no member named 'GCthreshold'
# if (G(L)->totalbytes >= G(L)->GCthreshold) \
# ^
# lapi.c:994:5: note: in expansion of macro 'luaC_checkGC'
# luaC_checkGC(L);
# ^
# lapi.c: At top level:
# lapi.c:1007:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_getallocf'
# LUA_API lua_Alloc lua_getallocf (lua_State *L, void **ud) {
# ^
# lapi.c:1017:43: error: expected declaration specifiers or '...' before 'lua_Alloc'
# LUA_API void lua_setallocf (lua_State *L, lua_Alloc f, void *ud) {
# ^
# lapi.c:1025:46: error: expected declaration specifiers or '...' before 'size_t'
# LUA_API void *lua_newuserdata (lua_State *L, size_t size) {
# ^
# lapi.c: In function 'aux_upvalue':
# lapi.c:1041:33: error: 'NULL' undeclared (first use in this function)
# if (!ttisfunction(fi)) return NULL;
# ^
# lapi.c: In function 'lua_isnumber':
# lapi.c:264:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# lapi.c: In function 'lua_tonumber':
# lapi.c:320:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# lapi.c: In function 'lua_tointeger':
# lapi.c:334:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# lapi.c: In function 'lua_tocfunction':
# lapi.c:382:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# lapi.c: In function 'lua_touserdata':
# lapi.c:392:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# lapi.c: In function 'lua_tothread':
# lapi.c:398:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# lapi.c: In function 'lua_topointer':
# lapi.c:412:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# lapi.c: In function 'lua_pushthread':
# lapi.c:525:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# make[2]: *** [: lapi.o] Error 1
# make[2]: Leaving directory '/tmp/lua51/src/lua-5.1.5/src'
# make[1]: *** [Makefile:99: linux] Error 2
# make[1]: Leaving directory '/tmp/lua51/src/lua-5.1.5/src'
# make: *** [Makefile:56: linux] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...