-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
I'm on macOS 15.0, with Ruby 3.4.1, and I get:
$ gem install ruby-prof-flamegraph
Building native extensions. This could take a while...
ERROR: Error installing ruby-prof-flamegraph:
ERROR: Failed to build gem native extension.
current directory: /Users/meisel/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/ruby-prof-0.18.0/ext/ruby_prof
/Users/meisel/.rbenv/versions/3.4.1/bin/ruby extconf.rb
checking for rb_gc_stat()... yes
checking for rb_gc_count()... yes
checking for rb_remove_event_hook_with_data()... yes
checking for rb_os_allocated_objects()... no
checking for rb_gc_allocated_size()... no
checking for rb_gc_collections()... no
checking for rb_gc_time()... no
checking for rb_gc_total_time()... no
checking for rb_gc_total_mallocs()... no
checking for rb_gc_total_malloced_bytes()... no
checking for rb_heap_total_mem()... no
checking for rb_gc_heap_info()... no
creating Makefile
current directory: /Users/meisel/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/ruby-prof-0.18.0/ext/ruby_prof
make DESTDIR\= sitearchdir\=./.gem.20250222-10923-enkwl1 sitelibdir\=./.gem.20250222-10923-enkwl1 clean
current directory: /Users/meisel/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/ruby-prof-0.18.0/ext/ruby_prof
make DESTDIR\= sitearchdir\=./.gem.20250222-10923-enkwl1 sitelibdir\=./.gem.20250222-10923-enkwl1
compiling rp_call_info.c
rp_call_info.c:78:25: warning: 'rb_data_object_wrap_warning' is deprecated: by TypedData [-Wdeprecated-declarations]
78 | call_info->object = Data_Wrap_Struct(cCallInfo, prof_call_info_mark, prof_call_info_ruby_gc_free, call_info);
| ^
/Users/meisel/.rbenv/versions/3.4.1/include/ruby-3.4.0/ruby/internal/core/rdata.h:199:5: note: expanded from macro 'Data_Wrap_Struct'
199 | rb_data_object_wrap( \
| ^
/Users/meisel/.rbenv/versions/3.4.1/include/ruby-3.4.0/ruby/internal/core/rdata.h:363:31: note: expanded from macro 'rb_data_object_wrap'
363 | #define rb_data_object_wrap RUBY_MACRO_SELECT(rb_data_object_wrap_2, RUBY_UNTYPED_DATA_WARNING)
| ^
/Users/meisel/.rbenv/versions/3.4.1/include/ruby-3.4.0/ruby/internal/core/rdata.h:50:35: note: expanded from macro 'RUBY_MACRO_SELECT'
50 | #define RUBY_MACRO_SELECT(x, y) RBIMPL_MACRO_SELECT(x, y)
| ^
/Users/meisel/.rbenv/versions/3.4.1/include/ruby-3.4.0/ruby/internal/core/rdata.h:49:35: note: expanded from macro 'RBIMPL_MACRO_SELECT'
49 | #define RBIMPL_MACRO_SELECT(x, y) x ## y
| ^
<scratch space>:56:1: note: expanded from here
56 | rb_data_object_wrap_1
| ^
/Users/meisel/.rbenv/versions/3.4.1/include/ruby-3.4.0/ruby/internal/core/rdata.h:361:31: note: expanded from macro 'rb_data_object_wrap_1'
361 | #define rb_data_object_wrap_1 rb_data_object_wrap_warning
| ^
/Users/meisel/.rbenv/versions/3.4.1/include/ruby-3.4.0/ruby/internal/core/rdata.h:277:1: note: 'rb_data_object_wrap_warning' has been explicitly marked deprecated here
277 | RBIMPL_ATTRSET_UNTYPED_DATA_FUNC()
| ^
/Users/meisel/.rbenv/versions/3.4.1/include/ruby-3.4.0/ruby/internal/core/rdata.h:47:5: note: expanded from macro 'RBIMPL_ATTRSET_UNTYPED_DATA_FUNC'
47 | RBIMPL_ATTR_DEPRECATED(("by TypedData"))
| ^
/Users/meisel/.rbenv/versions/3.4.1/include/ruby-3.4.0/ruby/internal/attr/deprecated.h:36:53: note: expanded from macro 'RBIMPL_ATTR_DEPRECATED'
36 | # define RBIMPL_ATTR_DEPRECATED(msg) __attribute__((__deprecated__ msg))
| ^
1 warning generated.
compiling rp_measure.c
compiling rp_measure_allocations.c
compiling rp_measure_cpu_time.c
rp_measure_cpu_time.c:61:1: warning: non-void function does not return a value [-Wreturn-type]
61 | }
| ^
1 warning generated.
compiling rp_measure_gc_runs.c
compiling rp_measure_gc_time.c
compiling rp_measure_memory.c
compiling rp_measure_process_time.c
compiling rp_measure_wall_time.c
compiling rp_method.c
rp_method.c:390:22: warning: 'rb_data_object_wrap_warning' is deprecated: by TypedData [-Wdeprecated-declarations]
390 | result->object = Data_Wrap_Struct(cMethodInfo, prof_method_mark, prof_method_ruby_gc_free, result);
| ^
/Users/meisel/.rbenv/versions/3.4.1/include/ruby-3.4.0/ruby/internal/core/rdata.h:199:5: note: expanded from macro 'Data_Wrap_Struct'
199 | rb_data_object_wrap( \
| ^
/Users/meisel/.rbenv/versions/3.4.1/include/ruby-3.4.0/ruby/internal/core/rdata.h:363:31: note: expanded from macro 'rb_data_object_wrap'
363 | #define rb_data_object_wrap RUBY_MACRO_SELECT(rb_data_object_wrap_2, RUBY_UNTYPED_DATA_WARNING)
| ^
/Users/meisel/.rbenv/versions/3.4.1/include/ruby-3.4.0/ruby/internal/core/rdata.h:50:35: note: expanded from macro 'RUBY_MACRO_SELECT'
50 | #define RUBY_MACRO_SELECT(x, y) RBIMPL_MACRO_SELECT(x, y)
| ^
/Users/meisel/.rbenv/versions/3.4.1/include/ruby-3.4.0/ruby/internal/core/rdata.h:49:35: note: expanded from macro 'RBIMPL_MACRO_SELECT'
49 | #define RBIMPL_MACRO_SELECT(x, y) x ## y
| ^
<scratch space>:56:1: note: expanded from here
56 | rb_data_object_wrap_1
| ^
/Users/meisel/.rbenv/versions/3.4.1/include/ruby-3.4.0/ruby/internal/core/rdata.h:361:31: note: expanded from macro 'rb_data_object_wrap_1'
361 | #define rb_data_object_wrap_1 rb_data_object_wrap_warning
| ^
/Users/meisel/.rbenv/versions/3.4.1/include/ruby-3.4.0/ruby/internal/core/rdata.h:277:1: note: 'rb_data_object_wrap_warning' has been explicitly marked deprecated here
277 | RBIMPL_ATTRSET_UNTYPED_DATA_FUNC()
| ^
/Users/meisel/.rbenv/versions/3.4.1/include/ruby-3.4.0/ruby/internal/core/rdata.h:47:5: note: expanded from macro 'RBIMPL_ATTRSET_UNTYPED_DATA_FUNC'
47 | RBIMPL_ATTR_DEPRECATED(("by TypedData"))
| ^
/Users/meisel/.rbenv/versions/3.4.1/include/ruby-3.4.0/ruby/internal/attr/deprecated.h:36:53: note: expanded from macro 'RBIMPL_ATTR_DEPRECATED'
36 | # define RBIMPL_ATTR_DEPRECATED(msg) __attribute__((__deprecated__ msg))
| ^
rp_method.c:423:5: error: incompatible function pointer types initializing 'int (*)(st_data_t, st_data_t)' (aka 'int (*)(unsigned long, unsigned long)') with an expression of type 'int (prof_method_key_t *, prof_method_key_t *)' [-Wincompatible-function-pointer-types]
423 | method_table_cmp,
| ^~~~~~~~~~~~~~~~
rp_method.c:424:5: error: incompatible function pointer types initializing 'st_index_t (*)(st_data_t)' (aka 'unsigned long (*)(unsigned long)') with an expression of type 'st_index_t (prof_method_key_t *)' (aka 'unsigned long (prof_method_key_t *)') [-Wincompatible-function-pointer-types]
424 | method_table_hash
| ^~~~~~~~~~~~~~~~~
1 warning and 2 errors generated.
make: *** [rp_method.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/meisel/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/ruby-prof-0.18.0 for inspection.
Results logged to /Users/meisel/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/extensions/arm64-darwin-24/3.4.0/ruby-prof-0.18.0/gem_make.out
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels