虚無庵

徒然なるままに

今日の ruby build 2024-01-18

今日のビルド

264b7363aa7e47a7868b91038a0578970bc19c1f までを pull ってきてビルド。エラー/警告ともになし。

  Files:        933

  Classes:     1224 ( 285 undocumented)
  Modules:      221 (  68 undocumented)
  Constants:   2497 ( 638 undocumented)
  Attributes:  1453 ( 239 undocumented)
  Methods:    12010 (2112 undocumented)

  Total:      17405 (3342 undocumented)
   80.80% documented

  Elapsed: 32.4s

今日のテスト

make test-all を実行。

Finished tests in 832.286004s, 31.6874 tests/s, 7565.8187 assertions/s.
26373 tests, 6296925 assertions, 0 failures, 0 errors, 102 skips

ruby -v: ruby 3.4.0dev (2024-01-18T09:09:42Z master 264b7363aa) [x86_64-linux]

今日のビルド(Universal Parser 有効化)

264b7363aa7e47a7868b91038a0578970bc19c1f までを pull ってきてビルド。

ruby_parser.c:658:21: warning: initialization left-hand side might be a candidate for a format attribute [-Wsuggest-attribute=format]
  658 |     .compile_warn = rb_compile_warn,
      |                     ^~~~~~~~~~~~~~~
ruby_parser.c:659:24: warning: initialization left-hand side might be a candidate for a format attribute [-Wsuggest-attribute=format]
  659 |     .compile_warning = rb_compile_warning,
      |                        ^~~~~~~~~~~~~~~~~~
ruby_parser.c:660:12: warning: initialization left-hand side might be a candidate for a format attribute [-Wsuggest-attribute=format]
  660 |     .bug = rb_bug,
      |            ^~~~~~
ruby_parser.c:661:14: warning: initialization left-hand side might be a candidate for a format attribute [-Wsuggest-attribute=format]
  661 |     .fatal = rb_fatal,
      |              ^~~~~~~~
cc1: note: unrecognized command-line option ‘-Wno-self-assign’ may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option ‘-Wno-parentheses-equality’ may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option ‘-Wno-constant-logical-operand’ may have been intended to silence earlier diagnostics
  Files:        933

  Classes:     1224 ( 285 undocumented)
  Modules:      221 (  68 undocumented)
  Constants:   2497 ( 638 undocumented)
  Attributes:  1453 ( 239 undocumented)
  Methods:    12010 (2112 undocumented)

  Total:      17405 (3342 undocumented)
   80.80% documented

  Elapsed: 35.3s

今日のテスト(Universal Parser 有効化)

make test-all を実行。

Finished tests in 954.309720s, 27.6357 tests/s, 6604.3286 assertions/s.
26373 tests, 6302575 assertions, 0 failures, 0 errors, 102 skips

ruby -v: ruby 3.4.0dev (2024-01-18T09:09:42Z master 264b7363aa) [x86_64-linux]

今日のビルド(YJIT 有効化)

264b7363aa7e47a7868b91038a0578970bc19c1f までを pull ってきてビルド。エラー/警告ともになし。

今日のテスト(YJIT 有効化)

make test-all を実行。

Finished tests in 905.397704s, 29.1286 tests/s, 6962.7524 assertions/s.
26373 tests, 6304060 assertions, 0 failures, 0 errors, 102 skips

ruby -v: ruby 3.4.0dev (2024-01-18T09:09:42Z master 264b7363aa) [x86_64-linux]

今日のビルド(RJIT 有効化)

264b7363aa7e47a7868b91038a0578970bc19c1f までを pull ってきてビルド。エラー/警告ともになし。

今日のテスト(RJIT 有効化)

make test-all を実行。

  1) Failure:
