Skip to content

Instantly share code, notes, and snippets.

Created January 2, 2013 00:07
Show Gist options
  • Save anonymous/39a854aed770e35bd109 to your computer and use it in GitHub Desktop.
Save anonymous/39a854aed770e35bd109 to your computer and use it in GitHub Desktop.
gem install libv8 still fails on FreeBSD 9
dmz-www-rb-00# gem install libv8
Building native extensions. This could take a while...
ERROR: Error installing libv8:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby19 extconf.rb
creating Makefile
Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher
Using compiler: g++
cc1plus: warnings being treated as errors
In file included from ../src/elements.h:33,
from ../src/objects-inl.h:38,
from ../src/v8.h:60,
from ../src/accessors.cc:28:
../src/heap.h: In member function 'v8::internal::byte** v8::internal::Heap::store_buffer_top_address()':
../src/heap.h:1225: warning: dereferencing type-punned pointer will break strict-aliasing rules
gmake[1]: *** [/usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/v8_base/src/accessors.o] Error 1
gmake: *** [x64.release] Error 2
GYP_GENERATORS=make \
build/gyp/gyp --generator-output="out" build/all.gyp \
-Ibuild/standalone.gypi --depth=. \
-Dv8_target_arch=x64 \
-S.x64 -Dhost_arch=x64
gmake[1]: Entering directory `/usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out'
CXX(target) /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/allocation.o
CXX(target) /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o
CXX(target) /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum.o
CXX(target) /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum-dtoa.o
CXX(target) /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o
CXX(target) /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/conversions.o
CXX(target) /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/diy-fp.o
CXX(target) /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/dtoa.o
CXX(target) /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fast-dtoa.o
CXX(target) /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fixed-dtoa.o
CXX(target) /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/once.o
CXX(target) /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparse-data.o
CXX(target) /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser.o
CXX(target) /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser-api.o
CXX(target) /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/scanner.o
CXX(target) /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/strtod.o
CXX(target) /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/token.o
CXX(target) /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/unicode.o
CXX(target) /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/utils.o
AR(target) /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/tools/gyp/libpreparser_lib.a
CXX(target) /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser/preparser/preparser-process.o
LINK(target) /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/preparser
CXX(target) /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/v8_base/src/accessors.o
gmake[1]: Leaving directory `/usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/vendor/v8/out'
Gem files will remain installed in /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.9/gems/libv8-3.11.8.4/ext/libv8/gem_make.out
dmz-www-rb-00# uname -a; date; uptime
FreeBSD dmz-www-rb-00 9.0-RELEASE-p5 FreeBSD 9.0-RELEASE-p5 #0: Sun Nov 25 15:47:30 EET 2012 root@intra-jailer-00:/usr/obj/usr/src/sys/GENERIC+MULTIFIB amd64
Wed Jan 2 02:03:07 EET 2013
2:03AM up 17:25, 2 users, load averages: 0.16, 0.58, 0.47
dmz-www-rb-00#
@ignisf
Copy link

ignisf commented Jan 2, 2013

Here's 10.0

  * executing "cd /usr/local/www/skeye/releases/20130102035115 && bundle install --gemfile /usr/local/www/skeye/releases/20130102035115/Gemfile --path /usr/local/www/skeye/shared/bundle --deployment --quiet --without development test"
    servers: ["127.0.0.1"]
    [127.0.0.1:2222] executing command
 ** [out :: 127.0.0.1:2222] Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
 ** [out :: 127.0.0.1:2222] 
 ** [out :: 127.0.0.1:2222] /usr/local/bin/ruby19 extconf.rb
 ** [out :: 127.0.0.1:2222] creating Makefile
 ** [out :: 127.0.0.1:2222] Unable to find a compiler officially supported by v8.
 ** [out :: 127.0.0.1:2222] It is recommended to use GCC v4.4 or higher
 ** [out :: 127.0.0.1:2222] Using compiler: g++
 ** [out :: 127.0.0.1:2222] cc1plus: warnings being treated as errors
 ** [out :: 127.0.0.1:2222] In file included from ../src/elements.h:33,
 ** [out :: 127.0.0.1:2222] from ../src/objects-inl.h:38,
 ** [out :: 127.0.0.1:2222] from ../src/v8.h:60,
 ** [out :: 127.0.0.1:2222] from ../src/accessors.cc:28:
 ** [out :: 127.0.0.1:2222] ../src/heap.h: In member function 'v8::internal::byte** v8::internal::Heap::store_buffer_top_address()':
 ** [out :: 127.0.0.1:2222] ../src/heap.h:1225: warning: dereferencing type-punned pointer will break strict-aliasing rules
 ** [out :: 127.0.0.1:2222] gmake[1]: *** [/usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/v8_base/src/accessors.o] Error 1
 ** [out :: 127.0.0.1:2222] gmake: *** [x64.release] Error 2
 ** [out :: 127.0.0.1:2222] GYP_GENERATORS=make \
 ** [out :: 127.0.0.1:2222] build/gyp/gyp --generator-output="out" build/all.gyp \
 ** [out :: 127.0.0.1:2222] -Ibuild/standalone.gypi --depth=. \
 ** [out :: 127.0.0.1:2222] -Dv8_target_arch=x64 \
 ** [out :: 127.0.0.1:2222] -S.x64 -Dhost_arch=x64
 ** [out :: 127.0.0.1:2222] gmake[1]: Entering directory `/usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out'
 ** [out :: 127.0.0.1:2222] CXX(target) /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/allocation.o
 ** [out :: 127.0.0.1:2222] CXX(target) /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o
 ** [out :: 127.0.0.1:2222] CXX(target) /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum.o
 ** [out :: 127.0.0.1:2222] CXX(target) /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum-dtoa.o
 ** [out :: 127.0.0.1:2222] CXX(target) /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o
 ** [out :: 127.0.0.1:2222] CXX(target) /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/conversions.o
 ** [out :: 127.0.0.1:2222] CXX(target) /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/diy-fp.o
 ** [out :: 127.0.0.1:2222] CXX(target) /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/dtoa.o
 ** [out :: 127.0.0.1:2222] CXX(target) /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fast-dtoa.o
 ** [out :: 127.0.0.1:2222] CXX(target) /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fixed-dtoa.o
 ** [out :: 127.0.0.1:2222] CXX(target) /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/once.o
 ** [out :: 127.0.0.1:2222] CXX(target) /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparse-data.o
 ** [out :: 127.0.0.1:2222] CXX(target) /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser.o
 ** [out :: 127.0.0.1:2222] CXX(target) /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser-api.o
 ** [out :: 127.0.0.1:2222] CXX(target) /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/scanner.o
 ** [out :: 127.0.0.1:2222] CXX(target) /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/strtod.o
 ** [out :: 127.0.0.1:2222] CXX(target) /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/token.o
 ** [out :: 127.0.0.1:2222] CXX(target) /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/unicode.o
 ** [out :: 127.0.0.1:2222] CXX(target) /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser_lib/src/utils.o
 ** [out :: 127.0.0.1:2222] AR(target) /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/tools/gyp/libpreparser_lib.a
 ** [out :: 127.0.0.1:2222] CXX(target) /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/preparser/preparser/preparser-process.o
 ** [out :: 127.0.0.1:2222] LINK(target) /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/preparser
 ** [out :: 127.0.0.1:2222] CXX(target) /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out/x64.release/obj.target/v8_base/src/accessors.o
 ** [out :: 127.0.0.1:2222] gmake[1]: Leaving directory `/usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/vendor/v8/out'
 ** [out :: 127.0.0.1:2222] 
 ** [out :: 127.0.0.1:2222] 
 ** [out :: 127.0.0.1:2222] Gem files will remain installed in /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4 for inspection.
 ** [out :: 127.0.0.1:2222] Results logged to /usr/local/www/skeye/shared/bundle/ruby/1.9/gems/libv8-3.11.8.4/ext/libv8/gem_make.out
 ** [out :: 127.0.0.1:2222] An error occured while installing libv8 (3.11.8.4), and Bundler cannot continue.
 ** [out :: 127.0.0.1:2222] Make sure that `gem install libv8 -v '3.11.8.4'` succeeds before bundling.
    command finished in 135136ms
*** [deploy:update_code] rolling back
  * executing "rm -rf /usr/local/www/skeye/releases/20130102035115; true"
    servers: ["127.0.0.1"]
    [127.0.0.1:2222] executing command
    command finished in 352ms
failed: "sh -c 'cd /usr/local/www/skeye/releases/20130102035115 && bundle install --gemfile /usr/local/www/skeye/releases/20130102035115/Gemfile --path /usr/local/www/skeye/shared/bundle --deployment --quiet --without development test'" on 127.0.0.1:2222

[ignisf@tealmonkey skeye]$ cap shell HOSTS=127.0.0.1:2222
  * 2013-01-02 05:56:34 executing `shell'
====================================================================
Welcome to the interactive Capistrano shell! This is an experimental
feature, and is liable to change in future releases. Type 'help' for
a summary of how to use the shell.
--------------------------------------------------------------------
cap> uname -a
[establishing connection(s) to 127.0.0.1:2222]
Password: 
 ** [out :: 127.0.0.1:2222] FreeBSD virtbsd.local 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Thu Dec 27 17:29:13 EET 2012     root@virtbsd.local:/usr/obj/usr/src/sys/GENERIC_NODEBUG  amd64
cap> gcc -v
*** [err :: 127.0.0.1:2222] Using built-in specs.
*** [err :: 127.0.0.1:2222] Target: amd64-undermydesk-freebsd
*** [err :: 127.0.0.1:2222] Configured with: FreeBSD/amd64 system compiler
*** [err :: 127.0.0.1:2222] Thread model: posix
*** [err :: 127.0.0.1:2222] gcc version 4.2.1 20070831 patched [FreeBSD]
cap>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment