Created
April 23, 2012 14:56
-
-
Save ashleyw/2471449 to your computer and use it in GitHub Desktop.
Building mruby w/ Emscripten
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
make -C mrblib --no-print-directory CC=/Users/ashley/Developer/emscripten/emcc LL=/Users/ashley/Developer/emscripten/emcc | |
make -C ../tools/mrbc --no-print-directory CC=/Users/ashley/Developer/emscripten/emcc LL=/Users/ashley/Developer/emscripten/emcc | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/../tools/mrbc/mrbc.c -o ../../src/../tools/mrbc/mrbc.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/array.c -o ../../src/array.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
../../src/array.c:922:9: warning: variable 'times' is uninitialized when used here [-Wuninitialized] | |
while(times--) { | |
^~~~~ | |
../../src/array.c:916:16: note: initialize the variable 'times' to silence this warning | |
mrb_int times; | |
^ | |
= 0 | |
1 warning generated. | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/ascii.c -o ../../src/ascii.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/cdump.c -o ../../src/cdump.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/class.c -o ../../src/class.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
../../src/class.c:26:1: warning: unused variable 'old_d_flags' [-Wunused-variable] | |
KHASH_MAP_INIT_INT(mt, struct RProc*); | |
^ | |
../../src/ritehash.h:200:5: note: expanded from: | |
KHASH_INIT(name, uint32_t, khval_t, 1, kh_int_hash_func, kh_int_hash_equal) | |
^ | |
../../src/ritehash.h:111:14: note: expanded from: | |
uint8_t *old_d_flags = h->d_flags; \ | |
^ | |
../../src/class.c:27:1: warning: unused variable 'old_d_flags' [-Wunused-variable] | |
KHASH_MAP_INIT_INT(iv, mrb_value); | |
^ | |
../../src/ritehash.h:200:5: note: expanded from: | |
KHASH_INIT(name, uint32_t, khval_t, 1, kh_int_hash_func, kh_int_hash_equal) | |
^ | |
../../src/ritehash.h:111:14: note: expanded from: | |
uint8_t *old_d_flags = h->d_flags; \ | |
^ | |
../../src/class.c:292:7: warning: unused variable 'ret' [-Wunused-variable] | |
int ret; | |
^ | |
../../src/class.c:320:7: warning: unused variable 'ret' [-Wunused-variable] | |
int ret; | |
^ | |
../../src/class.c:942:15: warning: 25 enumeration values not handled in switch: 'MRB_TT_FALSE', 'MRB_TT_FREE', | |
'MRB_TT_TRUE'... [-Wswitch-enum] | |
switch (mrb_type(klass)) { | |
^ | |
../../src/../include/mruby.h:74:23: note: expanded from: | |
#define mrb_type(o) (o).tt | |
^ | |
5 warnings generated. | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/codegen.c -o ../../src/codegen.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/compar.c -o ../../src/compar.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/crc.c -o ../../src/crc.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/dump.c -o ../../src/dump.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/encoding.c -o ../../src/encoding.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
../../src/encoding.c:643:5: warning: implicit truncation from 'unsigned int' to bitfield changes value from | |
4293919743 to 1049599 [-Wconstant-conversion] | |
ENCODING_SET_INLINED(obj, idx); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../../src/encoding.h:43:24: note: expanded from: | |
RBASIC(obj)->flags &= ~ENCODING_MASK;\ | |
^ | |
../../src/encoding.c:646:3: warning: implicit truncation from 'unsigned int' to bitfield changes value from | |
4293919743 to 1049599 [-Wconstant-conversion] | |
ENCODING_SET_INLINED(obj, ENCODING_INLINE_MAX); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../../src/encoding.h:43:24: note: expanded from: | |
RBASIC(obj)->flags &= ~ENCODING_MASK;\ | |
^ | |
../../src/encoding.c:900:3: warning: implicit truncation from 'unsigned int' to bitfield changes value from | |
4293919743 to 1049599 [-Wconstant-conversion] | |
ENCODING_CODERANGE_SET(mrb, str, mrb_usascii_encindex(), ENC_CODERANGE_7BIT); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../../src/encoding.h:89:9: note: expanded from: | |
ENCODING_SET(mrb, mrb_encoding_coderange_obj, (encindex)); \ | |
^ | |
../../src/encoding.h:50:9: note: expanded from: | |
ENCODING_SET_INLINED(mrb_encoding_set_obj, encoding_set_enc_index); \ | |
^ | |
../../src/encoding.h:43:24: note: expanded from: | |
RBASIC(obj)->flags &= ~ENCODING_MASK;\ | |
^ | |
../../src/encoding.c:88:1: warning: unused function 'enc_memsize' [-Wunused-function] | |
enc_memsize(mrb_state *mrb, const void *p) | |
^ | |
4 warnings generated. | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/enum.c -o ../../src/enum.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/error.c -o ../../src/error.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
../../src/error.c:409:1: warning: unused function 'mrb_exc_c_exception' [-Wunused-function] | |
mrb_exc_c_exception(mrb_state *mrb, mrb_value exc) | |
^ | |
../../src/error.c:419:1: warning: unused function 'mrb_exc_exception' [-Wunused-function] | |
mrb_exc_exception(mrb_state *mrb, mrb_value exc) | |
^ | |
2 warnings generated. | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/etc.c -o ../../src/etc.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
../../src/etc.c:34:14: warning: assigning to 'struct mrb_data_type *' from 'const struct mrb_data_type *' | |
discards qualifiers [-Wincompatible-pointer-types] | |
data->type = type; | |
^ ~~~~ | |
1 warning generated. | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/gc.c -o ../../src/gc.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
../../src/gc.c:291:11: warning: 13 enumeration values not handled in switch: 'MRB_TT_FALSE', 'MRB_TT_FREE', | |
'MRB_TT_TRUE'... [-Wswitch-enum] | |
switch (obj->tt) { | |
^ | |
../../src/gc.c:387:11: warning: 9 enumeration values not handled in switch: 'MRB_TT_FALSE', 'MRB_TT_FREE', | |
'MRB_TT_UNDEF'... [-Wswitch-enum] | |
switch (obj->tt) { | |
^ | |
../../src/gc.c:487:11: warning: 13 enumeration values not handled in switch: 'MRB_TT_FALSE', 'MRB_TT_FREE', | |
'MRB_TT_TRUE'... [-Wswitch-enum] | |
switch (obj->tt) { | |
^ | |
In file included from ../../src/gc.c:14: | |
../../src/ritehash.h:20:16: warning: unused variable '__m' [-Wunused-variable] | |
static uint8_t __m[8] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80}; | |
^ | |
4 warnings generated. | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/hash.c -o ../../src/hash.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
../../src/hash.c:42:1: warning: unused variable 'old_d_flags' [-Wunused-variable] | |
KHASH_INIT(ht, mrb_value, mrb_value, 1, mrb_hash_ht_hash_func, mrb_hash_ht_hash_equal); | |
^ | |
../../src/ritehash.h:111:14: note: expanded from: | |
uint8_t *old_d_flags = h->d_flags; \ | |
^ | |
../../src/hash.c:167:7: warning: unused variable 'r' [-Wunused-variable] | |
int r; | |
^ | |
../../src/hash.c:223:7: warning: unused variable 'r' [-Wunused-variable] | |
int r; | |
^ | |
../../src/hash.c:619:7: warning: unused variable 'r' [-Wunused-variable] | |
int r; | |
^ | |
../../src/hash.c:206:1: warning: unused function 'hash_s_new' [-Wunused-function] | |
hash_s_new(mrb_state *mrb, mrb_value klass) | |
^ | |
5 warnings generated. | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/init.c -o ../../src/init.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/kernel.c -o ../../src/kernel.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
../../src/kernel.c:29:1: warning: unused variable 'old_d_flags' [-Wunused-variable] | |
KHASH_MAP_INIT_INT(mt, struct RProc*); | |
^ | |
../../src/ritehash.h:200:5: note: expanded from: | |
KHASH_INIT(name, uint32_t, khval_t, 1, kh_int_hash_func, kh_int_hash_equal) | |
^ | |
../../src/ritehash.h:111:14: note: expanded from: | |
uint8_t *old_d_flags = h->d_flags; \ | |
^ | |
../../src/kernel.c:30:1: warning: unused variable 'old_d_flags' [-Wunused-variable] | |
KHASH_MAP_INIT_INT(iv, mrb_value); | |
^ | |
../../src/ritehash.h:200:5: note: expanded from: | |
KHASH_INIT(name, uint32_t, khval_t, 1, kh_int_hash_func, kh_int_hash_equal) | |
^ | |
../../src/ritehash.h:111:14: note: expanded from: | |
uint8_t *old_d_flags = h->d_flags; \ | |
^ | |
../../src/kernel.c:390:13: warning: 24 enumeration values not handled in switch: 'MRB_TT_FALSE', | |
'MRB_TT_FREE', 'MRB_TT_TRUE'... [-Wswitch-enum] | |
switch (mrb_type(obj)) { | |
^ | |
../../src/../include/mruby.h:74:23: note: expanded from: | |
#define mrb_type(o) (o).tt | |
^ | |
../../src/kernel.c:633:16: warning: unused variable 'klass' [-Wunused-variable] | |
mrb_value b, klass; | |
^ | |
../../src/kernel.c:631:14: warning: unused variable 'argv' [-Wunused-variable] | |
mrb_value *argv; | |
^ | |
../../src/kernel.c:632:7: warning: unused variable 'argc' [-Wunused-variable] | |
int argc; | |
^ | |
6 warnings generated. | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/numeric.c -o ../../src/numeric.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
../../src/numeric.c:173:1: warning: unused function 'coerce_rescue' [-Wunused-function] | |
coerce_rescue(mrb_state *mrb, mrb_value *x) | |
^ | |
1 warning generated. | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/object.c -o ../../src/object.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/pool.c -o ../../src/pool.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/print.c -o ../../src/print.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/proc.c -o ../../src/proc.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
../../src/proc.c:33:40: warning: incompatible pointer types passing 'struct REnv *' to parameter of type | |
'struct RClass *' [-Wincompatible-pointer-types] | |
e = mrb_obj_alloc(mrb, MRB_TT_ENV, mrb->ci->proc->env); | |
^~~~~~~~~~~~~~~~~~ | |
../../src/../include/mruby.h:342:63: note: passing argument to parameter here | |
void *mrb_obj_alloc(mrb_state*, enum mrb_vtype, struct RClass*); | |
^ | |
1 warning generated. | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/range.c -o ../../src/range.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/re.c -o ../../src/re.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
In file included from ../../src/re.c:10: | |
../../src/ritehash.h:20:16: warning: unused variable '__m' [-Wunused-variable] | |
static uint8_t __m[8] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80}; | |
^ | |
1 warning generated. | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/regcomp.c -o ../../src/regcomp.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/regenc.c -o ../../src/regenc.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/regerror.c -o ../../src/regerror.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/regexec.c -o ../../src/regexec.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/regparse.c -o ../../src/regparse.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/sprintf.c -o ../../src/sprintf.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/st.c -o ../../src/st.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/state.c -o ../../src/state.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/string.c -o ../../src/string.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
../../src/string.c:90:3: warning: implicit truncation from 'unsigned int' to bitfield changes value from | |
4293919743 to 1049599 [-Wconstant-conversion] | |
ENCODING_CODERANGE_SET(mrb, str, mrb_usascii_encindex(), ENC_CODERANGE_7BIT); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../../src/encoding.h:89:9: note: expanded from: | |
ENCODING_SET(mrb, mrb_encoding_coderange_obj, (encindex)); \ | |
^ | |
../../src/encoding.h:50:9: note: expanded from: | |
ENCODING_SET_INLINED(mrb_encoding_set_obj, encoding_set_enc_index); \ | |
^ | |
../../src/encoding.h:43:24: note: expanded from: | |
RBASIC(obj)->flags &= ~ENCODING_MASK;\ | |
^ | |
../../src/string.c:152:11: warning: comparison of unsigned expression < 0 is always false | |
[-Wtautological-compare] | |
if (len < 0) { | |
~~~ ^ ~ | |
../../src/string.c:176:5: warning: implicit truncation from 'unsigned int' to bitfield changes value from | |
4293919743 to 1049599 [-Wconstant-conversion] | |
ENCODING_CODERANGE_SET(mrb, str, mrb_usascii_encindex(), ENC_CODERANGE_7BIT); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../../src/encoding.h:89:9: note: expanded from: | |
ENCODING_SET(mrb, mrb_encoding_coderange_obj, (encindex)); \ | |
^ | |
../../src/encoding.h:50:9: note: expanded from: | |
ENCODING_SET_INLINED(mrb_encoding_set_obj, encoding_set_enc_index); \ | |
^ | |
../../src/encoding.h:43:24: note: expanded from: | |
RBASIC(obj)->flags &= ~ENCODING_MASK;\ | |
^ | |
../../src/string.c:513:11: warning: comparison of unsigned expression < 0 is always false | |
[-Wtautological-compare] | |
if (len < 0) { | |
~~~ ^ ~ | |
../../src/string.c:604:11: warning: comparison of unsigned expression < 0 is always false | |
[-Wtautological-compare] | |
if (len < 0) { | |
~~~ ^ ~ | |
../../src/string.c:792:3: warning: implicit truncation from 'unsigned int' to bitfield changes value from | |
4293919743 to 1049599 [-Wconstant-conversion] | |
ENCODING_CODERANGE_SET(mrb, str3, mrb_enc_to_index(enc), | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../../src/encoding.h:89:9: note: expanded from: | |
ENCODING_SET(mrb, mrb_encoding_coderange_obj, (encindex)); \ | |
^ | |
../../src/encoding.h:50:9: note: expanded from: | |
ENCODING_SET_INLINED(mrb_encoding_set_obj, encoding_set_enc_index); \ | |
^ | |
../../src/encoding.h:43:24: note: expanded from: | |
RBASIC(obj)->flags &= ~ENCODING_MASK;\ | |
^ | |
../../src/string.c:2321:13: warning: implicit truncation from 'unsigned int' to bitfield changes value from | |
4293919743 to 1049599 [-Wconstant-conversion] | |
ENCODING_CODERANGE_SET(mrb, str, ptr_encindex, ptr_cr); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../../src/encoding.h:89:9: note: expanded from: | |
ENCODING_SET(mrb, mrb_encoding_coderange_obj, (encindex)); \ | |
^ | |
../../src/encoding.h:50:9: note: expanded from: | |
ENCODING_SET_INLINED(mrb_encoding_set_obj, encoding_set_enc_index); \ | |
^ | |
../../src/encoding.h:43:24: note: expanded from: | |
RBASIC(obj)->flags &= ~ENCODING_MASK;\ | |
^ | |
../../src/string.c:2378:3: warning: implicit truncation from 'unsigned int' to bitfield changes value from | |
4293919743 to 1049599 [-Wconstant-conversion] | |
ENCODING_CODERANGE_SET(mrb, str, res_encindex, res_cr); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../../src/encoding.h:89:9: note: expanded from: | |
ENCODING_SET(mrb, mrb_encoding_coderange_obj, (encindex)); \ | |
^ | |
../../src/encoding.h:50:9: note: expanded from: | |
ENCODING_SET_INLINED(mrb_encoding_set_obj, encoding_set_enc_index); \ | |
^ | |
../../src/encoding.h:43:24: note: expanded from: | |
RBASIC(obj)->flags &= ~ENCODING_MASK;\ | |
^ | |
8 warnings generated. | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/struct.c -o ../../src/struct.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
../../src/struct.c:34:18: warning: unused function 'struct_alloc' [-Wunused-function] | |
static mrb_value struct_alloc(mrb_state *mrb, mrb_value); | |
^ | |
1 warning generated. | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/symbol.c -o ../../src/symbol.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
../../src/symbol.c:26:1: warning: unused variable 'old_d_flags' [-Wunused-variable] | |
KHASH_MAP_INIT_INT(s2n, const char*); | |
^ | |
../../src/ritehash.h:200:5: note: expanded from: | |
KHASH_INIT(name, uint32_t, khval_t, 1, kh_int_hash_func, kh_int_hash_equal) | |
^ | |
../../src/ritehash.h:111:14: note: expanded from: | |
uint8_t *old_d_flags = h->d_flags; \ | |
^ | |
../../src/symbol.c:27:1: warning: unused variable 'old_d_flags' [-Wunused-variable] | |
KHASH_MAP_INIT_STR(n2s, mrb_sym); | |
^ | |
../../src/ritehash.h:203:5: note: expanded from: | |
KHASH_INIT(name, kh_cstr_t, khval_t, 1, kh_str_hash_func, kh_str_hash_equal) | |
^ | |
../../src/ritehash.h:111:14: note: expanded from: | |
uint8_t *old_d_flags = h->d_flags; \ | |
^ | |
../../src/symbol.c:35:7: warning: unused variable 'r' [-Wunused-variable] | |
int r; | |
^ | |
3 warnings generated. | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/transcode.c -o ../../src/transcode.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/unicode.c -o ../../src/unicode.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/us_ascii.c -o ../../src/us_ascii.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/utf_8.c -o ../../src/utf_8.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/variable.c -o ../../src/variable.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
../../src/variable.c:22:1: warning: unused variable 'old_d_flags' [-Wunused-variable] | |
KHASH_MAP_INIT_INT(iv, mrb_value); | |
^ | |
../../src/ritehash.h:200:5: note: expanded from: | |
KHASH_INIT(name, uint32_t, khval_t, 1, kh_int_hash_func, kh_int_hash_equal) | |
^ | |
../../src/ritehash.h:111:14: note: expanded from: | |
uint8_t *old_d_flags = h->d_flags; \ | |
^ | |
../../src/variable.c:64:12: warning: unused variable 'k' [-Wunused-variable] | |
khiter_t k; | |
^ | |
../../src/variable.c:118:7: warning: unused variable 'r' [-Wunused-variable] | |
int r; | |
^ | |
../../src/variable.c:183:7: warning: unused variable 'r' [-Wunused-variable] | |
int r; | |
^ | |
4 warnings generated. | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/version.c -o ../../src/version.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/vm.c -o ../../src/vm.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
../../src/vm.c:880:11: warning: unused variable 'k' [-Wunused-variable] | |
int k = (ax>>2)&0x1f; | |
^ | |
../../src/vm.c:881:11: warning: unused variable 'kd' [-Wunused-variable] | |
int kd = (ax>>1)&0x1; | |
^ | |
../../src/vm.c:882:11: warning: unused variable 'b' [-Wunused-variable] | |
int b = (ax>>0)& 0x1; | |
^ | |
../../src/vm.c:956:6: warning: unused variable 'ridx' [-Wunused-variable] | |
int ridx; | |
^ | |
4 warnings generated. | |
bison -o ../../src/y.tab.c ../../src/parse.y | |
/Users/ashley/Developer/emscripten/emcc -Wall -Werror-implicit-function-declaration -g -MMD -I../../src -I../../src/../include -c ../../src/y.tab.c -o ../../src/y.tab.o | |
clang: warning: argument unused during compilation: '-nostdinc++' | |
../../src/parse.y:4650:21: warning: incompatible pointer to integer conversion assigning to 'int' from | |
'void *'; | |
p->capture_errors = NULL; | |
^ ~~~~ | |
1 warning generated. | |
/Users/ashley/Developer/emscripten/emcc -o ../../bin/mrbc ../../src/../tools/mrbc/mrbc.o ../../src/array.o ../../src/ascii.o ../../src/cdump.o ../../src/class.o ../../src/codegen.o ../../src/compar.o ../../src/crc.o ../../src/dump.o ../../src/encoding.o ../../src/enum.o ../../src/error.o ../../src/etc.o ../../src/gc.o ../../src/hash.o ../../src/init.o ../../src/kernel.o ../../src/numeric.o ../../src/object.o ../../src/pool.o ../../src/print.o ../../src/proc.o ../../src/range.o ../../src/re.o ../../src/regcomp.o ../../src/regenc.o ../../src/regerror.o ../../src/regexec.o ../../src/regparse.o ../../src/sprintf.o ../../src/st.o ../../src/state.o ../../src/string.o ../../src/struct.o ../../src/symbol.o ../../src/transcode.o ../../src/unicode.o ../../src/us_ascii.o ../../src/utf_8.o ../../src/variable.o ../../src/version.o ../../src/vm.o ../../src/y.tab.o -lm | |
make: built targets of /Users/ashley/Developer/mruby/tools/mrbc | |
cat array.rb compar.rb enum.rb error.rb hash.rb kernel.rb numeric.rb print.rb range.rb string.rb struct.rb > mrblib.rbtmp | |
../bin/mrbc -Bmrblib_irep -omrblib.ctmp mrblib.rbtmp; cat init_mrblib.c mrblib.ctmp > mrblib.c | |
/bin/sh: ../bin/mrbc: cannot execute binary file | |
cat: mrblib.ctmp: No such file or directory | |
make[1]: *** [mrblib.c] Error 1 | |
make: *** [src/mrblib/mrblib.o] Error 2 |
Nope, I gave up! I've little experience with Emscripten, and I rarely use compiled languages, so I'm probably not the best person to try and get this up and running. It was just something I wanted to quickly test, and I probably would have ran with it a bit further if it hadn't of conked-out at the first hurdle. :)
Hi there,
I found this gist via Google. And if you are still interested, I successfully made this working. The source code is at https://github.com/xxuejie/mruby-browser. Feel free to take a look!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ashleyw any updates on this build?