Skip to content

Instantly share code, notes, and snippets.

@oniram88
Last active January 4, 2016 09:29
Show Gist options
  • Save oniram88/8602035 to your computer and use it in GitHub Desktop.
Save oniram88/8602035 to your computer and use it in GitHub Desktop.
Odroid U3 Therubyracer compilation fail
gem install therubyracer --platform=ruby
Building native extensions. This could take a while...
ERROR: Error installing therubyracer:
ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-1.9.3-p484/bin/ruby extconf.rb
checking for main() in -lpthread... yes
creating Makefile
make clean
make
compiling heap.cc
compiling date.cc
compiling object.cc
compiling init.cc
compiling constraints.cc
compiling external.cc
compiling constants.cc
compiling signature.cc
compiling locker.cc
compiling rr.cc
compiling handles.cc
compiling value.cc
compiling string.cc
compiling accessor.cc
compiling context.cc
compiling message.cc
compiling gc.cc
compiling array.cc
compiling template.cc
compiling function.cc
compiling backref.cc
compiling trycatch.cc
compiling script.cc
compiling v8.cc
compiling invocation.cc
compiling stack.cc
compiling primitive.cc
compiling exception.cc
linking shared-object v8/init.so
/usr/bin/ld: /usr/local/rvm/gems/ruby-1.9.3-p484/gems/libv8-3.16.14.3/vendor/v8/out/arm.release/obj.target/tools/gyp/libv8_base.a(api.o): relocation R_ARM_THM_MOVW_ABS_NC against `_ZN2v88internal7Isolate12isolate_key_E' can not be used when making a shared object; recompile with -fPIC
/usr/local/rvm/gems/ruby-1.9.3-p484/gems/libv8-3.16.14.3/vendor/v8/out/arm.release/obj.target/tools/gyp/libv8_base.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [init.so] Error 1
make failed, exit code 2
Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.3-p484/gems/therubyracer-0.12.0 for inspection.
Results logged to /usr/local/rvm/gems/ruby-1.9.3-p484/extensions/armv7l-linux/1.9.1/therubyracer-0.12.0/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment