{"action":"opened","issue":{"url":"https://api.github.com/repos/awestruct/awestruct/issues/502","labels_url":"https://api.github.com/repos/awestruct/awestruct/issues/502/labels{/name}","comments_url":"https://api.github.com/repos/awestruct/awestruct/issues/502/comments","events_url":"https://api.github.com/repos/awestruct/awestruct/issues/502/events","html_url":"https://github.com/awestruct/awestruct/issues/502","id":120168013,"number":502,"title":"Libv8 install issues in OSX","user":{"login":"galderz","id":50187,"avatar_url":"https://avatars.githubusercontent.com/u/50187?v=3","gravatar_id":"","url":"https://api.github.com/users/galderz","html_url":"https://github.com/galderz","followers_url":"https://api.github.com/users/galderz/followers","following_url":"https://api.github.com/users/galderz/following{/other_user}","gists_url":"https://api.github.com/users/galderz/gists{/gist_id}","starred_url":"https://api.github.com/users/galderz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galderz/subscriptions","organizations_url":"https://api.github.com/users/galderz/orgs","repos_url":"https://api.github.com/users/galderz/repos","events_url":"https://api.github.com/users/galderz/events{/privacy}","received_events_url":"https://api.github.com/users/galderz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-03T13:11:38Z","updated_at":"2015-12-03T13:11:38Z","closed_at":null,"body":"I can run `bundle install` with awestruct 0.5.6 nor 0.5.7.RC2 on OSX 10.10.3. I'm getting this issue:\r\n\r\n```\r\nInstalling libv8 3.11.8.17 with native extensions\r\n\r\nGem::Ext::BuildError: ERROR: Failed to build gem native extension.\r\n\r\n    /Users/g/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20151203-60158-qvn2j1.rb extconf.rb\r\ncreating Makefile\r\nCompiling v8 for x64\r\nUsing python 2.7.10\r\nConfigured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1\r\nUsing compiler: /usr/bin/g++\r\nConfigured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1\r\n../src/cached-powers.cc:136:18: error: unused variable 'kCachedPowersLength' [-Werror,-Wunused-const-variable]\r\nstatic const int kCachedPowersLength = ARRAY_SIZE(kCachedPowers);\r\n                 ^\r\n1 error generated.\r\nmake[1]: *** [/Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o] Error 1\r\nmake: *** [x64.release] Error 2\r\n/Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17/ext/libv8/location.rb:36:in `block in verify_installation!': libv8 did not install properly, expected binary v8 archive '/Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/tools/gyp/libv8_base.a'to exist, but it was not found (Libv8::Location::Vendor::ArchiveNotFound)\r\n\tfrom /Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17/ext/libv8/location.rb:35:in `each'\r\n\tfrom /Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17/ext/libv8/location.rb:35:in `verify_installation!'\r\n\tfrom /Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17/ext/libv8/location.rb:26:in `install!'\r\n\tfrom extconf.rb:7:in `<main>'\r\nGYP_GENERATORS=make \\\r\n\tbuild/gyp/gyp --generator-output=\"out\" build/all.gyp \\\r\n\t              -Ibuild/standalone.gypi --depth=. \\\r\n\t              -Dv8_target_arch=x64 \\\r\n\t              -S.x64  -Dv8_can_use_vfp_instructions=true\r\n  CXX(target) /Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/allocation.o\r\n  CXX(target) /Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o\r\n  CXX(target) /Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum.o\r\n  CXX(target) /Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum-dtoa.o\r\n  CXX(target) /Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o\r\n\r\nextconf failed, exit code 1\r\n\r\nGem files will remain installed in /Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17 for inspection.\r\nResults logged to /Users/g/.rvm/gems/ruby-2.2.1/extensions/x86_64-darwin-14/2.2.0-static/libv8-3.11.8.17/gem_make.out\r\nAn error occurred while installing libv8 (3.11.8.17), and Bundler cannot continue.\r\nMake sure that `gem install libv8 -v '3.11.8.17'` succeeds before bundling.\r\n```\r\n\r\nThere's some suggestion on how to solve it in this [Stackoverflow thread](http://stackoverflow.com/questions/19577759/installing-libv8-gem-on-os-x-10-9) but none seem to work as expected.\r\n\r\nI've tried to execute `gem install libv8 -- --with-system-v8` which works fine, but then when I execute `bundle install` it fails with:\r\n\r\n```\r\nInstalling therubyracer 0.11.4 with native extensions\r\n\r\nGem::Ext::BuildError: ERROR: Failed to build gem native extension.\r\n\r\n    /Users/g/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20151203-55902-1x8zkn1.rb extconf.rb\r\nchecking for main() in -lpthread... yes\r\nchecking for main() in -lobjc... yes\r\nchecking for v8.h... no\r\n*** extconf.rb failed ***\r\nCould not create Makefile due to some reason, probably lack of necessary\r\nlibraries and/or headers.  Check the mkmf.log file for more details.  You may\r\nneed configuration options.\r\n\r\nProvided configuration options:\r\n\t--with-opt-dir\r\n\t--without-opt-dir\r\n\t--with-opt-include\r\n\t--without-opt-include=${opt-dir}/include\r\n\t--with-opt-lib\r\n\t--without-opt-lib=${opt-dir}/lib\r\n\t--with-make-prog\r\n\t--without-make-prog\r\n\t--srcdir=.\r\n\t--curdir\r\n\t--ruby=/Users/g/.rvm/rubies/ruby-2.2.1/bin/$(RUBY_BASE_NAME)\r\n\t--with-pthreadlib\r\n\t--without-pthreadlib\r\n\t--with-objclib\r\n\t--without-objclib\r\n\t--enable-debug\r\n\t--disable-debug\r\n\t--with-v8-dir\r\n\t--without-v8-dir\r\n\t--with-v8-include\r\n\t--without-v8-include=${v8-dir}/include\r\n\t--with-v8-lib\r\n\t--without-v8-lib=${v8-dir}/lib\r\n/Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17/ext/libv8/location.rb:50:in `configure': You have chosen to use the version of V8 found on your system (Libv8::Location::System::NotFoundError)\r\nand *not* the one that is bundle with the libv8 rubygem. However,\r\nit could not be located. please make sure you have a version of\r\nv8 that is compatible with 3.11.8.17 installed. You may\r\nneed to special --with-v8-dir options if it is in a non-standard\r\nlocation\r\n\r\nthanks,\r\nThe Mgmt\r\n\r\n\tfrom /Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17/lib/libv8.rb:7:in `configure_makefile'\r\n\tfrom extconf.rb:32:in `<main>'\r\n\r\nextconf failed, exit code 1\r\n\r\nGem files will remain installed in /Users/g/.rvm/gems/ruby-2.2.1/gems/therubyracer-0.11.4 for inspection.\r\nResults logged to /Users/g/.rvm/gems/ruby-2.2.1/extensions/x86_64-darwin-14/2.2.0-static/therubyracer-0.11.4/gem_make.out\r\nAn error occurred while installing therubyracer (0.11.4), and Bundler cannot continue.\r\nMake sure that `gem install therubyracer -v '0.11.4'` succeeds before bundling.\r\n```\r\n\r\nI've also tried to execute `gem install libv8 -v '3.11.8.17' -- --with-v8-lib` but fails with:\r\n\r\n```\r\nBuilding native extensions with: '--with-v8-lib'\r\nThis could take a while...\r\nERROR:  Error installing libv8:\r\n\tERROR: Failed to build gem native extension.\r\n\r\n    /Users/g/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20151203-56138-1cutxrg.rb extconf.rb --with-v8-lib\r\ncreating Makefile\r\nCompiling v8 for x64\r\nUsing python 2.7.10\r\nConfigured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1\r\nUsing compiler: /usr/bin/g++\r\nConfigured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1\r\n../src/cached-powers.cc:136:18: error: unused variable 'kCachedPowersLength' [-Werror,-Wunused-const-variable]\r\nstatic const int kCachedPowersLength = ARRAY_SIZE(kCachedPowers);\r\n                 ^\r\n1 error generated.\r\nmake[1]: *** [/Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o] Error 1\r\nmake: *** [x64.release] Error 2\r\n/Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17/ext/libv8/location.rb:36:in `block in verify_installation!': libv8 did not install properly, expected binary v8 archive '/Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/tools/gyp/libv8_base.a'to exist, but it was not found (Libv8::Location::Vendor::ArchiveNotFound)\r\n\tfrom /Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17/ext/libv8/location.rb:35:in `each'\r\n\tfrom /Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17/ext/libv8/location.rb:35:in `verify_installation!'\r\n\tfrom /Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17/ext/libv8/location.rb:26:in `install!'\r\n\tfrom extconf.rb:7:in `<main>'\r\nGYP_GENERATORS=make \\\r\n\tbuild/gyp/gyp --generator-output=\"out\" build/all.gyp \\\r\n\t              -Ibuild/standalone.gypi --depth=. \\\r\n\t              -Dv8_target_arch=x64 \\\r\n\t              -S.x64  -Dv8_can_use_vfp_instructions=true\r\n  CXX(target) /Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/allocation.o\r\n  CXX(target) /Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o\r\n  CXX(target) /Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum.o\r\n  CXX(target) /Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum-dtoa.o\r\n  CXX(target) /Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o\r\n\r\nextconf failed, exit code 1\r\n\r\nGem files will remain installed in /Users/g/.rvm/gems/ruby-2.2.1/gems/libv8-3.11.8.17 for inspection.\r\nResults logged to /Users/g/.rvm/gems/ruby-2.2.1/extensions/x86_64-darwin-14/2.2.0-static/libv8-3.11.8.17/gem_make.out\r\n```\r\n\r\nI checked what the latest `therubyracer` version is and that is `0.12.2`. I can install this version fine after executing `gem install libv8 -v '3.16.14.13' -- --with-v8-lib`, but those are not the versions that work for the current Awestruct version.\r\n\r\nAny ideas?"}}