Can't build v8/mustang #15

Ivoz opened this Issue Oct 28, 2011 · 2 comments

3 participants


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 is 64-bit Ubuntu 11.10:
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...

ATM I will just try therubyracer.

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/
src/ In function 'void v8::MessageHandlerWrapper(const v8::Debug::Message&)':
src/ 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/ 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:
extconf.rb:50:in `<main>': 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

same errors, maybe just happened on Ubuntu 11.10

pdf commented Nov 8, 2011

Pull request to fix:


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