The build took 00h 00m 46s and was NOT successful.
The program in this build is written in the following languages, according to sloccount:
SLOC | Language |
---|---|
16,572 |
ansic |
215 |
makefile |
16,787 |
total |
The process tree of the build process is here.
Several sub-process invocations were improper; see the process tree for details. Summary:
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:
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: lua 5.3.3-1 (Tue Apr 4 22:02:43 UTC 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
cd src && make linux
make[1]: Entering directory '/tmp/lua/src/lua-5.3.3/src'
make all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline"
make[2]: Entering directory '/tmp/lua/src/lua-5.3.3/src'
gcc -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -fPIC -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1 -c -o lapi.o lapi.c
gcc -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -fPIC -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1 -c -o lcode.o lcode.c
gcc -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -fPIC -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1 -c -o lctype.o lctype.c
gcc -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -fPIC -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1 -c -o ldebug.o ldebug.c
cc1: error: no include path in which to search for stdc-predef.h
lcode.c:13:18: error: no include path in which to search for math.h
#include
^
lcode.c:14:20: error: no include path in which to search for stdlib.h
#include
^
In file included from lcode.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 lcode.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:566:2: error: #error "Compiler does not support 'long long'. Use option '-DLUA_32BITS' or '-DLUA_C89_NUMBERS' (see file 'luaconf.h' for details)"
#error "Compiler does not support 'long long'. Use option '-DLUA_32BITS' \
^
luaconf.h:643:20: error: no include path in which to search for stdint.h
#include
^
In file included from lcode.c:16:0:
lua.h:93:1: error: unknown type name 'LUA_INTEGER'
typedef LUA_INTEGER lua_Integer;
^
lua.h:96:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_Unsigned'
typedef LUA_UNSIGNED lua_Unsigned;
^
lua.h:99:1: error: unknown type name 'ptrdiff_t'
typedef LUA_KCONTEXT lua_KContext;
^
lua.h:116:61: error: unknown type name 'size_t'
typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz);
^
lua.h:118:57: error: unknown type name 'size_t'
typedef int (*lua_Writer) (lua_State *L, const void *p, size_t sz, void *ud);
^
lua.h:124:51: error: unknown type name 'size_t'
typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize);
^
lua.h:124:65: error: unknown type name 'size_t'
typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize);
^
lua.h:145:36: error: unknown type name 'lua_Alloc'
LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud);
^
lua.h:184:65: error: unknown type name 'size_t'
LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len);
^
lua.h:185:9: warning: type defaults to 'int' in declaration of 'size_t' [enabled by default]
LUA_API size_t (lua_rawlen) (lua_State *L, int idx);
^
lua.h:185:9: error: 'size_t' declared as function returning a function
lua.h:185:1: warning: parameter names (without types) in function declaration [enabled by default]
LUA_API size_t (lua_rawlen) (lua_State *L, int idx);
^
lua.h:227:69: error: expected declaration specifiers or '...' before 'size_t'
LUA_API const char *(lua_pushlstring) (lua_State *L, const char *s, size_t len);
^
lua.h:230:55: error: unknown type name 'va_list'
va_list argp);
^
lua.h:250:48: error: expected declaration specifiers or '...' before 'size_t'
LUA_API void *(lua_newuserdata) (lua_State *L, size_t sz);
^
lua.h:280:41: error: unknown type name 'lua_Reader'
LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt,
^
lua.h:283:39: error: unknown type name 'lua_Writer'
LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data, int strip);
^
lua.h:326:9: warning: type defaults to 'int' in declaration of 'size_t' [enabled by default]
LUA_API size_t (lua_stringtonumber) (lua_State *L, const char *s);
^
lua.h:326:9: error: 'size_t' declared as function returning a function
lua.h:326:1: warning: parameter names (without types) in function declaration [enabled by default]
LUA_API size_t (lua_stringtonumber) (lua_State *L, const char *s);
^
lua.h:328:9: warning: type defaults to 'int' in declaration of 'lua_Alloc' [enabled by default]
LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud);
^
lua.h:328:9: error: 'lua_Alloc' declared as function returning a function
lua.h:328: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:329:50: 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 llex.h:10:0,
from lcode.h:10,
from lcode.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 llex.h:10,
from lcode.h:10,
from lcode.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
^
llimits.h:80:1: error: unknown type name 'LUA_INTEGER'
typedef LUAI_UACINT l_uacInt;
^
In file included from llex.h:10:0,
from lcode.h:10,
from lcode.c:18:
lobject.h:309:5: error: expected specifier-qualifier-list before 'size_t'
size_t lnglen; /* length for long strings */
^
lobject.h:350:3: error: expected specifier-qualifier-list before 'size_t'
size_t len; /* number of bytes */
^
lobject.h:539:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'luaO_str2num'
LUAI_FUNC size_t luaO_str2num (const char *s, TValue *o);
^
lobject.h:543:56: error: unknown type name 'va_list'
va_list argp);
^
lobject.h:545: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 llex.h:11,
from lcode.h:10,
from lcode.c:18:
lmem.h:11:20: error: no include path in which to search for stddef.h
#include
^
lmem.h:62:59: error: expected declaration specifiers or '...' before 'size_t'
LUAI_FUNC void *luaM_realloc_ (lua_State *L, void *block, size_t oldsize,
^
lmem.h:63:59: error: expected declaration specifiers or '...' before 'size_t'
size_t size);
^
lmem.h:65:32: error: expected declaration specifiers or '...' before 'size_t'
size_t size_elem, int limit,
^
cc1: error: no include path in which to search for stdc-predef.h
In file included from llex.h:11:0,
from lcode.h:10,
from lcode.c:18:
lzio.h:25:3: error: expected specifier-qualifier-list before 'size_t'
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:56:3: error: expected specifier-qualifier-list before 'size_t'
size_t n; /* bytes still unread */
^
In file included from lctype.h:10:0,
from lctype.c:13:
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 lctype.h:10,
from lctype.c:13:
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
^
In file included from lcode.h:10:0,
from lcode.c:18:
llex.h:78:67: error: expected declaration specifiers or '...' before 'size_t'
LUAI_FUNC TString *luaX_newstring (LexState *ls, const char *str, size_t l);
^
luaconf.h:566:2: error: #error "Compiler does not support 'long long'. Use option '-DLUA_32BITS' or '-DLUA_C89_NUMBERS' (see file 'luaconf.h' for details)"
#error "Compiler does not support 'long long'. Use option '-DLUA_32BITS' \
^
luaconf.h:643:20: error: no include path in which to search for stdint.h
#include
^
In file included from lctype.h:10:0,
from lctype.c:13:
lua.h:93:1: error: unknown type name 'LUA_INTEGER'
typedef LUA_INTEGER lua_Integer;
^
lua.h:96:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_Unsigned'
typedef LUA_UNSIGNED lua_Unsigned;
^
lua.h:99:1: error: unknown type name 'ptrdiff_t'
typedef LUA_KCONTEXT lua_KContext;
^
lua.h:116:61: error: unknown type name 'size_t'
typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz);
^
lua.h:118:57: error: unknown type name 'size_t'
typedef int (*lua_Writer) (lua_State *L, const void *p, size_t sz, void *ud);
^
lua.h:124:51: error: unknown type name 'size_t'
typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize);
^
lua.h:124:65: error: unknown type name 'size_t'
typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize);
^
lua.h:145:36: error: unknown type name 'lua_Alloc'
LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud);
^
lua.h:184:65: error: unknown type name 'size_t'
LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len);
^
lua.h:185:9: warning: type defaults to 'int' in declaration of 'size_t' [enabled by default]
LUA_API size_t (lua_rawlen) (lua_State *L, int idx);
^
lua.h:185:9: error: 'size_t' declared as function returning a function
lua.h:185:1: warning: parameter names (without types) in function declaration [enabled by default]
LUA_API size_t (lua_rawlen) (lua_State *L, int idx);
^
lua.h:227:69: error: expected declaration specifiers or '...' before 'size_t'
LUA_API const char *(lua_pushlstring) (lua_State *L, const char *s, size_t len);
^
lua.h:230:55: error: unknown type name 'va_list'
va_list argp);
^
lua.h:250:48: error: expected declaration specifiers or '...' before 'size_t'
LUA_API void *(lua_newuserdata) (lua_State *L, size_t sz);
^
In file included from ldebug.h:11:0,
from lcode.c:19:
lstate.h:41:20: error: no include path in which to search for signal.h
#include
^
lua.h:280:41: error: unknown type name 'lua_Reader'
LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt,
^
lua.h:283:39: error: unknown type name 'lua_Writer'
LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data, int strip);
^
lstate.h:85:7: error: unknown type name 'ptrdiff_t'
ptrdiff_t old_errfunc;
^
lstate.h:89:3: error: unknown type name 'ptrdiff_t'
ptrdiff_t extra;
^
lua.h:326:9: warning: type defaults to 'int' in declaration of 'size_t' [enabled by default]
LUA_API size_t (lua_stringtonumber) (lua_State *L, const char *s);
^
lstate.h:119:3: error: expected specifier-qualifier-list before 'lua_Alloc'
lua_Alloc frealloc; /* function to reallocate memory */
^
lua.h:326:9: error: 'size_t' declared as function returning a function
lua.h:326:1: warning: parameter names (without types) in function declaration [enabled by default]
LUA_API size_t (lua_stringtonumber) (lua_State *L, const char *s);
^
lua.h:328:9: warning: type defaults to 'int' in declaration of 'lua_Alloc' [enabled by default]
LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud);
^
lua.h:328:9: error: 'lua_Alloc' declared as function returning a function
lstate.h:175:3: error: unknown type name 'ptrdiff_t'
ptrdiff_t errfunc; /* current error handling function (stack index) */
^
lua.h:328:1: warning: parameter names (without types) in function declaration [enabled by default]
LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud);
^
lstate.h:181:3: error: unknown type name 'sig_atomic_t'
l_signalT hookmask;
^
lua.h:329:50: 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 lctype.c:13:0:
lctype.h:34:20: error: no include path in which to search for limits.h
#include
^
In file included from lctype.h:36:0,
from lctype.c:13:
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
^
llimits.h:80:1: error: unknown type name 'LUA_INTEGER'
typedef LUAI_UACINT l_uacInt;
^
In file included from lcode.c:20:0:
ldo.h:46:41: error: unknown type name 'ptrdiff_t'
ptrdiff_t oldtop, ptrdiff_t ef);
^
ldo.h:46:59: error: unknown type name 'ptrdiff_t'
ptrdiff_t oldtop, ptrdiff_t ef);
^
In file included from lctype.c:13:0:
lctype.h:71:37: error: 'UCHAR_MAX' undeclared here (not in a function)
LUAI_DDEC const lu_byte luai_ctype_[UCHAR_MAX + 2];
^
lctype.c:17:20: error: no include path in which to search for limits.h
#include
^
In file included from lcode.c:21:0:
lgc.h:139:56: error: expected declaration specifiers or '...' before 'size_t'
LUAI_FUNC GCObject *luaC_newobj (lua_State *L, int tt, size_t sz);
^
In file included from lcode.c:27:0:
lstring.h:36:52: error: expected declaration specifiers or '...' before 'size_t'
LUAI_FUNC unsigned int luaS_hash (const char *str, size_t l, unsigned int seed);
^
lstring.h:43:47: error: expected declaration specifiers or '...' before 'size_t'
LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s);
^
lstring.h:44:65: error: expected declaration specifiers or '...' before 'size_t'
LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l);
^
lstring.h:46:56: error: expected declaration specifiers or '...' before 'size_t'
LUAI_FUNC TString *luaS_createlngstrobj (lua_State *L, size_t l);
^
make[2]: *** [: lctype.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from lobject.h:15:0,
from llex.h:10,
from lcode.h:10,
from lcode.c:18:
lcode.c: In function 'getjump':
llimits.h:51:18: error: 'INT_MAX' undeclared (first use in this function)
#define MAX_INT INT_MAX /* maximum value of an int */
^
lopcodes.h:64:27: note: in expansion of macro 'MAX_INT'
#define MAXARG_sBx MAX_INT
^
lopcodes.h:112:37: note: in expansion of macro 'MAXARG_sBx'
#define GETARG_sBx(i) (GETARG_Bx(i)-MAXARG_sBx)
^
lcode.c:91:16: note: in expansion of macro 'GETARG_sBx'
int offset = GETARG_sBx(fs->f->code[pc]);
^
llimits.h:51:18: note: each undeclared identifier is reported only once for each function it appears in
#define MAX_INT INT_MAX /* maximum value of an int */
^
lopcodes.h:64:27: note: in expansion of macro 'MAX_INT'
#define MAXARG_sBx MAX_INT
^
lopcodes.h:112:37: note: in expansion of macro 'MAXARG_sBx'
#define GETARG_sBx(i) (GETARG_Bx(i)-MAXARG_sBx)
^
lcode.c:91:16: note: in expansion of macro 'GETARG_sBx'
int offset = GETARG_sBx(fs->f->code[pc]);
^
lcode.c: In function 'fixjump':
lcode.c:107:3: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
if (abs(offset) > MAXARG_sBx)
^
In file included from lobject.h:15:0,
from llex.h:10,
from lcode.h:10,
from lcode.c:18:
llimits.h:51:18: error: 'INT_MAX' undeclared (first use in this function)
#define MAX_INT INT_MAX /* maximum value of an int */
^
lopcodes.h:64:27: note: in expansion of macro 'MAX_INT'
#define MAXARG_sBx MAX_INT
^
lcode.c:107:21: note: in expansion of macro 'MAXARG_sBx'
if (abs(offset) > MAXARG_sBx)
^
lcode.c: In function 'luaK_jump':
llimits.h:51:18: error: 'INT_MAX' undeclared (first use in this function)
#define MAX_INT INT_MAX /* maximum value of an int */
^
lopcodes.h:64:27: note: in expansion of macro 'MAX_INT'
#define MAXARG_sBx MAX_INT
^
lcode.h:46:61: note: in expansion of macro 'MAXARG_sBx'
#define luaK_codeAsBx(fs,o,A,sBx) luaK_codeABx(fs,o,A,(sBx)+MAXARG_sBx)
^
lcode.c:140:7: note: in expansion of macro 'luaK_codeAsBx'
j = luaK_codeAsBx(fs, OP_JMP, 0, NO_JUMP);
^
lcode.c: In function 'luaK_code':
lcode.c:297:3: warning: implicit declaration of function 'luaM_growaux_' [-Wimplicit-function-declaration]
luaM_growvector(fs->ls->L, f->code, fs->pc, f->sizecode, Instruction,
^
In file included from lobject.h:15:0,
from llex.h:10,
from lcode.h:10,
from lcode.c:18:
llimits.h:51:18: error: 'INT_MAX' undeclared (first use in this function)
#define MAX_INT INT_MAX /* maximum value of an int */
^
llimits.h:111:27: note: in definition of macro 'cast'
#define cast(t, exp) ((t)(exp))
^
lcode.c:297:3: note: in expansion of macro 'luaM_growvector'
luaM_growvector(fs->ls->L, f->code, fs->pc, f->sizecode, Instruction,
^
lcode.c:298:19: note: in expansion of macro 'MAX_INT'
MAX_INT, "opcodes");
^
lcode.c: In function 'luaK_codek':
llimits.h:51:18: error: 'INT_MAX' undeclared (first use in this function)
#define MAX_INT INT_MAX /* maximum value of an int */
^
lopcodes.h:63:26: note: in expansion of macro 'MAX_INT'
#define MAXARG_Bx MAX_INT
^
lcode.c:347:12: note: in expansion of macro 'MAXARG_Bx'
if (k <= MAXARG_Bx)
^
In file included from lcode.c:29:0:
lcode.c: In function 'addk':
lvm.h:48:48: error: 'NULL' undeclared (first use in this function)
#define luaV_rawequalobj(t1,t2) luaV_equalobj(NULL,t1,t2)
^
lcode.c:437:23: note: in expansion of macro 'luaV_rawequalobj'
luaV_rawequalobj(&f->k[k], v))
^
In file included from lobject.h:15:0,
from llex.h:10,
from lcode.h:10,
from lcode.c:18:
llimits.h:51:18: error: 'INT_MAX' undeclared (first use in this function)
#define MAX_INT INT_MAX /* maximum value of an int */
^
llimits.h:111:27: note: in definition of macro 'cast'
#define cast(t, exp) ((t)(exp))
^
lcode.c:446:3: note: in expansion of macro 'luaM_growvector'
luaM_growvector(L, f->k, k, f->sizek, TValue, MAXARG_Ax, "constants");
^
lopcodes.h:70:19: note: in expansion of macro 'MAX_INT'
#define MAXARG_Ax MAX_INT
^
lcode.c:446:49: note: in expansion of macro 'MAXARG_Ax'
luaM_growvector(L, f->k, k, f->sizek, TValue, MAXARG_Ax, "constants");
^
lcode.c: In function 'luaK_infix':
lcode.c:1101:25: error: 'NULL' undeclared (first use in this function)
if (!tonumeral(v, NULL))
^
In file included from lobject.h:15:0,
from llex.h:10,
from lcode.h:10,
from lcode.c:18:
lcode.c: In function 'luaK_setlist':
llimits.h:51:18: error: 'INT_MAX' undeclared (first use in this function)
#define MAX_INT INT_MAX /* maximum value of an int */
^
lopcodes.h:70:19: note: in expansion of macro 'MAX_INT'
#define MAXARG_Ax MAX_INT
^
lcode.c:1191:17: note: in expansion of macro 'MAXARG_Ax'
else if (c <= MAXARG_Ax) {
^
lcode.c: In function 'luaK_codek':
lcode.c:354:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[2]: *** [: lcode.o] Error 1
cc1: error: no include path in which to search for stdc-predef.h
ldebug.c:13:20: error: no include path in which to search for stdarg.h
#include
^
ldebug.c:14:20: error: no include path in which to search for stddef.h
#include
^
ldebug.c:15:20: error: no include path in which to search for string.h
#include
^
In file included from ldebug.c:17: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 ldebug.c:17:
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:566:2: error: #error "Compiler does not support 'long long'. Use option '-DLUA_32BITS' or '-DLUA_C89_NUMBERS' (see file 'luaconf.h' for details)"
#error "Compiler does not support 'long long'. Use option '-DLUA_32BITS' \
^
luaconf.h:643:20: error: no include path in which to search for stdint.h
#include
^
In file included from ldebug.c:17:0:
lua.h:93:1: error: unknown type name 'LUA_INTEGER'
typedef LUA_INTEGER lua_Integer;
^
lua.h:96:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_Unsigned'
typedef LUA_UNSIGNED lua_Unsigned;
^
lua.h:99:1: error: unknown type name 'ptrdiff_t'
typedef LUA_KCONTEXT lua_KContext;
^
lua.h:116:61: error: unknown type name 'size_t'
typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz);
^
lua.h:118:57: error: unknown type name 'size_t'
typedef int (*lua_Writer) (lua_State *L, const void *p, size_t sz, void *ud);
^
lua.h:124:51: error: unknown type name 'size_t'
typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize);
^
lua.h:124:65: error: unknown type name 'size_t'
typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize);
^
lua.h:145:36: error: unknown type name 'lua_Alloc'
LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud);
^
lua.h:184:65: error: unknown type name 'size_t'
LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len);
^
lua.h:185:9: warning: type defaults to 'int' in declaration of 'size_t' [enabled by default]
LUA_API size_t (lua_rawlen) (lua_State *L, int idx);
^
lua.h:185:9: error: 'size_t' declared as function returning a function
lua.h:185:1: warning: parameter names (without types) in function declaration [enabled by default]
LUA_API size_t (lua_rawlen) (lua_State *L, int idx);
^
lua.h:227:69: error: expected declaration specifiers or '...' before 'size_t'
LUA_API const char *(lua_pushlstring) (lua_State *L, const char *s, size_t len);
^
lua.h:230:55: error: unknown type name 'va_list'
va_list argp);
^
lua.h:250:48: error: expected declaration specifiers or '...' before 'size_t'
LUA_API void *(lua_newuserdata) (lua_State *L, size_t sz);
^
lua.h:280:41: error: unknown type name 'lua_Reader'
LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt,
^
lua.h:283:39: error: unknown type name 'lua_Writer'
LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data, int strip);
^
lua.h:326:9: warning: type defaults to 'int' in declaration of 'size_t' [enabled by default]
LUA_API size_t (lua_stringtonumber) (lua_State *L, const char *s);
^
lua.h:326:9: error: 'size_t' declared as function returning a function
lua.h:326:1: warning: parameter names (without types) in function declaration [enabled by default]
LUA_API size_t (lua_stringtonumber) (lua_State *L, const char *s);
^
lua.h:328:9: warning: type defaults to 'int' in declaration of 'lua_Alloc' [enabled by default]
LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud);
^
lua.h:328:9: error: 'lua_Alloc' declared as function returning a function
lua.h:328: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:329:50: 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 ldebug.c:19:
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
^
llimits.h:80:1: error: unknown type name 'LUA_INTEGER'
typedef LUAI_UACINT l_uacInt;
^
In file included from lstate.h:12:0,
from lapi.h:12,
from ldebug.c:19:
lobject.h:12:20: error: no include path in which to search for stdarg.h
#include
^
lobject.h:309:5: error: expected specifier-qualifier-list before 'size_t'
size_t lnglen; /* length for long strings */
^
lobject.h:350:3: error: expected specifier-qualifier-list before 'size_t'
size_t len; /* number of bytes */
^
lobject.h:539:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'luaO_str2num'
LUAI_FUNC size_t luaO_str2num (const char *s, TValue *o);
^
lobject.h:543:56: error: unknown type name 'va_list'
va_list argp);
^
lobject.h:545: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 lapi.h:12,
from ldebug.c:19:
lmem.h:11:20: error: no include path in which to search for stddef.h
#include
^
lmem.h:62:59: error: expected declaration specifiers or '...' before 'size_t'
LUAI_FUNC void *luaM_realloc_ (lua_State *L, void *block, size_t oldsize,
^
lmem.h:63:59: error: expected declaration specifiers or '...' before 'size_t'
size_t size);
^
lmem.h:65:32: error: expected declaration specifiers or '...' before 'size_t'
size_t size_elem, int limit,
^
In file included from lstate.h:14:0,
from lapi.h:12,
from ldebug.c:19:
lzio.h:25:3: error: expected specifier-qualifier-list before 'size_t'
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:56:3: error: expected specifier-qualifier-list before 'size_t'
size_t n; /* bytes still unread */
^
In file included from lapi.h:12:0,
from ldebug.c:19:
lstate.h:41:20: error: no include path in which to search for signal.h
#include
^
lstate.h:85:7: error: unknown type name 'ptrdiff_t'
ptrdiff_t old_errfunc;
^
lstate.h:89:3: error: unknown type name 'ptrdiff_t'
ptrdiff_t extra;
^
lstate.h:119:3: error: expected specifier-qualifier-list before 'lua_Alloc'
lua_Alloc frealloc; /* function to reallocate memory */
^
lstate.h:175:3: error: unknown type name 'ptrdiff_t'
ptrdiff_t errfunc; /* current error handling function (stack index) */
^
lstate.h:181:3: error: unknown type name 'sig_atomic_t'
l_signalT hookmask;
^
In file included from lcode.h:10:0,
from ldebug.c:20:
llex.h:78:67: error: expected declaration specifiers or '...' before 'size_t'
LUAI_FUNC TString *luaX_newstring (LexState *ls, const char *str, size_t l);
^
cc1: error: no include path in which to search for stdc-predef.h
lapi.c:13:20: error: no include path in which to search for stdarg.h
#include
^
lapi.c:14: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
^
In file included from ldebug.c:22:0:
ldo.h:46:41: error: unknown type name 'ptrdiff_t'
ptrdiff_t oldtop, ptrdiff_t ef);
^
ldo.h:46:59: error: unknown type name 'ptrdiff_t'
ptrdiff_t oldtop, ptrdiff_t ef);
^
In file included from lstring.h:10:0,
from ldebug.c:27:
lgc.h:139:56: error: expected declaration specifiers or '...' before 'size_t'
LUAI_FUNC GCObject *luaC_newobj (lua_State *L, int tt, size_t sz);
^
In file included from ldebug.c:27:0:
lstring.h:36:52: error: expected declaration specifiers or '...' before 'size_t'
LUAI_FUNC unsigned int luaS_hash (const char *str, size_t l, unsigned int seed);
^
lstring.h:43:47: error: expected declaration specifiers or '...' before 'size_t'
LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s);
^
lstring.h:44:65: error: expected declaration specifiers or '...' before 'size_t'
LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l);
^
lstring.h:46:56: error: expected declaration specifiers or '...' before 'size_t'
LUAI_FUNC TString *luaS_createlngstrobj (lua_State *L, size_t l);
^
ldebug.c: In function 'lua_sethook':
ldebug.c:81:15: error: 'NULL' undeclared (first use in this function)
if (func == NULL || mask == 0) { /* turn off hooks? */
^
ldebug.c:81:15: note: each undeclared identifier is reported only once for each function it appears in
ldebug.c: In function 'upvalname':
ldebug.c:128:12: error: 'NULL' undeclared (first use in this function)
if (s == NULL) return "?";
^
ldebug.c: In function 'findvararg':
ldebug.c:136:12: error: 'NULL' undeclared (first use in this function)
return NULL; /* no such vararg */
^
ldebug.c: In function 'findlocal':
ldebug.c:146:22: error: 'NULL' undeclared (first use in this function)
const char *name = NULL;
^
ldebug.c: In function 'lua_getlocal':
ldebug.c:174:13: error: 'NULL' undeclared (first use in this function)
if (ar == NULL) { /* information about non-active function? */
^
ldebug.c: In function 'lua_setlocal':
ldebug.c:195:15: error: 'NULL' undeclared (first use in this function)
StkId pos = NULL; /* to avoid warnings */
^
ldebug.c: In function 'funcinfo':
ldebug.c:34:34: error: 'NULL' undeclared (first use in this function)
#define noLuaClosure(f) ((f) == NULL || (f)->c.tt == LUA_TCCL)
^
ldebug.c:211:7: note: in expansion of macro 'noLuaClosure'
if (noLuaClosure(cl)) {
^
ldebug.c:224:3: warning: implicit declaration of function 'luaO_chunkid' [-Wimplicit-function-declaration]
luaO_chunkid(ar->short_src, ar->source, LUA_IDSIZE);
^
ldebug.c: In function 'collectvalidlines':
ldebug.c:34:34: error: 'NULL' undeclared (first use in this function)
#define noLuaClosure(f) ((f) == NULL || (f)->c.tt == LUA_TCCL)
^
ldebug.c:229:7: note: in expansion of macro 'noLuaClosure'
if (noLuaClosure(f)) {
^
ldebug.c: In function 'auxgetinfo':
ldebug.c:261:26: error: 'NULL' undeclared (first use in this function)
ar->nups = (f == NULL) ? 0 : f->c.nupvalues;
^
ldebug.c: In function 'lua_getinfo':
ldebug.c:306:10: error: 'NULL' undeclared (first use in this function)
ci = NULL;
^
ldebug.c:319:3: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration]
if (strchr(what, 'f')) {
^
ldebug.c:319:7: warning: incompatible implicit declaration of built-in function 'strchr' [enabled by default]
if (strchr(what, 'f')) {
^
ldebug.c:324:7: warning: incompatible implicit declaration of built-in function 'strchr' [enabled by default]
if (strchr(what, 'L'))
^
luaconf.h:566:2: error: #error "Compiler does not support 'long long'. Use option '-DLUA_32BITS' or '-DLUA_C89_NUMBERS' (see file 'luaconf.h' for details)"
#error "Compiler does not support 'long long'. Use option '-DLUA_32BITS' \
^
luaconf.h:643:20: error: no include path in which to search for stdint.h
#include
^
In file included from lapi.c:16:0:
lua.h:93:1: error: unknown type name 'LUA_INTEGER'
typedef LUA_INTEGER lua_Integer;
^
lua.h:96:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_Unsigned'
typedef LUA_UNSIGNED lua_Unsigned;
^
lua.h:99:1: error: unknown type name 'ptrdiff_t'
typedef LUA_KCONTEXT lua_KContext;
^
lua.h:116:61: error: unknown type name 'size_t'
typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz);
^
lua.h:118:57: error: unknown type name 'size_t'
typedef int (*lua_Writer) (lua_State *L, const void *p, size_t sz, void *ud);
^
lua.h:124:51: error: unknown type name 'size_t'
typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize);
^
lua.h:124:65: error: unknown type name 'size_t'
typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize);
^
lua.h:145:36: error: unknown type name 'lua_Alloc'
LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud);
^
In file included from lapi.h:11:0,
from ldebug.c:19:
ldebug.c: In function 'findsetreg':
llimits.h:51:18: error: 'INT_MAX' undeclared (first use in this function)
#define MAX_INT INT_MAX /* maximum value of an int */
^
lopcodes.h:64:27: note: in expansion of macro 'MAX_INT'
#define MAXARG_sBx MAX_INT
^
lopcodes.h:112:37: note: in expansion of macro 'MAXARG_sBx'
#define GETARG_sBx(i) (GETARG_Bx(i)-MAXARG_sBx)
^
ldebug.c:401:17: note: in expansion of macro 'GETARG_sBx'
int b = GETARG_sBx(i);
^
lua.h:184:65: error: unknown type name 'size_t'
LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len);
^
lua.h:185:9: warning: type defaults to 'int' in declaration of 'size_t' [enabled by default]
LUA_API size_t (lua_rawlen) (lua_State *L, int idx);
^
lua.h:185:9: error: 'size_t' declared as function returning a function
lua.h:185:1: warning: parameter names (without types) in function declaration [enabled by default]
LUA_API size_t (lua_rawlen) (lua_State *L, int idx);
^
lua.h:227:69: error: expected declaration specifiers or '...' before 'size_t'
LUA_API const char *(lua_pushlstring) (lua_State *L, const char *s, size_t len);
^
lua.h:230:55: error: unknown type name 'va_list'
va_list argp);
^
ldebug.c: In function 'getobjname':
ldebug.c:446:9: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
return (vn && strcmp(vn, LUA_ENV) == 0) ? "global" : "field";
^
lua.h:250:48: error: expected declaration specifiers or '...' before 'size_t'
LUA_API void *(lua_newuserdata) (lua_State *L, size_t sz);
^
lua.h:280:41: error: unknown type name 'lua_Reader'
LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt,
^
lua.h:283:39: error: unknown type name 'lua_Writer'
LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data, int strip);
^
lua.h:326:9: warning: type defaults to 'int' in declaration of 'size_t' [enabled by default]
LUA_API size_t (lua_stringtonumber) (lua_State *L, const char *s);
^
lua.h:326:9: error: 'size_t' declared as function returning a function
lua.h:326:1: warning: parameter names (without types) in function declaration [enabled by default]
LUA_API size_t (lua_stringtonumber) (lua_State *L, const char *s);
^
lua.h:328:9: warning: type defaults to 'int' in declaration of 'lua_Alloc' [enabled by default]
LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud);
^
lua.h:328:9: error: 'lua_Alloc' declared as function returning a function
lua.h:328:1: warning: parameter names (without types) in function declaration [enabled by default]
LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud);
^
ldebug.c:470:10: error: 'NULL' undeclared (first use in this function)
return NULL; /* could not find reasonable name */
^
lua.h:329:50: 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:
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
^
llimits.h:80:1: error: unknown type name 'LUA_INTEGER'
typedef LUAI_UACINT l_uacInt;
^
In file included from lapi.h:11:0,
from ldebug.c:19:
ldebug.c: In function 'getfuncname':
In file included from lstate.h:12:0,
from lapi.h:12,
from lapi.c:18:
lobject.h:12:20: error: no include path in which to search for stdarg.h
#include
^
ldebug.c:514:22: error: 'global_State' has no member named 'tmname'
*name = getstr(G(L)->tmname[tm]);
^
llimits.h:90:26: note: in definition of macro 'check_exp'
#define check_exp(c,e) (e)
^
lobject.h:329:34: note: in expansion of macro 'cast'
check_exp(sizeof((ts)->extra), cast(char *, (ts)) + sizeof(UTString))
^
ldebug.c:514:11: note: in expansion of macro 'getstr'
*name = getstr(G(L)->tmname[tm]);
^
ldebug.c:475:7: warning: variable 'tm' set but not used [-Wunused-but-set-variable]
TMS tm = (TMS)0; /* to avoid warnings */
^
ldebug.c: In function 'isinstack':
ldebug.c:528:3: error: unknown type name 'ptrdiff_t'
ptrdiff_t i = o - ci->u.l.base;
^
lobject.h:309:5: error: expected specifier-qualifier-list before 'size_t'
size_t lnglen; /* length for long strings */
^
lobject.h:350:3: error: expected specifier-qualifier-list before 'size_t'
size_t len; /* number of bytes */
^
ldebug.c: In function 'getupvalname':
ldebug.c:548:10: error: 'NULL' undeclared (first use in this function)
return NULL;
^
ldebug.c: In function 'varinfo':
ldebug.c:553:22: error: 'NULL' undeclared (first use in this function)
const char *name = NULL; /* to avoid warnings */
^
lobject.h:539:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'luaO_str2num'
LUAI_FUNC size_t luaO_str2num (const char *s, TValue *o);
^
lobject.h:543:56: error: unknown type name 'va_list'
va_list argp);
^
lobject.h:545: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 lapi.h:12,
from lapi.c:18:
lmem.h:11:20: error: no include path in which to search for stddef.h
#include
^
lmem.h:62:59: error: expected declaration specifiers or '...' before 'size_t'
LUAI_FUNC void *luaM_realloc_ (lua_State *L, void *block, size_t oldsize,
^
lmem.h:63:59: error: expected declaration specifiers or '...' before 'size_t'
size_t size);
^
lmem.h:65:32: error: expected declaration specifiers or '...' before 'size_t'
size_t size_elem, int limit,
^
In file included from lstate.h:14:0,
from lapi.h:12,
from lapi.c:18:
lzio.h:25:3: error: expected specifier-qualifier-list before 'size_t'
size_t n;
^
ldebug.c: In function 'luaG_runerror':
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:56:3: error: expected specifier-qualifier-list before 'size_t'
size_t n; /* bytes still unread */
^
ldebug.c:636:3: error: unknown type name 'va_list'
va_list argp;
^
In file included from lapi.h:12:0,
from lapi.c:18:
lstate.h:41:20: error: no include path in which to search for signal.h
#include
^
ldebug.c:637:3: warning: implicit declaration of function 'va_start' [-Wimplicit-function-declaration]
va_start(argp, fmt);
^
lstate.h:85:7: error: unknown type name 'ptrdiff_t'
ptrdiff_t old_errfunc;
^
lstate.h:89:3: error: unknown type name 'ptrdiff_t'
ptrdiff_t extra;
^
ldebug.c:638:3: warning: implicit declaration of function 'luaO_pushvfstring' [-Wimplicit-function-declaration]
msg = luaO_pushvfstring(L, fmt, argp); /* format message */
^
lstate.h:119:3: error: expected specifier-qualifier-list before 'lua_Alloc'
lua_Alloc frealloc; /* function to reallocate memory */
^
ldebug.c:638:7: warning: assignment makes pointer from integer without a cast [enabled by default]
msg = luaO_pushvfstring(L, fmt, argp); /* format message */
^
lstate.h:175:3: error: unknown type name 'ptrdiff_t'
ptrdiff_t errfunc; /* current error handling function (stack index) */
^
ldebug.c:639:3: warning: implicit declaration of function 'va_end' [-Wimplicit-function-declaration]
va_end(argp);
^
ldebug.c: In function 'findvararg':
ldebug.c:141:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
ldebug.c: In function 'getobjname':
ldebug.c:471:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
ldebug.c: In function 'upvalname':
ldebug.c:130:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
ldebug.c: In function 'getupvalname':
ldebug.c:549:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
lstate.h:181:3: error: unknown type name 'sig_atomic_t'
l_signalT hookmask;
^
make[2]: *** [: ldebug.o] Error 1
In file included from lapi.c:20:0:
ldo.h:46:41: error: unknown type name 'ptrdiff_t'
ptrdiff_t oldtop, ptrdiff_t ef);
^
ldo.h:46:59: error: unknown type name 'ptrdiff_t'
ptrdiff_t oldtop, ptrdiff_t ef);
^
In file included from lapi.c:22:0:
lgc.h:139:56: error: expected declaration specifiers or '...' before 'size_t'
LUAI_FUNC GCObject *luaC_newobj (lua_State *L, int tt, size_t sz);
^
In file included from lapi.c:26:0:
lstring.h:36:52: error: expected declaration specifiers or '...' before 'size_t'
LUAI_FUNC unsigned int luaS_hash (const char *str, size_t l, unsigned int seed);
^
lstring.h:43:47: error: expected declaration specifiers or '...' before 'size_t'
LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s);
^
lstring.h:44:65: error: expected declaration specifiers or '...' before 'size_t'
LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l);
^
lstring.h:46:56: error: expected declaration specifiers or '...' before 'size_t'
LUAI_FUNC TString *luaS_createlngstrobj (lua_State *L, size_t l);
^
In file included from lapi.c:29:0:
lundump.h:29:56: error: unknown type name 'lua_Writer'
LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w,
^
lapi.c: In function 'index2addr':
lapi.c:73:17: error: 'global_State' has no member named 'l_registry'
return &G(L)->l_registry;
^
lapi.c: In function 'lua_atpanic':
lapi.c:137:13: error: 'global_State' has no member named 'panic'
old = G(L)->panic;
^
lapi.c:138:7: error: 'global_State' has no member named 'panic'
G(L)->panic = panicf;
^
lapi.c: In function 'lua_version':
lapi.c:146:12: error: 'NULL' undeclared (first use in this function)
if (L == NULL) return &version;
^
lapi.c:146:12: note: each undeclared identifier is reported only once for each function it appears in
lapi.c:147:19: error: 'global_State' has no member named 'version'
else return G(L)->version;
^
In file included from lapi.c:30:0:
lapi.c: In function 'lua_rawequal':
lvm.h:48:48: error: 'NULL' undeclared (first use in this function)
#define luaV_rawequalobj(t1,t2) luaV_equalobj(NULL,t1,t2)
^
lapi.c:298:41: note: in expansion of macro 'luaV_rawequalobj'
return (isvalid(o1) && isvalid(o2)) ? luaV_rawequalobj(o1, o2) : 0;
^
lapi.c: At top level:
lapi.c:337:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_stringtonumber'
LUA_API size_t lua_stringtonumber (lua_State *L, const char *s) {
^
lapi.c:373: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:392:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_rawlen'
LUA_API size_t lua_rawlen (lua_State *L, int idx) {
^
lapi.c: In function 'lua_tocfunction':
lapi.c:409:15: error: 'NULL' undeclared (first use in this function)
else return NULL; /* not a C function */
^
lapi.c: In function 'lua_touserdata':
lapi.c:418:21: error: 'NULL' undeclared (first use in this function)
default: return NULL;
^
lapi.c: In function 'lua_tothread':
lapi.c:425:29: error: 'NULL' undeclared (first use in this function)
return (!ttisthread(o)) ? NULL : thvalue(o);
^
lapi.c: In function 'lua_topointer':
lapi.c:439:21: error: 'NULL' undeclared (first use in this function)
default: return NULL;
^
lapi.c: At top level:
lapi.c:479:67: error: expected declaration specifiers or '...' before 'size_t'
LUA_API const char *lua_pushlstring (lua_State *L, const char *s, size_t len) {
^
lapi.c: In function 'lua_pushstring':
lapi.c:493:12: error: 'NULL' undeclared (first use in this function)
if (s == NULL)
^
In file included from lapi.c:22:0:
lgc.h:111:12: error: 'global_State' has no member named 'GCdebt'
{ if (G(L)->GCdebt > 0) { pre; luaC_step(L); pos;}; \
^
lgc.h:115:26: note: in expansion of macro 'luaC_condGC'
#define luaC_checkGC(L) luaC_condGC(L,(void)0,(void)0)
^
lapi.c:502:3: note: in expansion of macro 'luaC_checkGC'
luaC_checkGC(L);
^
lapi.c: At top level:
lapi.c:509:39: error: unknown type name 'va_list'
va_list argp) {
^
lapi.c: In function 'lua_pushfstring':
lapi.c:521:3: error: unknown type name 'va_list'
va_list argp;
^
lapi.c:523:3: warning: implicit declaration of function 'va_start' [-Wimplicit-function-declaration]
va_start(argp, fmt);
^
lapi.c:524:3: warning: implicit declaration of function 'luaO_pushvfstring' [-Wimplicit-function-declaration]
ret = luaO_pushvfstring(L, fmt, argp);
^
lapi.c:524:7: warning: assignment makes pointer from integer without a cast [enabled by default]
ret = luaO_pushvfstring(L, fmt, argp);
^
lapi.c:525:3: warning: implicit declaration of function 'va_end' [-Wimplicit-function-declaration]
va_end(argp);
^
In file included from lapi.c:22:0:
lgc.h:111:12: error: 'global_State' has no member named 'GCdebt'
{ if (G(L)->GCdebt > 0) { pre; luaC_step(L); pos;}; \
^
lgc.h:115:26: note: in expansion of macro 'luaC_condGC'
#define luaC_checkGC(L) luaC_condGC(L,(void)0,(void)0)
^
lapi.c:526:3: note: in expansion of macro 'luaC_checkGC'
luaC_checkGC(L);
^
lapi.c: In function 'lua_pushcclosure':
lgc.h:111:12: error: 'global_State' has no member named 'GCdebt'
{ if (G(L)->GCdebt > 0) { pre; luaC_step(L); pos;}; \
^
lgc.h:115:26: note: in expansion of macro 'luaC_condGC'
#define luaC_checkGC(L) luaC_condGC(L,(void)0,(void)0)
^
lapi.c:551:3: note: in expansion of macro 'luaC_checkGC'
luaC_checkGC(L);
^
lapi.c: In function 'lua_pushthread':
lapi.c:577:15: error: 'global_State' has no member named 'mainthread'
return (G(L)->mainthread == L);
^
In file included from lapi.c:30:0:
lapi.c: In function 'auxgetstr':
lvm.h:60:14: error: 'NULL' undeclared (first use in this function)
? (slot = NULL, 0) /* not a table; 'slot' is NULL and result is 0 */ \
^
lapi.c:590:7: note: in expansion of macro 'luaV_fastget'
if (luaV_fastget(L, t, str, slot, luaH_getstr)) {
^
lvm.h:60:18: warning: left-hand operand of comma expression has no effect [-Wunused-value]
? (slot = NULL, 0) /* not a table; 'slot' is NULL and result is 0 */ \
^
lapi.c:590:7: note: in expansion of macro 'luaV_fastget'
if (luaV_fastget(L, t, str, slot, luaH_getstr)) {
^
In file included from lapi.h:11:0,
from lapi.c:18:
lapi.c: In function 'lua_getglobal':
lapi.c:605:28: error: 'global_State' has no member named 'l_registry'
Table *reg = hvalue(&G(L)->l_registry);
^
llimits.h:90:26: note: in definition of macro 'check_exp'
#define check_exp(c,e) (e)
^
lstate.h:213:19: note: in expansion of macro 'check_exp'
#define gco2t(o) check_exp((o)->tt == LUA_TTABLE, &((cast_u(o))->h))
^
lstate.h:203:19: note: in expansion of macro 'cast'
#define cast_u(o) cast(union GCUnion *, (o))
^
lstate.h:213:55: note: in expansion of macro 'cast_u'
#define gco2t(o) check_exp((o)->tt == LUA_TTABLE, &((cast_u(o))->h))
^
lobject.h:175:43: note: in expansion of macro 'gco2t'
#define hvalue(o) check_exp(ttistable(o), gco2t(val_(o).gc))
^
lobject.h:175:49: note: in expansion of macro 'val_'
#define hvalue(o) check_exp(ttistable(o), gco2t(val_(o).gc))
^
lapi.c:605:16: note: in expansion of macro 'hvalue'
Table *reg = hvalue(&G(L)->l_registry);
^
In file included from lapi.c:30:0:
lapi.c: In function 'lua_gettable':
lvm.h:60:14: error: 'NULL' undeclared (first use in this function)
? (slot = NULL, 0) /* not a table; 'slot' is NULL and result is 0 */ \
^
lvm.h:68:7: note: in expansion of macro 'luaV_fastget'
if (luaV_fastget(L,t,k,slot,luaH_get)) { setobj2s(L, v, slot); } \
^
lapi.c:615:3: note: in expansion of macro 'luaV_gettable'
luaV_gettable(L, t, L->top - 1, L->top - 1);
^
lvm.h:60:18: warning: left-hand operand of comma expression has no effect [-Wunused-value]
? (slot = NULL, 0) /* not a table; 'slot' is NULL and result is 0 */ \
^
lvm.h:68:7: note: in expansion of macro 'luaV_fastget'
if (luaV_fastget(L,t,k,slot,luaH_get)) { setobj2s(L, v, slot); } \
^
lapi.c:615:3: note: in expansion of macro 'luaV_gettable'
luaV_gettable(L, t, L->top - 1, L->top - 1);
^
lapi.c: In function 'lua_geti':
lvm.h:60:14: error: 'NULL' undeclared (first use in this function)
? (slot = NULL, 0) /* not a table; 'slot' is NULL and result is 0 */ \
^
lapi.c:632:7: note: in expansion of macro 'luaV_fastget'
if (luaV_fastget(L, t, n, slot, luaH_getint)) {
^
lvm.h:60:18: warning: left-hand operand of comma expression has no effect [-Wunused-value]
? (slot = NULL, 0) /* not a table; 'slot' is NULL and result is 0 */ \
^
lapi.c:632:7: note: in expansion of macro 'luaV_fastget'
if (luaV_fastget(L, t, n, slot, luaH_getint)) {
^
In file included from lapi.c:22:0:
lapi.c: In function 'lua_createtable':
lgc.h:111:12: error: 'global_State' has no member named 'GCdebt'
{ if (G(L)->GCdebt > 0) { pre; luaC_step(L); pos;}; \
^
lgc.h:115:26: note: in expansion of macro 'luaC_condGC'
#define luaC_checkGC(L) luaC_condGC(L,(void)0,(void)0)
^
lapi.c:691:3: note: in expansion of macro 'luaC_checkGC'
luaC_checkGC(L);
^
lapi.c: In function 'lua_getmetatable':
lapi.c:710:16: error: 'global_State' has no member named 'mt'
mt = G(L)->mt[ttnov(obj)];
^
lapi.c:713:13: error: 'NULL' undeclared (first use in this function)
if (mt != NULL) {
^
In file included from lstate.h:12:0,
from lapi.h:12,
from lapi.c:18:
lapi.c: In function 'lua_getuservalue':
lobject.h:379:19: error: 'Udata' has no member named 'user_'
io->value_ = iu->user_; settt_(io, iu->ttuv_); \
^
lapi.c:728:3: note: in expansion of macro 'getuservalue'
getuservalue(L, uvalue(o), L->top);
^
In file included from lapi.c:30:0:
lapi.c: In function 'auxsetstr':
lvm.h:82:14: error: 'NULL' undeclared (first use in this function)
? (slot = NULL, 0) \
^
lapi.c:746:7: note: in expansion of macro 'luaV_fastset'
if (luaV_fastset(L, t, str, slot, luaH_getstr, L->top - 1))
^
lvm.h:82:18: warning: left-hand operand of comma expression has no effect [-Wunused-value]
? (slot = NULL, 0) \
^
lapi.c:746:7: note: in expansion of macro 'luaV_fastset'
if (luaV_fastset(L, t, str, slot, luaH_getstr, L->top - 1))
^
In file included from lapi.h:11:0,
from lapi.c:18:
lapi.c: In function 'lua_setglobal':
lapi.c:759:28: error: 'global_State' has no member named 'l_registry'
Table *reg = hvalue(&G(L)->l_registry);
^
llimits.h:90:26: note: in definition of macro 'check_exp'
#define check_exp(c,e) (e)
^
lstate.h:213:19: note: in expansion of macro 'check_exp'
#define gco2t(o) check_exp((o)->tt == LUA_TTABLE, &((cast_u(o))->h))
^
lstate.h:203:19: note: in expansion of macro 'cast'
#define cast_u(o) cast(union GCUnion *, (o))
^
lstate.h:213:55: note: in expansion of macro 'cast_u'
#define gco2t(o) check_exp((o)->tt == LUA_TTABLE, &((cast_u(o))->h))
^
lobject.h:175:43: note: in expansion of macro 'gco2t'
#define hvalue(o) check_exp(ttistable(o), gco2t(val_(o).gc))
^
lobject.h:175:49: note: in expansion of macro 'val_'
#define hvalue(o) check_exp(ttistable(o), gco2t(val_(o).gc))
^
lapi.c:759:16: note: in expansion of macro 'hvalue'
Table *reg = hvalue(&G(L)->l_registry);
^
In file included from lapi.c:30:0:
lapi.c: In function 'lua_settable':
lvm.h:82:14: error: 'NULL' undeclared (first use in this function)
? (slot = NULL, 0) \
^
lvm.h:91:8: note: in expansion of macro 'luaV_fastset'
if (!luaV_fastset(L,t,k,slot,luaH_get,v)) \
^
lapi.c:770:3: note: in expansion of macro 'luaV_settable'
luaV_settable(L, t, L->top - 2, L->top - 1);
^
lvm.h:82:18: warning: left-hand operand of comma expression has no effect [-Wunused-value]
? (slot = NULL, 0) \
^
lvm.h:91:8: note: in expansion of macro 'luaV_fastset'
if (!luaV_fastset(L,t,k,slot,luaH_get,v)) \
^
lapi.c:770:3: note: in expansion of macro 'luaV_settable'
luaV_settable(L, t, L->top - 2, L->top - 1);
^
lapi.c: In function 'lua_seti':
lvm.h:82:14: error: 'NULL' undeclared (first use in this function)
? (slot = NULL, 0) \
^
lapi.c:788:7: note: in expansion of macro 'luaV_fastset'
if (luaV_fastset(L, t, n, slot, luaH_getint, L->top - 1))
^
lvm.h:82:18: warning: left-hand operand of comma expression has no effect [-Wunused-value]
? (slot = NULL, 0) \
^
lapi.c:788:7: note: in expansion of macro 'luaV_fastset'
if (luaV_fastset(L, t, n, slot, luaH_getint, L->top - 1))
^
lapi.c: In function 'lua_setmetatable':
lapi.c:852:10: error: 'NULL' undeclared (first use in this function)
mt = NULL;
^
lapi.c:875:11: error: 'global_State' has no member named 'mt'
G(L)->mt[ttnov(obj)] = mt;
^
In file included from lstate.h:12:0,
from lapi.h:12,
from lapi.c:18:
lapi.c: In function 'lua_setuservalue':
lobject.h:373:6: error: 'Udata' has no member named 'user_'
iu->user_ = io->value_; iu->ttuv_ = rttype(io); \
^
lapi.c:891:3: note: in expansion of macro 'setuservalue'
setuservalue(L, uvalue(o), L->top - 1);
^
lapi.c: In function 'lua_callk':
lapi.c:918:12: error: 'NULL' undeclared (first use in this function)
if (k != NULL && L->nny == 0) { /* need to prepare continuation? */
^
lapi.c: In function 'lua_pcallk':
lapi.c:951:3: error: unknown type name 'ptrdiff_t'
ptrdiff_t func;
^
lapi.c:966:12: error: 'NULL' undeclared (first use in this function)
if (k == NULL || L->nny > 0) { /* no continuation or no yieldable? */
^
lapi.c:968:5: 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:991:37: error: unknown type name 'lua_Reader'
LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data,
^
lapi.c:1015:37: error: unknown type name 'lua_Writer'
LUA_API int lua_dump (lua_State *L, lua_Writer writer, void *data, int strip) {
^
lapi.c: In function 'lua_gc':
lapi.c:1046:8: error: 'global_State' has no member named 'gcrunning'
g->gcrunning = 0;
^
lapi.c:1051:8: error: 'global_State' has no member named 'gcrunning'
g->gcrunning = 1;
^
In file included from lapi.h:11:0,
from lapi.c:18:
lstate.h:224:42: error: 'global_State' has no member named 'totalbytes'
#define gettotalbytes(g) cast(lu_mem, (g)->totalbytes + (g)->GCdebt)
^
llimits.h:111:27: note: in definition of macro 'cast'
#define cast(t, exp) ((t)(exp))
^
lapi.c:1060:13: note: in expansion of macro 'cast_int'
res = cast_int(gettotalbytes(g) >> 10);
^
lstate.h:224:26: note: in expansion of macro 'cast'
#define gettotalbytes(g) cast(lu_mem, (g)->totalbytes + (g)->GCdebt)
^
lapi.c:1060:22: note: in expansion of macro 'gettotalbytes'
res = cast_int(gettotalbytes(g) >> 10);
^
lstate.h:224:60: error: 'global_State' has no member named 'GCdebt'
#define gettotalbytes(g) cast(lu_mem, (g)->totalbytes + (g)->GCdebt)
^
llimits.h:111:27: note: in definition of macro 'cast'
#define cast(t, exp) ((t)(exp))
^
lapi.c:1060:13: note: in expansion of macro 'cast_int'
res = cast_int(gettotalbytes(g) >> 10);
^
lstate.h:224:26: note: in expansion of macro 'cast'
#define gettotalbytes(g) cast(lu_mem, (g)->totalbytes + (g)->GCdebt)
^
lapi.c:1060:22: note: in expansion of macro 'gettotalbytes'
res = cast_int(gettotalbytes(g) >> 10);
^
lstate.h:224:42: error: 'global_State' has no member named 'totalbytes'
#define gettotalbytes(g) cast(lu_mem, (g)->totalbytes + (g)->GCdebt)
^
llimits.h:111:27: note: in definition of macro 'cast'
#define cast(t, exp) ((t)(exp))
^
lapi.c:1064:13: note: in expansion of macro 'cast_int'
res = cast_int(gettotalbytes(g) & 0x3ff);
^
lstate.h:224:26: note: in expansion of macro 'cast'
#define gettotalbytes(g) cast(lu_mem, (g)->totalbytes + (g)->GCdebt)
^
lapi.c:1064:22: note: in expansion of macro 'gettotalbytes'
res = cast_int(gettotalbytes(g) & 0x3ff);
^
lstate.h:224:60: error: 'global_State' has no member named 'GCdebt'
#define gettotalbytes(g) cast(lu_mem, (g)->totalbytes + (g)->GCdebt)
^
llimits.h:111:27: note: in definition of macro 'cast'
#define cast(t, exp) ((t)(exp))
^
lapi.c:1064:13: note: in expansion of macro 'cast_int'
res = cast_int(gettotalbytes(g) & 0x3ff);
^
lstate.h:224:26: note: in expansion of macro 'cast'
#define gettotalbytes(g) cast(lu_mem, (g)->totalbytes + (g)->GCdebt)
^
lapi.c:1064:22: note: in expansion of macro 'gettotalbytes'
res = cast_int(gettotalbytes(g) & 0x3ff);
^
lapi.c:1069:29: error: 'global_State' has no member named 'gcrunning'
lu_byte oldrunning = g->gcrunning;
^
lapi.c:1070:8: error: 'global_State' has no member named 'gcrunning'
g->gcrunning = 1; /* allow GC to run */
^
lapi.c:1076:44: error: 'global_State' has no member named 'GCdebt'
debt = cast(l_mem, data) * 1024 + g->GCdebt;
^
In file included from lapi.c:22:0:
lgc.h:111:12: error: 'global_State' has no member named 'GCdebt'
{ if (G(L)->GCdebt > 0) { pre; luaC_step(L); pos;}; \
^
lgc.h:115:26: note: in expansion of macro 'luaC_condGC'
#define luaC_checkGC(L) luaC_condGC(L,(void)0,(void)0)
^
lapi.c:1078:9: note: in expansion of macro 'luaC_checkGC'
luaC_checkGC(L);
^
lapi.c:1080:8: error: 'global_State' has no member named 'gcrunning'
g->gcrunning = oldrunning; /* restore previous state */
^
lapi.c:1081:24: error: 'global_State' has no member named 'gcstate'
if (debt > 0 && g->gcstate == GCSpause) /* end of cycle? */
^
lapi.c:1086:14: error: 'global_State' has no member named 'gcpause'
res = g->gcpause;
^
lapi.c:1087:8: error: 'global_State' has no member named 'gcpause'
g->gcpause = data;
^
lapi.c:1091:14: error: 'global_State' has no member named 'gcstepmul'
res = g->gcstepmul;
^
lapi.c:1093:8: error: 'global_State' has no member named 'gcstepmul'
g->gcstepmul = data;
^
lapi.c:1097:14: error: 'global_State' has no member named 'gcrunning'
res = g->gcrunning;
^
lapi.c: In function 'lua_concat':
lapi.c:1146:5: warning: implicit declaration of function 'luaS_newlstr' [-Wimplicit-function-declaration]
setsvalue2s(L, L->top, luaS_newlstr(L, "", 0));
^
In file included from lstate.h:12:0,
from lapi.h:12,
from lapi.c:18:
lobject.h:226:39: warning: initialization makes pointer from integer without a cast [enabled by default]
{ TValue *io = (obj); TString *x_ = (x); \
^
lobject.h:272:21: note: in expansion of macro 'setsvalue'
#define setsvalue2s setsvalue
^
lapi.c:1146:5: note: in expansion of macro 'setsvalue2s'
setsvalue2s(L, L->top, luaS_newlstr(L, "", 0));
^
In file included from lapi.c:22:0:
lgc.h:111:12: error: 'global_State' has no member named 'GCdebt'
{ if (G(L)->GCdebt > 0) { pre; luaC_step(L); pos;}; \
^
lgc.h:115:26: note: in expansion of macro 'luaC_condGC'
#define luaC_checkGC(L) luaC_condGC(L,(void)0,(void)0)
^
lapi.c:1150:3: note: in expansion of macro 'luaC_checkGC'
luaC_checkGC(L);
^
lapi.c: At top level:
lapi.c:1165:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_getallocf'
LUA_API lua_Alloc lua_getallocf (lua_State *L, void **ud) {
^
lapi.c:1175:43: error: expected declaration specifiers or '...' before 'lua_Alloc'
LUA_API void lua_setallocf (lua_State *L, lua_Alloc f, void *ud) {
^
lapi.c:1183: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:1201:50: error: 'NULL' undeclared (first use in this function)
if (!(1 <= n && n <= f->nupvalues)) return NULL;
^
lapi.c: In function 'lua_getupvalue':
lapi.c:1223:17: error: 'NULL' undeclared (first use in this function)
TValue *val = NULL; /* to avoid warnings */
^
lapi.c: In function 'lua_setupvalue':
lapi.c:1237:17: error: 'NULL' undeclared (first use in this function)
TValue *val = NULL; /* to avoid warnings */
^
lapi.c: In function 'lua_upvalueid':
lapi.c:1271:39: error: 'NULL' undeclared (first use in this function)
return *getupvalref(L, fidx, n, NULL);
^
lapi.c: In function 'lua_upvaluejoin':
lapi.c:1290:43: error: 'NULL' undeclared (first use in this function)
UpVal **up2 = getupvalref(L, fidx2, n2, NULL);
^
lapi.c: In function 'lua_version':
lapi.c:148:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
lapi.c: In function 'index2addr':
lapi.c:84:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
lapi.c: In function 'lua_rawequal':
lapi.c:299:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
lapi.c: In function 'lua_tocfunction':
lapi.c:410:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
lapi.c: In function 'lua_touserdata':
lapi.c:420:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
lapi.c: In function 'lua_tothread':
lapi.c:426:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
lapi.c: In function 'lua_topointer':
lapi.c:441:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
lapi.c: In function 'lua_pushthread':
lapi.c:578:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
lapi.c: In function 'aux_upvalue':
lapi.c:1218:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
lapi.c: In function 'lua_upvalueid':
lapi.c:1283:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[2]: *** [: lapi.o] Error 1
make[2]: Leaving directory '/tmp/lua/src/lua-5.3.3/src'
make[1]: *** [Makefile:110: linux] Error 2
make[1]: Leaving directory '/tmp/lua/src/lua-5.3.3/src'
make: *** [Makefile:55: linux] Error 2
==> ERROR: A failure occurred in build().
Aborting...