Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936473 - dev-lang/ruby-3.1.5 fails tests on ppc*: TestWeakMap#test_compaction_bug_19529: NotImplementedError: Compaction isn't available on this platform
Summary: dev-lang/ruby-3.1.5 fails tests on ppc*: TestWeakMap#test_compaction_bug_1952...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-07-21 21:30 UTC by matoro
Modified: 2024-07-23 23:22 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log and emerge --info (file_936473.txt,388.40 KB, text/plain)
2024-07-21 21:30 UTC, matoro
Details
build.log and emerge --info (ppc64) (file_936473.txt,383.92 KB, text/plain)
2024-07-22 02:24 UTC, matoro
Details
build.log and emerge --info (ppc) (file_936473.txt,384.01 KB, text/plain)
2024-07-23 23:22 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2024-07-21 21:30:56 UTC
Created attachment 898087 [details]
build.log and emerge --info

I believe that this is no longer an issue in 3.2, but compaction does not work on all powerpc platforms in 3.1, and this test does not account for that.  Affects ppc64le, ppc64, ppc.

ruby -v: ruby 3.1.5p252 (2024-04-23 revision 1945f8dc0e) [powerpc64le-linux]
exec ./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems "./test/runner.rb" --ruby="./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems" --excludes-dir=./test/excludes --name=!/memory_leak/  
/var/tmp/portage/dev-lang/ruby-3.1.5/work/ruby-3.1.5/test/ruby/test_jit_debug.rb: cannot load such file -- /var/tmp/portage/dev-lang/ruby-3.1.5/work/ruby-3.1.5/test/ruby/test_jit
Run options: 
  --seed=16492
  "--ruby=./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems"
  --excludes-dir=./test/excludes
  --name=!/memory_leak/
 
# Running tests:
 
Leaked thread: TestThread#test_fork_value: #<TestThread::Thread:0x0000000138fa6fe8 /var/tmp/portage/dev-lang/ruby-3.1.5/work/ruby-3.1.5/test/ruby/test_thread.rb:1249 sleep>
Finished thread: TestThread#test_abort_on_exception: #<TestThread::Thread:0x0000000138fa6fe8 /var/tmp/portage/dev-lang/ruby-3.1.5/work/ruby-3.1.5/test/ruby/test_thread.rb:1249 dead>
 
  1) Error:
TestWeakMap#test_compaction_bug_19529:
NotImplementedError: Compaction isn't available on this platform
    <internal:gc>:239:in `compact'
    /var/tmp/portage/dev-lang/ruby-3.1.5/work/ruby-3.1.5/test/ruby/test_weakmap.rb:183:in `block in test_compaction_bug_19529'
    /var/tmp/portage/dev-lang/ruby-3.1.5/work/ruby-3.1.5/test/ruby/test_weakmap.rb:182:in `times'
    /var/tmp/portage/dev-lang/ruby-3.1.5/work/ruby-3.1.5/test/ruby/test_weakmap.rb:182:in `test_compaction_bug_19529'
 
Finished tests in 725.215959s, 29.1596 tests/s, 3796.7670 assertions/s.
21147 tests, 2753476 assertions, 0 failures, 1 errors, 65 skips
 
ruby -v: ruby 3.1.5p252 (2024-04-23 revision 1945f8dc0e) [powerpc64le-linux]
make: *** [uncommon.mk:829: yes-test-all] Error 1
Comment 1 matoro archtester 2024-07-22 02:24:15 UTC
Created attachment 898094 [details]
build.log and emerge --info (ppc64)
Comment 2 matoro archtester 2024-07-23 23:22:20 UTC
Created attachment 898244 [details]
build.log and emerge --info (ppc)