Skip to content

Instantly share code, notes, and snippets.

@choxi
Created March 28, 2013 23:10
Show Gist options
  • Save choxi/c92b103763083dc767a4 to your computer and use it in GitHub Desktop.
Save choxi/c92b103763083dc767a4 to your computer and use it in GitHub Desktop.
webruby build error output
(master) % rake ~/code/webruby
ruby /Users/roshan/Code/webruby/modules/mrubymix/bin/mrubymix /Users/roshan/Code/webruby/app/app.rb /Users/roshan/Code/webruby/build/rbcode.rb
cd /Users/roshan/Code/webruby/modules/mruby && EMSCRIPTEN_DIR=/Users/roshan/Code/webruby/modules/emscripten MRUBY_CONFIG=/Users/roshan/Code/webruby/build_config.rb ./minirake /Users/roshan/Code/webruby/modules/mruby/build/emscripten/lib/libmruby.a
(in /Users/roshan/Code/webruby/modules/mruby)
AR build/emscripten/lib/libmruby.a
/Users/roshan/Code/webruby/modules/mruby/build/host/bin/mrbc -Bapp_irep -o/Users/roshan/Code/webruby/build/rbcode.c /Users/roshan/Code/webruby/build/rbcode.rb
cat /Users/roshan/Code/webruby/driver/driver.c /Users/roshan/Code/webruby/build/rbcode.c > /Users/roshan/Code/webruby/build/app.c
/Users/roshan/Code/webruby/modules/emscripten/emcc -Wall -Werror-implicit-function-declaration -I/Users/roshan/Code/webruby/modules/mruby/include /Users/roshan/Code/webruby/build/app.c -o /Users/roshan/Code/webruby/build/app.o
emcc: warning: -I or -L of an absolute path encountered. If this is to a local system header/library, it may cause problems (local system files make sense for compiling natively on your system, but not necessarily to JavaScript)
ruby scripts/gen_post.rb 2 /Users/roshan/Code/webruby/build/post.js
Creating new post js file!
ruby scripts/gen_gems_config.rb /Users/roshan/Code/webruby/build_config.rb /Users/roshan/Code/webruby/build/gem_library.js /Users/roshan/Code/webruby/build/gem_append.js /Users/roshan/Code/webruby/build/gem_test_library.js /Users/roshan/Code/webruby/build/gem_test_append.js /Users/roshan/Code/webruby/build/functions
/Users/roshan/Code/webruby/modules/emscripten/emcc /Users/roshan/Code/webruby/build/app.o /Users/roshan/Code/webruby/modules/mruby/build/emscripten/lib/libmruby.a -o /Users/roshan/Code/webruby/build/webruby.js --js-library /Users/roshan/Code/webruby/build/gem_library.js --post-js /Users/roshan/Code/webruby/build/gem_append.js --post-js /Users/roshan/Code/webruby/build/post.js -s EXPORTED_FUNCTIONS="['_mrb_open', '_mrb_close', '_webruby_internal_run', '_webruby_internal_run_bytecode', '_webruby_internal_run_source']" -O2 --closure 0
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Function.prototype.apply: Arguments list has wrong type
at Function.APPLY_PREPARE (native)
at Pointer_stringify (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at Object.render (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at walkBlock (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at Object.processItem (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at Object.process (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at Object.solve (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at JSify (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at JSify (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at runPhase (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:258:5)
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Function.prototype.apply: Arguments list has wrong type
at Function.APPLY_PREPARE (native)
at Pointer_stringify (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at Object.render (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at walkBlock (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at Object.processItem (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at Object.process (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at Object.solve (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at JSify (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at JSify (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at runPhase (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:258:5)
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Function.prototype.apply: Arguments list has wrong type
at Function.APPLY_PREPARE (native)
at Pointer_stringify (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at Object.render (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at walkBlock (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at Object.processItem (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at Object.process (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at Object.solve (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at JSify (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at JSify (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at runPhase (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:258:5)
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Function.prototype.apply: Arguments list has wrong type
at Function.APPLY_PREPARE (native)
at Pointer_stringify (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at Object.render (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at walkBlock (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at Object.processItem (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at Object.process (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at Object.solve (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at JSify (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at JSify (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at runPhase (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:258:5)
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Function.prototype.apply: Arguments list has wrong type
at Function.APPLY_PREPARE (native)
at Pointer_stringify (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at Object.render (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at walkBlock (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at Object.processItem (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at Object.process (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at Object.solve (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at JSify (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at JSify (eval at globalEval (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:105:8))
at runPhase (/Users/roshan/Code/webruby/modules/emscripten/src/compiler.js:258:5)
Traceback (most recent call last):
File "/Users/roshan/Code/webruby/modules/emscripten/emscripten.py", line 727, in <module>
_main(environ=os.environ)
File "/Users/roshan/Code/webruby/modules/emscripten/emscripten.py", line 715, in _main
temp_files.run_and_clean(lambda: main(
File "/Users/roshan/Code/webruby/modules/emscripten/tools/tempfiles.py", line 38, in run_and_clean
return func()
File "/Users/roshan/Code/webruby/modules/emscripten/emscripten.py", line 723, in <lambda>
DEBUG_CACHE=DEBUG_CACHE,
File "/Users/roshan/Code/webruby/modules/emscripten/emscripten.py", line 613, in main
jcache=jcache, temp_files=temp_files, DEBUG=DEBUG, DEBUG_CACHE=DEBUG_CACHE)
File "/Users/roshan/Code/webruby/modules/emscripten/emscripten.py", line 254, in emscript
assert len(output) == 2, 'Did not receive forwarded data in an output - process failed? We only got: ' + output[0][-3000:]
AssertionError: Did not receive forwarded data in an output - process failed? We only got:
Traceback (most recent call last):
File "/Users/roshan/Code/webruby/modules/emscripten/emcc", line 1294, in <module>
final = shared.Building.emscripten(final, append_ext=False, extra_args=extra_args)
File "/Users/roshan/Code/webruby/modules/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:
rake aborted!
Command failed with status (1): [/Users/roshan/Code/webruby/modules/emscrip...]
/Users/roshan/Code/webruby/rakelib/build.rake:18:in `block in <top (required)>'
/Users/roshan/.rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:in `eval'
/Users/roshan/.rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => default => js => /Users/roshan/Code/webruby/build/webruby.js
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment