Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Yosemite 10.10 and Xcode 6 - Incompatibility #131

Closed
edolyne opened this issue Jun 27, 2014 · 9 comments
Closed

Yosemite 10.10 and Xcode 6 - Incompatibility #131

edolyne opened this issue Jun 27, 2014 · 9 comments

Comments

@edolyne
Copy link

edolyne commented Jun 27, 2014

I have the Yosemite 10.10 and Xcode 6 beta's installed and I am running into an issue trying to install libv8. The error message I am getting is:

➜ ~ gem install libv8
Building native extensions. This could take a while...
ERROR: Error installing libv8:
ERROR: Failed to build gem native extension.

/Users/edolyne/.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb

creating Makefile
Compiling v8 for x64
Using python 2.7.6
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1
Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher
Using compiler: g++
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1
Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher
../src/cached-powers.cc:136:18: error: unused variable 'kCachedPowersLength' [-Werror,-Wunused-const-variable]
static const int kCachedPowersLength = ARRAY_SIZE(kCachedPowers);
^
1 error generated.
make[1]: *** [/Users/edolyne/.rvm/gems/ruby-2.1.2/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o] Error 1
make: *** [x64.release] Error 2
/Users/edolyne/.rvm/gems/ruby-2.1.2/gems/libv8-3.16.14.3/ext/libv8/location.rb:36:in block in verify_installation!': libv8 did not install properly, expected binary v8 archive '/Users/edolyne/.rvm/gems/ruby-2.1.2/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/tools/gyp/libv8_base.a'to exist, but it was not found (Libv8::Location::Vendor::ArchiveNotFound) from /Users/edolyne/.rvm/gems/ruby-2.1.2/gems/libv8-3.16.14.3/ext/libv8/location.rb:35:ineach'
from /Users/edolyne/.rvm/gems/ruby-2.1.2/gems/libv8-3.16.14.3/ext/libv8/location.rb:35:in verify_installation!' from /Users/edolyne/.rvm/gems/ruby-2.1.2/gems/libv8-3.16.14.3/ext/libv8/location.rb:26:ininstall!'
from extconf.rb:7:in `

'
GYP_GENERATORS=make
build/gyp/gyp --generator-output="out" build/all.gyp
-Ibuild/standalone.gypi --depth=.
-Dv8_target_arch=x64
-S.x64 -Dv8_enable_backtrace=1 -Dv8_can_use_vfp2_instructions=true -Darm_fpu=vfpv2 -Dv8_can_use_vfp3_instructions=true -Darm_fpu=vfpv3
CXX(target) /Users/edolyne/.rvm/gems/ruby-2.1.2/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/allocation.o
CXX(target) /Users/edolyne/.rvm/gems/ruby-2.1.2/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o
CXX(target) /Users/edolyne/.rvm/gems/ruby-2.1.2/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum.o
CXX(target) /Users/edolyne/.rvm/gems/ruby-2.1.2/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum-dtoa.o
CXX(target) /Users/edolyne/.rvm/gems/ruby-2.1.2/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o

extconf failed, exit code 1

Gem files will remain installed in /Users/edolyne/.rvm/gems/ruby-2.1.2/gems/libv8-3.16.14.3 for inspection.
Results logged to /Users/edolyne/.rvm/gems/ruby-2.1.2/extensions/x86_64-darwin-14/2.1.0/libv8-3.16.14.3/gem_make.out

And when checking gcc I get this message:

➜ ~ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.34.4) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix

I have tried a number of "fixes" on stack exchange and such without any resolution yet so I am hoping that someone may be able to help me here.

@edolyne edolyne changed the title Yosemite 10.10 and Xcode 6 - Yosemite 10.10 and Xcode 6 - Incompatibility Jun 27, 2014
@ignisf
Copy link
Collaborator

ignisf commented Jun 28, 2014

fixed by #124

@ignisf ignisf closed this as completed Jun 28, 2014
@edolyne
Copy link
Author

edolyne commented Jun 28, 2014

@ignisf I had already tried the fix in 124, and am still having the issue. When moving from this to install therubyracer, it still shows that there is no officially supported v8 compiler. Here is the error code I am getting.

➜ libv8 git:(master) ✗ gem install therubyracer
Building native extensions. This could take a while...
ERROR: Error installing therubyracer:
ERROR: Failed to build gem native extension.

/Users/edolyne/.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb

creating Makefile
Compiling v8 for x64
Using python 2.7.6
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1
Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher
Using compiler: g++
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1
Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher
../src/cached-powers.cc:136:18: error: unused variable 'kCachedPowersLength' [-Werror,-Wunused-const-variable]
static const int kCachedPowersLength = ARRAY_SIZE(kCachedPowers);
^
1 error generated.
make[1]: *** [/Users/edolyne/.rvm/gems/ruby-2.1.2/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o] Error 1
make: *** [x64.release] Error 2
/Users/edolyne/.rvm/gems/ruby-2.1.2/gems/libv8-3.16.14.3/ext/libv8/location.rb:36:in block in verify_installation!': libv8 did not install properly, expected binary v8 archive '/Users/edolyne/.rvm/gems/ruby-2.1.2/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/tools/gyp/libv8_base.a'to exist, but it was not found (Libv8::Location::Vendor::ArchiveNotFound) from /Users/edolyne/.rvm/gems/ruby-2.1.2/gems/libv8-3.16.14.3/ext/libv8/location.rb:35:ineach'
from /Users/edolyne/.rvm/gems/ruby-2.1.2/gems/libv8-3.16.14.3/ext/libv8/location.rb:35:in verify_installation!' from /Users/edolyne/.rvm/gems/ruby-2.1.2/gems/libv8-3.16.14.3/ext/libv8/location.rb:26:ininstall!'
from extconf.rb:7:in `

