sql-js / sql-js/sql.js

'TypeError: (intermediate value) is not a function' when compiling

オープン
#229 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
JavaScript
スター
13.7k
フォーク
1.1k
PR マージ指標
30日以内にマージされた PR はありません

説明

When I compile via emmake make I get the following error:

emcc --memory-init-file 0 -O3 -s INLINING_LIMIT=50 -s RESERVED_FUNCTION_POINTERS=64 -s EXPORTED_FUNCTIONS=@exported_functions -s EXTRA_EXPORTED_RUNTIME_METHODS=@exported_runtime_methods c/extension-functions.bc c/sqlite3.bc --post-js js/api.js -o js/sql-optimized-raw.js ;\


/usr/lib/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js:272
       throw new JS_Parse_Error(message, line, col, pos);
       ^
TypeError: (intermediate value) is not a function
   at new JS_Parse_Error (/usr/lib/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js:261:21)
   at js_error (/usr/lib/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js:272:15)
   at croak (/usr/lib/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js:742:17)
   at token_error (/usr/lib/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js:749:17)
   at unexpected (/usr/lib/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js:755:17)
   at Object.semicolon (/usr/lib/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js:775:51)
   at prog1 (/usr/lib/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js:1314:29)
   at simple_statement (/usr/lib/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js:906:35)
   at /usr/lib/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js:816:35
   at /usr/lib/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js:1297:32
Traceback (most recent call last):
 File "/usr/lib/emscripten/emcc.py", line 2791, in <module>
   run()
 File "/usr/lib/emscripten/emcc.py", line 1846, in run
   optimizer.flush()
 File "/usr/lib/emscripten/emcc.py", line 239, in flush
   self.run_passes(chunks[0], title, just_split=False, just_concat=False)
 File "/usr/lib/emscripten/emcc.py", line 272, in run_passes
   just_concat=just_concat)
 File "/usr/lib/emscripten/tools/shared.py", line 2150, in js_optimizer
   ret = js_optimizer.run(filename, passes, NODE_JS, debug, extra_info, just_split, just_concat)
 File "/usr/lib/emscripten/tools/js_optimizer.py", line 568, in run
   return temp_files.run_and_clean(lambda: run_on_js(filename, passes, js_engine, source_map, extra_info, just_split, just_concat))
 File "/usr/lib/emscripten/tools/tempfiles.py", line 79, in run_and_clean
   return func()
 File "/usr/lib/emscripten/tools/js_optimizer.py", line 568, in <lambda>
   return temp_files.run_and_clean(lambda: run_on_js(filename, passes, js_engine, source_map, extra_info, just_split, just_concat))
 File "/usr/lib/emscripten/tools/js_optimizer.py", line 511, in run_on_js
   assert proc.returncode == 0
AssertionError
make: *** [Makefile:24: js/sql-optimized-raw.js] Fehler 1

emscripten v.1.37.28
CoffeeScript version 2.1.1

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Start by reproducing emmake make with the reported Emscripten 1.37.28 and CoffeeScript 2.1.1 versions, then inspect the command at Makefile:24 and the UglifyJS parse error. Done means the compilation completes without the TypeError or optimizer assertion.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, sqlite, wasm
領域
build-system
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。