Created
June 5, 2013 22:10
-
-
Save nickdesaulniers/5717746 to your computer and use it in GitHub Desktop.
updated stack trace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EMCC_DEBUG=1 emcc hello_world.bc -s EXPORTED_FUNCTIONS="['_meaning_of_life']" | |
DEBUG emcc: invocation: /usr/local/bin/emcc hello_world.bc -s EXPORTED_FUNCTIONS=['_meaning_of_life'] | |
WARNING root: LLVM version appears incorrect (seeing "Apple LLVM version 4.2 (clang-425.0.27) (based on LLVM 3.2svn)", expected "clang version 3.2") | |
INFO root: (Emscripten: Running sanity checks) | |
DEBUG emcc: compiling to bitcode | |
DEBUG emcc: copying bitcode file: hello_world.bc | |
DEBUG emcc: will generate JavaScript | |
DEBUG emcc: considering libcxx: we need set([]) and have set([]) | |
DEBUG emcc: considering libcextra: we need set([]) and have set([]) | |
DEBUG emcc: considering libcxxabi: we need set([]) and have set([]) | |
DEBUG emcc: considering sdl: we need set([]) and have set([]) | |
DEBUG emcc: considering libc: we need set([]) and have set([]) | |
DEBUG emcc: saving intermediate processing steps to /tmp/emscripten_temp | |
DEBUG root: emcc: LLVM opts: ['-internalize', '-internalize-public-api-list=meaning_of_life', '-globaldce'] | |
DEBUG emcc: step took 0.01 seconds | |
DEBUG emcc: step took 0.01 seconds | |
DEBUG emcc: LLVM => JS | |
emscript: ll=>js | |
emscript: scan took 0.000232934951782 seconds | |
emscript: split took 0.000170946121216 seconds | |
undefined:191 | |
while (tokens[openBrace].text.substr(-1) != '{') openBrace --; | |
^ | |
TypeError: Cannot read property 'text' of undefined | |
at makeToken (eval at globalEval (/Users/Nicholas/mozilla/emscripten/src/compiler.js:105:8), <anonymous>:191:35) | |
at Object._tokenizer [as processItem] (eval at globalEval (/Users/Nicholas/mozilla/emscripten/src/compiler.js:105:8), <anonymous>:225:15) | |
at tokenize (eval at globalEval (/Users/Nicholas/mozilla/emscripten/src/compiler.js:105:8), <anonymous>:9:20) | |
at addTypeInternal (eval at globalEval (/Users/Nicholas/mozilla/emscripten/src/compiler.js:105:8), <anonymous>:930:32) | |
at addType (eval at globalEval (/Users/Nicholas/mozilla/emscripten/src/compiler.js:105:8), <anonymous>:950:5) | |
at Object.substrate.addActor.processItem (eval at globalEval (/Users/Nicholas/mozilla/emscripten/src/compiler.js:105:8), <anonymous>:965:21) | |
at Object.Actor.process (eval at globalEval (/Users/Nicholas/mozilla/emscripten/src/compiler.js:105:8), <anonymous>:248:26) | |
at Object.Substrate.solve (eval at globalEval (/Users/Nicholas/mozilla/emscripten/src/compiler.js:105:8), <anonymous>:184:25) | |
at analyzer (eval at globalEval (/Users/Nicholas/mozilla/emscripten/src/compiler.js:105:8), <anonymous>:1693:20) | |
at JSify (eval at globalEval (/Users/Nicholas/mozilla/emscripten/src/compiler.js:105:8), <anonymous>:69:5) | |
Traceback (most recent call last): | |
File "/Users/Nicholas/mozilla/emscripten/emscripten.py", line 806, in <module> | |
_main(environ=os.environ) | |
File "/Users/Nicholas/mozilla/emscripten/emscripten.py", line 794, in _main | |
temp_files.run_and_clean(lambda: main( | |
File "/Users/Nicholas/mozilla/emscripten/tools/tempfiles.py", line 38, in run_and_clean | |
return func() | |
File "/Users/Nicholas/mozilla/emscripten/emscripten.py", line 802, in <lambda> | |
DEBUG_CACHE=DEBUG_CACHE, | |
File "/Users/Nicholas/mozilla/emscripten/emscripten.py", line 688, in main | |
jcache=jcache, temp_files=temp_files, DEBUG=DEBUG, DEBUG_CACHE=DEBUG_CACHE) | |
File "/Users/Nicholas/mozilla/emscripten/emscripten.py", line 176, in emscript | |
assert '//FORWARDED_DATA:' in out, 'Did not receive forwarded data in pre output - process failed?' | |
AssertionError: Did not receive forwarded data in pre output - process failed? | |
Traceback (most recent call last): | |
File "/usr/local/bin/emcc", line 1436, in <module> | |
final = shared.Building.emscripten(final, append_ext=False, extra_args=extra_args) | |
File "/Users/Nicholas/mozilla/emscripten/tools/shared.py", line 1088, in emscripten | |
assert os.path.exists(filename + '.o.js') and len(open(filename + '.o.js', 'r').read()) > 0, 'Emscripten failed to generate .js: ' + str(compiler_output) | |
AssertionError: Emscripten failed to generate .js: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment