Repository navigation
Open
Description
I'm running a bundled project (bundler 1.8.25) which is using perftools.rb v2.0.0. I'm running it on a debian VM (2.6.32-5-amd64) within Vagrant
When I run bundle, it fails when installing perftools.rb (2.0.0)
gem_make.out contains:
/home/vagrant/.rvm/rubies/ruby-1.9.2-p320/bin/ruby extconf.rb
(I'm about to compile google-perftools.. this will definitely take a while)
-- tar zpxvf gperftools-2.0.tar.gz
-- patch -p1 < ../../../patches/perftools.patch
-- patch -p1 < ../../../patches/perftools-notests.patch
-- patch -p1 < ../../../patches/perftools-pprof.patch
-- patch -p1 < ../../../patches/perftools-gc.patch
-- patch -p1 < ../../../patches/perftools-debug.patch
-- patch -p1 < ../../../patches/perftools-objects.patch
-- patch -p1 < ../../../patches/perftools-frames.patch
-- patch -p1 < ../../../patches/perftools-realtime.patch
-- sed -i -e 's,SpinLock,ISpinLock,g' src/*.cc src/*.h src/base/*.cc src/base/*.h
-- ./configure --disable-heap-profiler --disable-heap-checker --disable-debugalloc --disable-shared
-- make
*** 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=/home/vagrant/.rvm/rubies/ruby-1.9.2-p320/bin/ruby
extconf.rb:6:in `sys': make failed, please report to https://github.com/tmm1/perfools.rb/issues/new with /silo/bundle/ruby/1.9.1/gems/perftools.rb-2.0.0/ext/src/mkmf.log and /silo/bundle/ruby/1.9.1/gems/perftools.rb-2.0.0/ext/src/gperftools-2.0/config.log (RuntimeError)
from extconf.rb:77:in `block (2 levels) in <main>'
from extconf.rb:72:in `chdir'
from extconf.rb:72:in `block in <main>'
from extconf.rb:36:in `chdir'
from extconf.rb:36:in `<main>'
I've attached the mkmf.log and the config.log. It looks like HAVE_MMAP is not set, but it is unclear to me how to go about fixing that.
The mkmf.log: https://gist.github.com/davidann/5919666
The config.log: https://gist.github.com/davidann/5919641
Metadata
Metadata
Assignees
Labels
No labels
Activity
tmm1 commentedon Jul 8, 2013
Very strange. I'm using perftools on debian lenny and squeeze machines without issue.
Maybe you can try the mmap test program to see why its failing: