Cannot build perftools.rb #3

Closed
nirvdrum opened this Issue Sep 18, 2009 · 2 comments

Comments

Projects
None yet
3 participants

Perhaps this is Snow Leopard related, but when I try to build I get the following error:

$ sudo gem install perftools.rb
Password:
Building native extensions.  This could take a while...
ERROR:  Error installing perftools.rb:
    ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
checking for rb_thread_blocking_region()... no
*** 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=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1200:in `stat': No such file or directory - .libs/libprofiler.a (Errno::ENOENT)
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1200:in `lstat'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1178:in `stat'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1260:in `copy_file'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:463:in `copy_file'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:383:in `cp'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1395:in `fu_each_src_dest'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1411:in `fu_each_src_dest0'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1393:in `fu_each_src_dest'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:382:in `cp'
    from extconf.rb:55
    from extconf.rb:52:in `chdir'
    from extconf.rb:52
    from extconf.rb:24:in `chdir'
    from extconf.rb:24


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/perftools.rb-0.2.5 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/perftools.rb-0.2.5/ext/gem_make.out

I'm seeing this as well on SL

Owner

tmm1 commented Oct 13, 2009

Snow leopard issues were fixed in >= 0.3.0

tmm1 added a commit that referenced this issue Aug 21, 2012

prevent explosions when stopping while paused
Breakpoint 1, CpuProfiler::DisableHandler (this=0x7fa1ce890ce0) at src/profiler.cc:271
271   RAW_CHECK(prof_handler_token_ != NULL, "SIGPROF handler is not registered");
Current language:  auto; currently c++

Program received signal SIGABRT, Aborted.
0x00007fa1d7df9ed5 in raise () from /lib/libc.so.6
(gdb) where
 #0  0x00007fa1d7df9ed5 in raise () from /lib/libc.so.6
 #1  0x00007fa1d7dfb3f3 in abort () from /lib/libc.so.6
 #2  0x00007fa1ce685634 in CpuProfiler::DisableHandler (this=0x7fa1ce890ce0) at src/profiler.cc:271
 #3  0x00007fa1ce6859b0 in CpuProfiler::Stop (this=0x7fa1ce890ce0) at src/profiler.cc:209
 #4  0x00007fa1ce685a2a in ~CpuProfiler (this=0x7fa1ce890ce0) at src/profiler.cc:196
 #5  0x00007fa1d7dfc9cd in exit () from /lib/libc.so.6
 #6  0x0000000000425310 in ruby_stop (ex=<value optimized out>) at eval.c:1689
 #7  0x000000000042dcd1 in ruby_run () at eval.c:1710
 #8  0x0000000000412063 in main (argc=9, argv=0x7fff08f9b6e8, envp=<value optimized out>) at main.c:48

This issue was closed.

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