[#111472] [Ruby master Bug#19274] Error installing ruby 3.2.0 on RH 8 — "aalllop (Alberto Allegue) via ruby-core" <ruby-core@...>
Issue #19274 has been reported by aalllop (Alberto Allegue).
5 messages
2022/12/28
[#111508] Data support for versions before 3.2.0 — Eustáquio Rangel via ruby-core <ruby-core@...>
I was wondering that every piece of code (gems, etc) that use the new Data =
3 messages
2022/12/29
[ruby-core:111553] [Ruby master Bug#19254] Enabling YJIT configuration option breaks rspec-core test suite
From:
"mtasaka (Mamoru Tasaka) via ruby-core" <ruby-core@...>
Date:
2022-12-31 12:52:16 UTC
List:
ruby-core #111553
Issue #19254 has been updated by mtasaka (Mamoru Tasaka).
Looks like adding `%global _lto_cflags %{nil}` to ruby.spec, i.e. removing `-flto=auto -ffat-lto-objects` from compilation flag makes the above rspec-core test pass (note that Fedora ruby is using gcc).
So maybe LTO is doing "something" with yjit.
----------------------------------------
Bug #19254: Enabling YJIT configuration option breaks rspec-core test suite
https://bugs.ruby-lang.org/issues/19254#change-100916
* Author: vo.x (Vit Ondruch)
* Status: Feedback
* Priority: Normal
* ruby -v: ruby 3.2.0dev (2022-12-23 master c5eefb7f37) [x86_64-linux]
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
In preparation for Ruby 3.2, we have enabled YJIT in Fedora:
https://src.fedoraproject.org/rpms/ruby/c/3c1be9f9c2c1d8679eebb9a185fefa15baa1bcfc?branch=private-ruby-3.2
Since that moment, rspec-core test suite started to fail (see the attached log for all details):
~~~
... snip ...
1) RSpec::Core::Example#run memory leaks, see GH-321, GH-1921 releases references to the examples / their ivars
Failure/Error: expect(get_all.call).to eq opts.fetch(:post_gc)
expected: []
got: ["after_all", "before_all"]
(compared using ==)
# ./spec/rspec/core/example_spec.rb:469:in `expect_gc'
# ./spec/rspec/core/example_spec.rb:492:in `block (4 levels) in <top (required)>'
# ./spec/support/sandboxing.rb:16:in `block (3 levels) in <top (required)>'
# ./spec/support/sandboxing.rb:7:in `block (2 levels) in <top (required)>'
Finished in 8.98 seconds (files took 0.47612 seconds to load)
2209 examples, 1 failure, 4 pending
~~~
Please note that the YJIT was not enabled during runtime, just the support was enabled. Disabling the YJIT supports makes the test case pass.
[1]: https://download.copr.fedorainfracloud.org/results/vondruch/ruby-3.2/fedora-rawhide-x86_64/05177334-rubygem-rspec-core/builder-live.log.gz
[2]: https://copr.fedorainfracloud.org/coprs/vondruch/ruby-3.2/package/rubygem-rspec-core/
---Files--------------------------------
builder-live.log.gz (28.7 KB)
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- [email protected]
To unsubscribe send an email to [email protected]
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/