luvit / lit

Toolkit for developing, sharing, and running luvit/lua programs and libraries.
http://lit.luvit.io/
Apache License 2.0
245 stars 58 forks source link

"unprotected error in call to Lua API" with custom binary #313

Closed sjkim04 closed 2 years ago

sjkim04 commented 2 years ago

I have built a custom lit due to the official binaries not including ARM versions. (Running a Raspberry Pi OS with RPi4, armhf) The build went perfectly fine, but when I run make test, the program spits an error:

sjkim04@raspberrypi:~/Desktop/luvi $ make test
cmake --build build -- -j4
gmake[1]: Entering directory '/home/sjkim04/Desktop/luvi/build'
gmake[2]: Entering directory '/home/sjkim04/Desktop/luvi/build'
gmake[3]: Entering directory '/home/sjkim04/Desktop/luvi/build'
gmake[3]: Entering directory '/home/sjkim04/Desktop/luvi/build'
gmake[3]: Entering directory '/home/sjkim04/Desktop/luvi/build'
gmake[3]: Entering directory '/home/sjkim04/Desktop/luvi/build'
gmake[3]: Leaving directory '/home/sjkim04/Desktop/luvi/build'
gmake[3]: Leaving directory '/home/sjkim04/Desktop/luvi/build'
gmake[3]: Leaving directory '/home/sjkim04/Desktop/luvi/build'
gmake[3]: Leaving directory '/home/sjkim04/Desktop/luvi/build'
[  3%] Built target LPEGLIB
[  8%] Built target openssl
gmake[3]: Entering directory '/home/sjkim04/Desktop/luvi/build'
[ 23%] Built target pcre
gmake[3]: Entering directory '/home/sjkim04/Desktop/luvi/build'
gmake[3]: Entering directory '/home/sjkim04/Desktop/luvi/build'
[ 48%] Built target uv_a
gmake[3]: Leaving directory '/home/sjkim04/Desktop/luvi/build'
gmake[3]: Entering directory '/home/sjkim04/Desktop/luvi/build'
gmake[3]: Leaving directory '/home/sjkim04/Desktop/luvi/build'
gmake[3]: Leaving directory '/home/sjkim04/Desktop/luvi/build'
[ 49%] Built target minilua
gmake[3]: Entering directory '/home/sjkim04/Desktop/luvi/build'
gmake[3]: Leaving directory '/home/sjkim04/Desktop/luvi/build'
[ 51%] Built target lrexlib
gmake[3]: Entering directory '/home/sjkim04/Desktop/luvi/build'
gmake[3]: Leaving directory '/home/sjkim04/Desktop/luvi/build'
[ 53%] Built target pcreposix
[ 76%] Built target lua_openssl
[ 80%] Built target buildvm
gmake[3]: Leaving directory '/home/sjkim04/Desktop/luvi/build'
gmake[3]: Entering directory '/home/sjkim04/Desktop/luvi/build'
[ 81%] Built target libluv_a
gmake[3]: Leaving directory '/home/sjkim04/Desktop/luvi/build'
[ 87%] Built target luajit-5.1
gmake[3]: Entering directory '/home/sjkim04/Desktop/luvi/build'
gmake[3]: Leaving directory '/home/sjkim04/Desktop/luvi/build'
[ 95%] Built target luajit
gmake[3]: Entering directory '/home/sjkim04/Desktop/luvi/build'
gmake[3]: Leaving directory '/home/sjkim04/Desktop/luvi/build'
[100%] Built target luvi
gmake[2]: Leaving directory '/home/sjkim04/Desktop/luvi/build'
gmake[1]: Leaving directory '/home/sjkim04/Desktop/luvi/build'
rm -f test.bin
build/luvi samples/test.app -- 1 2 3 4
PANIC: unprotected error in call to Lua API (8)
make: *** [Makefile:92: test] Error 1

I have searched the internet, and this error seems to be caused because of outdated libraries, but none of those provided ways to actually fix this for this repo. What can I do?

squeek502 commented 2 years ago

Accidental duplicate of https://github.com/luvit/lit/issues/312