Closed kinosang closed 7 years ago
/usr/bin/ld: ~/mruby/build/host/lib/libmruby.a(variable.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC ~/mruby/build/host/lib/libmruby.a: error adding symbols: Bad value
This is because missing fPIC
build option to mruby. I've already fixed it by https://github.com/syucream/ts_mruby/issues/106. Can you try latest master branch?
Now it failed with recipe for target 'all-recursive' failed
when we run make
.
make all-recursive
make[1]: Entering directory '~/ts_mruby'
Making all in test
make[2]: Entering directory '~/ts_mruby/test'
make[2]: *** No rule to make target '../googletest/googlemock/src/*.cc', needed by 'gmock-all.o'. Stop.
make[2]: Leaving directory '~/ts_mruby/test'
Makefile:358: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '~/ts_mruby'
Makefile:299: recipe for target 'all' failed
make: *** [all] Error 2
@kinosang Please do git submodule init && git submodule update
before make
@syucream It works, thank you.
System Ubuntu 16.04.1 LTS x86_64 (also tried on CentOS 7.2.1511 x86_64)
When we run
make
,Here's the whole output:
And we tried to use docker for kickstart, when we run
docker run -it syucream/ts_mruby
, it saysthe input device is not a TTY
.