Cannot build perftools.rb #3

nirvdrum opened this Issue Sep 18, 2009 · 2 comments


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
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:
/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


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/
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/
(gdb) where
 #0  0x00007fa1d7df9ed5 in raise () from /lib/
 #1  0x00007fa1d7dfb3f3 in abort () from /lib/
 #2  0x00007fa1ce685634 in CpuProfiler::DisableHandler (this=0x7fa1ce890ce0) at src/
 #3  0x00007fa1ce6859b0 in CpuProfiler::Stop (this=0x7fa1ce890ce0) at src/
 #4  0x00007fa1ce685a2a in ~CpuProfiler (this=0x7fa1ce890ce0) at src/
 #5  0x00007fa1d7dfc9cd in exit () from /lib/
 #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