openresty / luajit2

OpenResty's Branch of LuaJIT 2
https://luajit.org/luajit.html
Other
1.2k stars 193 forks source link

lj_ccall.c:1192:5: error: use of undeclared identifier 'CCALL_MAXSTACK' #208

Open pkubaj opened 9 months ago

pkubaj commented 9 months ago

The latest version (20230911) fails to build on ppc64 / ppc64le:

lj_ccall.c:1192:5: error: use of undeclared identifier 'CCALL_MAXSTACK'
    CCALL_HANDLE_REGARG  /* Handle register arguments. */
    ^
lj_ccall.c:441:16: note: expanded from macro 'CCALL_HANDLE_REGARG'
     if (nsp > CCALL_MAXSTACK) { \
               ^

It looks like this is due to 58b44276fafe054fce5b14e4bffdcc5e19f89576, which removed CCALL_MAXSTACK.