nu7hatch/mustang — Issue #15: Can't build v8/mustang
Author: Ivoz
Created: 2011-10-28 14:14:01+00:00
State: open

I'm originally trying to install SpreeCommerce. I found out I need ExecJS. Then I found out I need a JS runtime, so I chose mustang.

My system:
`Linux ivo-laptop-nix 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux`

I am still a bit of a linux noobie. I'm not sure if this is the right place to report this, or ubuntu, or v8...

Here is the log of the failed install:

ivo@ivo-laptop-nix:~/rails/new$ sudo gem install mustang
Building native extensions. This could take a while...
ERROR: Error installing mustang:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.9.1 extconf.rb
checking for main() in -lv8... no
------------------------------
cd /var/lib/gems/1.9.1/gems/mustang-0.2.2/vendor/v8 && scons mode=release snapshot=off library=static arch=x64
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o obj/release/api.o -c -fPIC -fno-builtin-memcpy -shared -Wall -Werror -W -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -m64 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -fno-rtti -fno-exceptions -fvisibility=hidden -fPIC -fno-builtin-memcpy -shared -Wall -Werror -W -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -m64 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -DV8_TARGET_ARCH_X64 -DV8_FAST_TLS -DENABLE_DEBUGGER_SUPPORT -DENABLE_VMSTATE_TRACKING -DENABLE_LOGGING_AND_PROFILING -Isrc src/api.cc
src/api.cc: In function 'void v8::MessageHandlerWrapper(const v8::Debug::Message&)':
src/api.cc:4956:80: error: 'json.v8::String::Value::length_' may be used uninitialized in this function [-Werror=uninitialized]
src/allocation.h:93:3: error: 'json.v8::String::Value::str_' may be used uninitialized in this function [-Werror=uninitialized]
src/api.cc:4955:23: note: 'json.v8::String::Value::str_' was declared here
cc1plus: all warnings being treated as errors

scons: *** [obj/release/api.o] Error 1
scons: building terminated because of errors.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby1.9.1
--with-v8lib
--without-v8lib
--with-v8-dir
--without-v8-dir
--with-v8-include
--without-v8-include=${v8-dir}/include
--with-v8-lib
--without-v8-lib=${v8-dir}/lib
extconf.rb:50:in `

': can't convert nil into String (TypeError)
------------------------------

Gem files will remain installed in /var/lib/gems/1.9.1/gems/mustang-0.2.2 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/mustang-0.2.2/ext/v8/gem_make.out