rubyjs/therubyracer

Installation crashes with "error adding symbols: Malformed archive"

matkoniecz opened this issue · 3 comments

mateusz@Grisznak:~$ gem install therubyracer
Building native extensions.  This could take a while...
ERROR:  Error installing therubyracer:
    ERROR: Failed to build gem native extension.

    current directory: /home/mateusz/.gem/ruby/2.3.0/gems/therubyracer-0.12.2/ext/v8
/usr/bin/ruby2.3 -r ./siteconf20160516-20981-3wipjl.rb extconf.rb
checking for main() in -lpthread... yes
creating Makefile

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /home/mateusz/.gem/ruby/2.3.0/extensions/x86-linux/2.3.0/therubyracer-0.12.2/mkmf.log

current directory: /home/mateusz/.gem/ruby/2.3.0/gems/therubyracer-0.12.2/ext/v8
make "DESTDIR=" clean

current directory: /home/mateusz/.gem/ruby/2.3.0/gems/therubyracer-0.12.2/ext/v8
make "DESTDIR="
compiling accessor.cc
compiling string.cc
compiling context.cc
compiling backref.cc
compiling invocation.cc
compiling template.cc
compiling heap.cc
compiling external.cc
compiling array.cc
compiling trycatch.cc
compiling constants.cc
compiling script.cc
compiling message.cc
compiling init.cc
compiling stack.cc
compiling function.cc
compiling primitive.cc
compiling locker.cc
compiling value.cc
compiling gc.cc
compiling handles.cc
compiling signature.cc
compiling rr.cc
compiling date.cc
compiling exception.cc
compiling v8.cc
compiling constraints.cc
compiling object.cc
linking shared-object v8/init.so
/var/lib/gems/2.3.0/gems/libv8-3.16.14.7/vendor/v8/out/ia32.release/obj.target/tools/gyp/libv8_base.a: error adding symbols: Malformed archive
collect2: error: ld returned 1 exit status
make: *** [init.so] Error 1

make failed, exit code 2

Gem files will remain installed in /home/mateusz/.gem/ruby/2.3.0/gems/therubyracer-0.12.2 for inspection.
Results logged to /home/mateusz/.gem/ruby/2.3.0/extensions/x86-linux/2.3.0/therubyracer-0.12.2/gem_make.out

Hello, @matkoniecz, could you please try to update libv8 in your bundle? libv8 3.16.14.7 is very old, the current version of the 3.16 branch is 3.16.14.15.

@matkoniecz, did you manage to resolve your issue?

could you please try to update libv8 in your bundle?

I am not using bundle, I am installing therubyracer gem (it was nested dependency of something, I isolated it to failing therubyracer gem install).