Closed phyzzld closed 9 years ago
I ran into the same issue.
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/liujun/.rvm/rubies/ruby-2.1.5/bin/ruby -r ./siteconf20150701-965-1v925iy.rb extconf.rb
creating Makefile
Compiling v8 for x64
Using python 2.7.6
Using compiler: /usr/bin/c++ (clang version 6.1.0)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /Users/liujun/.rvm/gems/ruby-2.1.5@wedding/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o has no symbols
In file included from ../src/accessors.cc:28:
In file included from ../src/v8.h:60:
In file included from ../src/objects-inl.h:38:
In file included from ../src/elements.h:33:
In file included from ../src/heap.h:35:
In file included from ../src/incremental-marking.h:33:
In file included from ../src/mark-compact.h:32:
../src/spaces.h:896:26: error: 'this' pointer cannot be null in well-defined C++ code; comparison may be assumed to always evaluate to true [-Werror,-Wtautological-undefined-compare]
bool exists() { return this != NULL && code_range_ != NULL; }
^~~~ ~~~~
../src/spaces.h:898:9: error: 'this' pointer cannot be null in well-defined C++ code; comparison may be assumed to always evaluate to false [-Werror,-Wtautological-undefined-compare]
if (this == NULL || code_range_ == NULL) return false;
^~~~ ~~~~
2 errors generated.
make[1]: *** [/Users/liujun/.rvm/gems/ruby-2.1.5@wedding/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/v8_base/src/accessors.o] Error 1
make: *** [x64.release] Error 2
I'm working on getting TRR to compile with the latest version of the command line tools. In the meantime, you can try to manually install this binary gem which I have compiled on 10.4 using gcc 4.2.1
https://www.dropbox.com/s/fyusyxbpdzid6s8/therubyracer-0.12.2-x86_64-darwin-14.gem?dl=0
But this is basically a duplicate of #339
I just upgraded to Command Line Tools 6.4 on 10.10.4, but I cannot install therubyracer 0.12.2. Initially both libv8 and therubyracer failed to install, but I reinstalled ruby 2.0.0-p353 after the upgrade and now libv8 3.16.14.8 installs with no problems but therubyracer still fails. I'm new to ruby. Any help is appreciated.
Error message from bundle install: