Skip to content


build v0.2.2 failed on Ubuntu #19

stereobooster opened this Issue · 1 comment

1 participant

Installing mustang (0.2.2) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb 
checking for main() in -lv8... no
cd ~/.bundler/tmp/18920/gems/mustang-0.2.2/vendor/v8 && scons mode=release snapshot=off library=static arch=ia32
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o obj/release/accessors.o -c -fPIC -fno-builtin-memcpy -shared -Wall -Werror -W -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -m32 -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 -m32 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -DV8_TARGET_ARCH_IA32 -DV8_FAST_TLS -DENABLE_DEBUGGER_SUPPORT -DENABLE_VMSTATE_TRACKING -DENABLE_LOGGING_AND_PROFILING -Isrc src/
g++ -o obj/release/allocation.o -c -fPIC -fno-builtin-memcpy -shared -Wall -Werror -W -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -m32 -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 -m32 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -DV8_TARGET_ARCH_IA32 -DV8_FAST_TLS -DENABLE_DEBUGGER_SUPPORT -DENABLE_VMSTATE_TRACKING -DENABLE_LOGGING_AND_PROFILING -Isrc src/
g++ -o obj/release/api.o -c -fPIC -fno-builtin-memcpy -shared -Wall -Werror -W -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -m32 -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 -m32 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -DV8_TARGET_ARCH_IA32 -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 /home/slavic/.bundler/tmp/18920/gems/mustang-0.2.2 for inspection.
Results logged to /home/slavic/.bundler/tmp/18920/gems/mustang-0.2.2/ext/v8/gem_make.out

System info

$ uname -a
Linux  3.2.0-24-generic #37-Ubuntu SMP Wed Apr 25 08:43:52 UTC 2012 i686 athlon i386 GNU/Linux
$ ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]
$ gem -v

Installation from git works just fine. Add in Gemfile gem 'mustang', :git => "". Maybe update gem at rubygems? Same request as #18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.