Skip to content

Loading…

build v0.2.2 failed on Ubuntu #19

Closed
stereobooster opened this Issue · 1 comment

1 participant

@stereobooster
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/accessors.cc
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/allocation.cc
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/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 `<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
1.8.11
@stereobooster

Installation from git works just fine. Add in Gemfile gem 'mustang', :git => "https://github.com/nu7hatch/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.