moonjit / moonjit

Just-In-Time Compiler for the Lua Programming language. Fork of LuaJIT to continue development. This project does not have an active maintainer, see https://twitter.com/siddhesh_p/status/1308594269502885889?s=20 for more detail.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when building on PowerPC

mariodirenzo opened this issue · comments

Hi all,

I haven't been able to build MoonJIT on PowerPC after the commit 5fcd95992a350c1d2bb41054506417fbbc15820e has been applied.
In particular, the compilation fails with

lj_ccallback.c: In function 'callback_mcode_init':
lj_ccallback.c:229:3: warning: implicit declaration of function 'lua_assert'; did you mean 'lua_insert'? [-Wimplicit-function-declaration]
   lua_assert(CALLBACK_MCODE_SIZE == 4096);
   ^~~~~~~~~~
   lua_insert
lj_ccallback.c: In function 'callback_mcode_init':
lj_ccallback.c:229:3: warning: implicit declaration of function 'lua_assert'; did you mean 'lua_insert'? [-Wimplicit-function-declaration]
   lua_assert(CALLBACK_MCODE_SIZE == 4096);
   ^~~~~~~~~~
   lua_insert
[...]
libluajit.a(lj_ccallback.o): In function `lj_ccallback_new':
lj_ccallback.c:(.text+0xae0): undefined reference to `lua_assert'