Fastcomp should reduce setjmp to emscripten_setjmp, and so forth. What shows up in the console when you build with EMCC_DEBUG=1 in the env? (It should say if fastcomp is being used, etc.).
- Alon On Fri, Jan 2, 2015 at 6:00 AM, Steffen Köhler < [email protected]> wrote: > Update: > In the meantime I discovered that the Ubuntu package still contained an > older emscripten version, so I removed and manually installed the latest > SDK (1.28). Also I removed all optimizations from my Makefile and made sure > that really the fastcomp compiler is used, but nevertheless I get a > compilation warning > > emcc -O0 -Wall -DLUA_USE_POSIX -o luac.js luac.o print.o liblua.a > warning: unresolved symbol: _longjmp > warning: unresolved symbol: _setjmp > > and a crash when try to test it in nodejs > > nodejs luac.js dummy.luamissing function: _setjmp > -1 > -1 > > /media/ram/lua_c/lua-5.1.5/src/luac.js:84 > throw ex; > ^ > abort() at Error > at jsStackTrace (/media/ram/lua_c/lua-5.1.5/src/luac.js:987:13) > at stackTrace (/media/ram/lua_c/lua-5.1.5/src/luac.js:1004:22) > at abort (/media/ram/lua_c/lua-5.1.5/src/luac.js:49798:25) > at __setjmp (/media/ram/lua_c/lua-5.1.5/src/luac.js:6215:52) > at _luaD_rawrunprotected > (/media/ram/lua_c/lua-5.1.5/src/luac.js:10970:9) > at _lua_newstate (/media/ram/lua_c/lua-5.1.5/src/luac.js:22045:10) > at _luaL_newstate (/media/ram/lua_c/lua-5.1.5/src/luac.js:30546:8) > at _main (/media/ram/lua_c/lua-5.1.5/src/luac.js:6631:9) > at Object.asm._main (/media/ram/lua_c/lua-5.1.5/src/luac.js:47916:19) > at Object.callMain (/media/ram/lua_c/lua-5.1.5/src/luac.js:49674:30) > > The program I try to compile is just a command line tool, it's the well > known Lua (5.1), but not the interpreter, it's the compiler (luac) instead. > I've also seen the Lua example and wonder why the interpreter is working > smoothly while the compiler fails, as they both probably have a very > similar if not even the same build progress. ?!? > > Any idea is highly appreciated :-) > > best regards > > Steffen > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
