-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Hello,
I try to recompile sql.js by make, compiled sql.js throw error when it is executed.
Like,
$ node ../js/sql.js
Assertion failed: undefined:
Error
at abort (/dev/sql.js/js/sql.js:399:32)
at assert (/dev/sql.js/js/sql.js:405:5)
at Object.FS.init (/dev/sql.js/js/sql.js:2768:9)
at __ATINIT__.unshift.func (/dev/sql.js/js/sql.js:4108:93)
at callRuntimeCallbacks (/dev/sql.js/js/sql.js:694:7)
at initRuntime (/dev/sql.js/js/sql.js:702:3)
at Object.<anonymous> (/dev/sql.js/js/sql.js:5732:1)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
/dev/sql.js/js/sql.js:401
throw "Assertion: " + text;
^
Assertion: Assertion failed: undefined
Condition is written in below:
-
OS, Mac OS X 10.7.5
-
clang and llvm are 3.2 from macports
-
emscripten is latest master, pull from github at 2013-03-19 21:00:00 at UTC
-
compile option is same with written in Makefile,
~/Dev/emscripten/emcc -O2 -DSQLITE_DISABLE_LFS -DLONGDOUBLE_TYPE=double -DSQLITE_INT64_TYPE="long long int" -DSQLITE_THREADSAFE=0 sqlite3.c main.c --pre-js ../js/pre.js --post-js ../js/post.js -o ../js/sql.js -s EXPORTED_FUNCTIONS="['_sqlite3_open', '_sqlite3_close', '_sqlite3_exec']"
I also encountered with same error, at
https://github.com/gurjeet/sql.js
which is forked long time before, so there are capability of emscripten's issue...
I like both sql.js and emscripten's potential, It is glad to if any helps are given.
Regards,