Build wasm
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript, sqlite, wasm
- Área
- build-system, databases
Línea de trabajo
Start by reproducing the make command shown in the issue with the reported SQLite amalgamation and emcc version. Inspect src/api.js, src/exported_functions.json, and src/exported_runtime_methods.json alongside the Closure Compiler errors; done means the build completes successfully with the custom extension.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hi there thanks for this great project!
I am building the Make File to load a custom SQLite extension.
Unfortunately the build fails. I have not modified the make file yet.
I think its emcc that's failing.
emcc --memory-init-file 0 -s RESERVED_FUNCTION_POINTERS=64 -s ALLOW_TABLE_GROWTH=1 -s EXPORTED_FUNCTIONS=@src/exported_functions.json -s EXPORTED_RUNTIME_METHODS=@src/exported_runtime_methods.json -s SINGLE_FILE=0 -s NODEJS_CATCH_EXIT=0 -s NODEJS_CATCH_REJECTION=0 -Oz -flto --closure 1 -s WASM=0 out/sqlite3.bc out/extension-functions.bc --pre-js src/api.js -o dist/sql-asm.js
building:ERROR: Closure compiler run failed:
building:ERROR: /tmp/emscripten_temp_1_4iazly/sql-asm.jso4.js:239:30: WARNING - [JSC_TYPE_PARSE_ERROR] Bad type annotation. expected closing } See https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler for more information.
239| @return {Database.SqlValue[]} One row of result
^
/tmp/emscripten_temp_1_4iazly/sql-asm.jso4.js:282:19: WARNING - [JSC_TYPE_PARSE_ERROR] Bad type annotation. expected closing } See https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler for more information.
282| @return {string[]} The names of the columns
^
/tmp/emscripten_temp_1_4iazly/sql-asm.jso4.js:438:29: WARNING - [JSC_TYPE_PARSE_ERROR] Bad type annotation. expected closing } See https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler for more information.
438| @param {Database.SqlValue[]} values
^
/tmp/emscripten_temp_1_4iazly/sql-asm.jso4.js:438:29: WARNING - [JSC_TYPE_PARSE_ERROR] Bad type annotation. expecting a variable name in a @param tag. See https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler for more information.
438| @param {Database.SqlValue[]} values
^
/tmp/emscripten_temp_1_4iazly/sql-asm.jso4.js:588:20: WARNING - [JSC_TYPE_PARSE_ERROR] Bad type annotation. expected closing } See https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler for more information.
588| * @param {number[]} data An array of bytes representing
^
/tmp/emscripten_temp_1_4iazly/sql-asm.jso4.js:588:20: WARNING - [JSC_TYPE_PARSE_ERROR] Bad type annotation. expecting a variable name in a @param tag. See https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler for more information.
588| * @param {number[]} data An array of bytes representing
^
/tmp/emscripten_temp_1_4iazly/sql-asm.jso4.js:685:39: WARNING - [JSC_TYPE_PARSE_ERROR] Bad type annotation. expected closing } See https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler for more information.
685| * @return {Database.QueryExecResult[]} The results of each statement
^
/tmp/emscripten_temp_1_4iazly/sql-asm.jso4.js:736:42: WARNING - [JSC_TYPE_PARSE_ERROR] Bad type annotation. missing closing ] See https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler for more information.
736| @param {Statement.BindParams} [params=[]] Parameters to bind to the query
^
/tmp/emscripten_temp_1_4iazly/sql-asm.jso4.js:927:22: WARNING - [JSC_TYPE_PARSE_ERROR] Bad type annotation. missing opening ( See https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler for more information.
927| @param {function} func the actual function to be executed.
^
/tmp/emscripten_temp_1_4iazly/sql-asm.jso4.js:963:56: WARNING - [JSC_TYPE_PARSE_ERROR] Bad type annotation. missing closing ] See https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler for more information.
963| @param {function(): T} [aggregateFunctions.init = ()=>null]
^
/tmp/emscripten_temp_1_4iazly/sql-asm.jso4.js:971:63: WARNING - [JSC_TYPE_PARSE_ERROR] Bad type annotation. missing closing ] See https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler for more information.
971| @param {function(T): any} [aggregateFunctions.finalize = (state)=>state]
^
/tmp/emscripten_temp_1_4iazly/sql-asm.jso4.js:359:15: ERROR - [JSC_UNDEFINED_VARIABLE] variable allocate is undeclared
359| var strptr = allocate(bytes, ALLOC_NORMAL);
^^^^^^^^
/tmp/emscripten_temp_1_4iazly/sql-asm.jso4.js:359:31: ERROR - [JSC_UNDEFINED_VARIABLE] variable ALLOC_NORMAL is undeclared
359| var strptr = allocate(bytes, ALLOC_NORMAL);
^^^^^^^^^^^^
/tmp/emscripten_temp_1_4iazly/sql-asm.jso4.js:693:20: ERROR - [JSC_UNDEFINED_VARIABLE] variable allocateUTF8OnStack is undeclared
693| var nextSqlPtr = allocateUTF8OnStack(sql);
^^^^^^^^^^^^^^^^^^^
/tmp/emscripten_temp_1_4iazly/sql-asm.jso4.js:812:40: ERROR - [JSC_UNDEFINED_VARIABLE] variable removeFunction is undeclared
812| Object.values(this.functions).forEach(removeFunction);
^^^^^^^^^^^^^^
/tmp/emscripten_temp_1_4iazly/sql-asm.jso4.js:945:17: ERROR - [JSC_UNDEFINED_VARIABLE] variable addFunction is undeclared
945| var func_ptr = addFunction(wrapped_func, "viii");
^^^^^^^^^^^
5 error(s), 11 warning(s)
I'm building this version of sqlite https://www.sqlite.org/2022/sqlite-amalgamation-3390300.zip
on WSL and installed the latest version of emcc
Any clues on what's going wrong?
- Lenguaje dominante
- JavaScript
- Estrellas
- 13.7k
- Forks
- 1.1k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de sql-js/sql.js
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
Add the WebWorker API docs Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
Todos los issues de sql-js/sql.js
Issues similares
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
apache/cloudstack#14222 ·
-
Browser Waiting for: Product Owner
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
getsentry/sentry-javascript#24577 · 1 comentario ·
-
curation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
amponce/archive-movie-browser#186 ·
-
light
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
aemdemos/patients-stryker#253 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
clerk/javascript#9852 ·