Skip to content

Instantly share code, notes, and snippets.

@nickdesaulniers
Created June 5, 2013 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickdesaulniers/5716003 to your computer and use it in GitHub Desktop.
Save nickdesaulniers/5716003 to your computer and use it in GitHub Desktop.
Stack trace `emcc hello_world.bc`
undefined:175
return typeData.flatSize*8;
^
TypeError: Cannot read property 'flatSize' of undefined
at getBits (eval at globalEval (/Users/Nicholas/mozilla/emscripten/src/compiler.js:105:8), <anonymous>:175:20)
at isIllegalType (eval at globalEval (/Users/Nicholas/mozilla/emscripten/src/compiler.js:105:8), <anonymous>:181:14)
at parseNumerical (eval at globalEval (/Users/Nicholas/mozilla/emscripten/src/compiler.js:105:8), <anonymous>:809:39)
at parseParamTokens (eval at globalEval (/Users/Nicholas/mozilla/emscripten/src/compiler.js:105:8), <anonymous>:391:28)
at Object.substrate.addActor.processItem (eval at globalEval (/Users/Nicholas/mozilla/emscripten/src/compiler.js:105:8), <anonymous>:553:20)
at Object._lineSplitter [as processItem] (eval at globalEval (/Users/Nicholas/mozilla/emscripten/src/compiler.js:105:8), <anonymous>:118:35)
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 intertyper (eval at globalEval (/Users/Nicholas/mozilla/emscripten/src/compiler.js:105:8), <anonymous>:1028:20)
at runPhase (/Users/Nicholas/mozilla/emscripten/src/compiler.js:248:22)
Traceback (most recent call last):
File "/Users/Nicholas/mozilla/emscripten/emscripten.py", line 688, in <module>
_main(environ=os.environ)
File "/Users/Nicholas/mozilla/emscripten/emscripten.py", line 676, 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 684, in <lambda>
DEBUG_CACHE=DEBUG_CACHE,
File "/Users/Nicholas/mozilla/emscripten/emscripten.py", line 574, in main
jcache=jcache, temp_files=temp_files, DEBUG=DEBUG, DEBUG_CACHE=DEBUG_CACHE)
File "/Users/Nicholas/mozilla/emscripten/emscripten.py", line 160, in emscript
pre, forwarded_data = out.split('//FORWARDED_DATA:')
ValueError: need more than 1 value to unpack
Traceback (most recent call last):
File "/usr/local/bin/emcc", line 1239, in <module>
final = shared.Building.emscripten(final, append_ext=False, extra_args=extra_args)
File "/Users/Nicholas/mozilla/emscripten/tools/shared.py", line 947, 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