TestGc#test_thrashing_for_young_objects [/home/jinroq/dev/sandbox/my-ruby-build/build-rjit-ruby-repo/test/ruby/test_gc.rb:676]:
before_stats: {:count=>27, :time=>50, :marking_time=>33, :sweeping_time=>16, :heap_allocated_pages=>152, :heap_sorted_length=>300, :heap_allocatable_pages=>148, :heap_available_slots=>210587, :heap_live_slots=>173115, :heap_free_slots=>37472, :heap_final_slots=>0, :heap_marked_slots=>129252, :heap_eden_pages=>152, :heap_tomb_pages=>0, :total_allocated_pages=>158, :total_freed_pages=>6, :total_allocated_objects=>1360379, :total_freed_objects=>1187264, :malloc_increase_bytes=>2120, :malloc_increase_bytes_limit=>16777216, :minor_gc_count=>22, :major_gc_count=>5, :compact_count=>0, :read_barrier_faults=>0, :total_moved_objects=>0, :remembered_wb_unprotected_objects=>0, :remembered_wb_unprotected_objects_limit=>1214, :old_objects=>129242, :old_objects_limit=>242818, :oldmalloc_increase_bytes=>2120, :oldmalloc_increase_bytes_limit=>19350882}
before_stat_heap: {0=>{:slot_size=>40, :heap_allocatable_pages=>0, :heap_eden_pages=>118, :heap_eden_slots=>193209, :heap_tomb_pages=>0, :heap_tomb_slots=>0, :total_allocated_pages=>118, :total_freed_pages=>0, :force_major_gc_count=>1, :force_incremental_marking_finish_count=>1, :total_allocated_objects=>1322127, :total_freed_objects=>1154212}, 1=>{:slot_size=>80, :heap_allocatable_pages=>1, :heap_eden_pages=>11, :heap_eden_slots=>9002, :heap_tomb_pages=>0, :heap_tomb_slots=>0, :total_allocated_pages=>12, :total_freed_pages=>1, :force_major_gc_count=>0, :force_incremental_marking_finish_count=>1, :total_allocated_objects=>21488, :total_freed_objects=>18259}, 2=>{:slot_size=>160, :heap_allocatable_pages=>1, :heap_eden_pages=>19, :heap_eden_slots=>7765, :heap_tomb_pages=>0, :heap_tomb_slots=>0, :total_allocated_pages=>24, :total_freed_pages=>5, :force_major_gc_count=>0, :force_incremental_marking_finish_count=>0, :total_allocated_objects=>16752, :total_freed_objects=>14724}, 3=>{:slot_size=>320, :heap_allocatable_pages=>48, :heap_eden_pages=>2, :heap_eden_slots=>408, :heap_tomb_pages=>0, :heap_tomb_slots=>0, :total_allocated_pages=>2, :total_freed_pages=>0, :force_major_gc_count=>0, :force_incremental_marking_finish_count=>0, :total_allocated_objects=>59, :total_freed_objects=>51}, 4=>{:slot_size=>640, :heap_allocatable_pages=>98, :heap_eden_pages=>2, :heap_eden_slots=>203, :heap_tomb_pages=>0, :heap_tomb_slots=>0, :total_allocated_pages=>2, :total_freed_pages=>0, :force_major_gc_count=>0, :force_incremental_marking_finish_count=>0, :total_allocated_objects=>23, :total_freed_objects=>18}}
after_stats: {:count=>43, :time=>64, :marking_time=>35, :sweeping_time=>28, :heap_allocated_pages=>152, :heap_sorted_length=>300, :heap_allocatable_pages=>148, :heap_available_slots=>210587, :heap_live_slots=>129433, :heap_free_slots=>81154, :heap_final_slots=>0, :heap_marked_slots=>129372, :heap_eden_pages=>152, :heap_tomb_pages=>0, :total_allocated_pages=>158, :total_freed_pages=>6, :total_allocated_objects=>2364729, :total_freed_objects=>2235296, :malloc_increase_bytes=>1912, :malloc_increase_bytes_limit=>16777216, :minor_gc_count=>38, :major_gc_count=>5, :compact_count=>0, :read_barrier_faults=>0, :total_moved_objects=>0, :remembered_wb_unprotected_objects=>0, :remembered_wb_unprotected_objects_limit=>1214, :old_objects=>129359, :old_objects_limit=>242818, :oldmalloc_increase_bytes=>6600, :oldmalloc_increase_bytes_limit=>19350882}
after_stat_heap: {0=>{:slot_size=>40, :heap_allocatable_pages=>0, :heap_eden_pages=>118, :heap_eden_slots=>193209, :heap_tomb_pages=>0, :heap_tomb_slots=>0, :total_allocated_pages=>118, :total_freed_pages=>0, :force_major_gc_count=>1, :force_incremental_marking_finish_count=>1, :total_allocated_objects=>2326181, :total_freed_objects=>2201981}, 1=>{:slot_size=>80, :heap_allocatable_pages=>1, :heap_eden_pages=>11, :heap_eden_slots=>9002, :heap_tomb_pages=>0, :heap_tomb_slots=>0, :total_allocated_pages=>12, :total_freed_pages=>1, :force_major_gc_count=>0, :force_incremental_marking_finish_count=>1, :total_allocated_objects=>21559, :total_freed_objects=>18317}, 2=>{:slot_size=>160, :heap_allocatable_pages=>1, :heap_eden_pages=>19, :heap_eden_slots=>7765, :heap_tomb_pages=>0, :heap_tomb_slots=>0, :total_allocated_pages=>24, :total_freed_pages=>5, :force_major_gc_count=>0, :force_incremental_marking_finish_count=>0, :total_allocated_objects=>16971, :total_freed_objects=>14929}, 3=>{:slot_size=>320, :heap_allocatable_pages=>48, :heap_eden_pages=>2, :heap_eden_slots=>408, :heap_tomb_pages=>0, :heap_tomb_slots=>0, :total_allocated_pages=>2, :total_freed_pages=>0, :force_major_gc_count=>0, :force_incremental_marking_finish_count=>0, :total_allocated_objects=>59, :total_freed_objects=>51}, 4=>{:slot_size=>640, :heap_allocatable_pages=>98, :heap_eden_pages=>2, :heap_eden_slots=>203, :heap_tomb_pages=>0, :heap_tomb_slots=>0, :total_allocated_pages=>2, :total_freed_pages=>0, :force_major_gc_count=>0, :force_incremental_marking_finish_count=>0, :total_allocated_objects=>23, :total_freed_objects=>18}}.
<0> expected but was
<6>.

  2) Failure:
TestGc#test_gc_parameter_init_slots [/home/jinroq/dev/sandbox/my-ruby-build/build-rjit-ruby-repo/test/ruby/test_gc.rb:477]:
{:slot_size=>160, :heap_allocatable_pages=>1, :heap_eden_pages=>21, :heap_eden_slots=>8587, :heap_tomb_pages=>0, :heap_tomb_slots=>0, :total_allocated_pages=>24, :total_freed_pages=>3, :force_major_gc_count=>0, :force_incremental_marking_finish_count=>0, :total_allocated_objects=>16318, :total_freed_objects=>8465}.
Expected 8995 to be >= 10000.

  3) Failure:
TestYJIT#test_build_large_struct [/home/jinroq/dev/sandbox/my-ruby-build/build-rjit-ruby-repo/test/ruby/test_yjit.rb:916]:
Expected to compile instructions opt_send_without_block but didn't.
iseq:
== disasm: #<ISeq:block in <main>@-e:2 (2,15)-(12,1)>
0000 putobject                              Object                    (   3)[LiBc]
0002 opt_getconstant_path                   <ic:0 Struct>
0004 putobject                              :a
0006 putobject                              :b
0008 putobject                              :c
0010 putobject                              :d
0012 putobject                              :e
0014 putobject                              :f
0016 putobject                              :g
0018 putobject                              :h
0020 opt_send_without_block                 <calldata!mid:new, argc:8, ARGS_SIMPLE>
0022 swap
0023 setconstant                            :Foo
0025 definemethod                           :build_foo, build_foo     (   5)[Li]
0028 putself                                                          (   9)[Li]
0029 opt_send_without_block                 <calldata!mid:build_foo, argc:0, FCALL|VCALL|ARGS_SIMPLE>
0031 pop
0032 putself                                                          (  10)[Li]
0033 opt_send_without_block                 <calldata!mid:build_foo, argc:0, FCALL|VCALL|ARGS_SIMPLE>
0035 leave                                                            (  12)[Br]

== disasm: #<ISeq:build_foo@-e:5 (5,0)-(7,3)>
0000 opt_getconstant_path                   <ic:0 ::Foo>              (   6)[LiCa]
0002 putobject                              :a
0004 putobject                              :b
0006 putobject                              :c
0008 putobject                              :d
0010 putobject                              :e
0012 putobject                              :f
0014 putobject                              :g
0016 putobject                              :h
0018 opt_send_without_block                 <calldata!mid:new, argc:8, ARGS_SIMPLE>
0020 leave                                                            (   7)[Re]


  4) Failure:
TestYJIT#test_odd_calls_to_attr_reader [/home/jinroq/dev/sandbox/my-ruby-build/build-rjit-ruby-repo/test/ruby/test_yjit.rb:1519]:
Expected no use of fallback implementation.
<0> expected but was
<53>.

  5) Failure:
TestYJIT#test_compile_opt_getconstant_path [/home/jinroq/dev/sandbox/my-ruby-build/build-rjit-ruby-repo/test/ruby/test_yjit.rb:495]:
Expected to compile instructions opt_getconstant_path but didn't.
iseq:
== disasm: #<ISeq:block in <main>@-e:2 (2,15)-(12,1)>
0000 definemethod                           :get_foo, get_foo         (   3)[LiBc]
0003 putobject                              123                       (   7)[Li]
0005 putspecialobject                       3
0007 setconstant                            :FOO
0009 putself                                                          (   9)[Li]
0010 opt_send_without_block                 <calldata!mid:get_foo, argc:0, FCALL|VCALL|ARGS_SIMPLE>
0012 pop
0013 putself                                                          (  10)[Li]
0014 opt_send_without_block                 <calldata!mid:get_foo, argc:0, FCALL|VCALL|ARGS_SIMPLE>
0016 leave                                                            (  12)[Br]

== disasm: #<ISeq:get_foo@-e:3 (3,2)-(5,3)>
0000 opt_getconstant_path                   <ic:0 FOO>                (   4)[LiCa]
0002 leave                                                            (   5)[Re]


  6) Failure:
TestRubyOptimization#test_block_parameter_should_not_create_objects [/home/jinroq/dev/sandbox/my-ruby-build/build-rjit-ruby-repo/test/ruby/test_optimization.rb:785]:
<0> expected but was
<19>.

Finished tests in 1194.403370s, 22.0805 tests/s, 5407.0259 assertions/s.
26373 tests, 6458170 assertions, 6 failures, 0 errors, 118 skips

ruby -v: ruby 3.4.0dev (2024-01-18T09:09:42Z master 264b7363aa) +RJIT [x86_64-linux]
make: *** [uncommon.mk:945: yes-test-all] エラー 6