Cann't build in early mruby
ksss opened this issue · 5 comments
ksss commented
mruby: mruby/mruby@ddb1aae
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
@take-cheeze Could you help me? I'm not familier to mruby's build system. What I should fix?
take-cheeze commented
Seems like this line is removing mruby-bin-mrbc
Line 58 in ff56b56
mattn commented
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
Short workaround is add gem core: 'mruby-bin-mrbc'
before mruby-require.(Though somehow test build fails)
ksss commented
It maybe resolved.
Thanks!