'
GYP_GENERATORS=make
build/gyp/gyp --generator-output="out" build/all.gyp
-Ibuild/standalone.gypi --depth=.
-Dv8_target_arch=x64
-S.x64 -Dv8_enable_backtrace=1 -Dv8_can_use_vfp2_instructions=true -Darm_fpu=vfpv2 -Dv8_can_use_vfp3_instructions=true -Darm_fpu=vfpv3
CXX(target) /Users/edolyne/.rvm/gems/ruby-2.1.2/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/allocation.o
CXX(target) /Users/edolyne/.rvm/gems/ruby-2.1.2/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o
CXX(target) /Users/edolyne/.rvm/gems/ruby-2.1.2/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum.o
CXX(target) /Users/edolyne/.rvm/gems/ruby-2.1.2/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum-dtoa.o
CXX(target) /Users/edolyne/.rvm/gems/ruby-2.1.2/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o

extconf failed, exit code 1

Gem files will remain installed in /Users/edolyne/.rvm/gems/ruby-2.1.2/gems/libv8-3.16.14.3 for inspection.
Results logged to /Users/edolyne/.rvm/gems/ruby-2.1.2/extensions/x86_64-darwin-14/2.1.0/libv8-3.16.14.3/gem_make.out

@dallasbpeters
Copy link

@edolyne I'm still seeing this exact same thing as well.

@krazyjakee
Copy link

I'm still getting an issue only with this gem.

Building native extensions.  This could take a while...
ERROR:  Error installing libv8:
    ERROR: Failed to build gem native extension.

    /Users/user/.rbenv/versions/jruby-1.7.13/bin/jruby extconf.rb
/Users/user/.rbenv/versions/jruby-1.7.13/lib/ruby/shared/mkmf.rb:14: Use RbConfig instead of obsolete and deprecated Config.
mkmf.rb can't find header files for ruby at /Users/user/.rbenv/versions/jruby-1.7.13/lib/native/include/ruby/ruby.h


Gem files will remain installed in /Users/user/.rbenv/versions/jruby-1.7.13/lib/ruby/gems/shared/gems/libv8-3.16.14.3 for inspection.
Results logged to /Users/user/.rbenv/versions/jruby-1.7.13/lib/ruby/gems/shared/gems/libv8-3.16.14.3/ext/libv8/gem_make.out

@ignisf
Copy link
Collaborator

ignisf commented Aug 6, 2014

@krazyjakee you can't use therubyracer + libv8 with jruby, take a look at therubyrhino

@raisin
Copy link

raisin commented Nov 12, 2014

Why was this closed? The initial poster was not using jruby. I encounter this issue with ruby and libv8.

@ignisf
Copy link
Collaborator

ignisf commented Nov 12, 2014

It was closed because it was addressed by a merged PR.

@dankozlowski
Copy link

I'm encountering this issue with OSX 10.10 and latest Ruby 2.1.2. Do we have a solution?

@ignisf
Copy link
Collaborator

ignisf commented Jan 5, 2015

@dankozlowski yes -- this issue was fixed by #124, please update your version of libv8

@rubyjs rubyjs locked and limited conversation to collaborators Jan 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants