mattn / mruby-require

39 stars 23 forks source link

Cann't build in early mruby #39

Closed ksss closed 6 years ago

ksss commented 6 years ago

mruby: https://github.com/mruby/mruby/commit/ddb1aae41de507efb9ab3d7ec2edb23911888783 mruby-require: ff56b56

MRuby::Build.new do |conf|
  toolchain :clang

  enable_debug
  conf.gembox 'default'
  conf.gem github: "mattn/mruby-require"
end
$ rake
CC    src/array.c -> build/host/src/array.o
CC    src/backtrace.c -> build/host/src/backtrace.o
CC    src/class.c -> build/host/src/class.o
CC    src/codedump.c -> build/host/src/codedump.o
CC    src/compar.c -> build/host/src/compar.o
CC    src/crc.c -> build/host/src/crc.o
CC    src/debug.c -> build/host/src/debug.o
CC    src/dump.c -> build/host/src/dump.o
CC    src/enum.c -> build/host/src/enum.o
CC    src/error.c -> build/host/src/error.o
CC    src/etc.c -> build/host/src/etc.o
CC    src/fmt_fp.c -> build/host/src/fmt_fp.o
CC    src/gc.c -> build/host/src/gc.o
CC    src/hash.c -> build/host/src/hash.o
CC    src/init.c -> build/host/src/init.o
CC    src/kernel.c -> build/host/src/kernel.o
CC    src/load.c -> build/host/src/load.o
CC    src/numeric.c -> build/host/src/numeric.o
CC    src/object.c -> build/host/src/object.o
CC    src/pool.c -> build/host/src/pool.o
CC    src/print.c -> build/host/src/print.o
CC    src/proc.c -> build/host/src/proc.o
CC    src/range.c -> build/host/src/range.o
CC    src/state.c -> build/host/src/state.o
CC    src/string.c -> build/host/src/string.o
CC    src/symbol.c -> build/host/src/symbol.o
CC    src/variable.c -> build/host/src/variable.o
CC    src/version.c -> build/host/src/version.o
CC    src/vm.c -> build/host/src/vm.o
rake aborted!
Don't know how to build task '/Users/ksss/src/github.com/ksss/mruby/build/host/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.o' (see --tasks)
mattn commented 6 years ago

@take-cheeze Could you help me? I'm not familier to mruby's build system. What I should fix?

take-cheeze commented 6 years ago

Seems like this line is removing mruby-bin-mrbc https://github.com/mattn/mruby-require/blob/ff56b560df1184c307391b96cc45bc7668a32bcf/mrbgem.rake#L58

mattn commented 6 years ago

yes, I tried to change this line like below.

 gems.reject! {|g| !compiled_in.include?(g.name) && g.name !~ /^mruby-bin-/ } 

but still have errors.

take-cheeze commented 6 years ago

Short workaround is add gem core: 'mruby-bin-mrbc' before mruby-require.(Though somehow test build fails)

ksss commented 6 years ago

It maybe resolved. Thanks!