[ruby-core:122036] [Ruby Bug#21329] `date_core.so` is broken with the recent MSYS2 update

Issue #21329 has been reported by hsbt (Hiroshi SHIBATA). ---------------------------------------- Bug #21329: `date_core.so` is broken with the recent MSYS2 update https://bugs.ruby-lang.org/issues/21329 * Author: hsbt (Hiroshi SHIBATA) * Status: Open * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- From https://github.com/ruby/psych/issues/730 and https://github.com/nobu/rdoc/actions/runs/14969443434/job/42046842539#step:5... ``` Error: test_accept_blank_line(RDocMarkupToAnsiTest): LoadError: 127: The specified procedure could not be found. - D:/a/rdoc/rdoc/vendor/bundle/ruby/3.3.0/gems/date-3.4.1/lib/date_core.so C:/hostedtoolcache/windows/Ruby/3.3.8/x64/lib/ruby/3.3.0/bundled_gems.rb:69:in `require' ``` @MSP-Greg investigate that at https://github.com/ruby/setup-msys2-gcc/pull/26#issuecomment-2874726461. -- https://bugs.ruby-lang.org/

Issue #21329 has been updated by deivid (David Rodríguez). Some debugging happening at https://github.com/ruby/date/pull/125 already! Should this be moved to the date repo, by the way? ---------------------------------------- Bug #21329: `date_core.so` is broken with the recent MSYS2 update https://bugs.ruby-lang.org/issues/21329#change-113193 * Author: hsbt (Hiroshi SHIBATA) * Status: Open * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- From https://github.com/ruby/psych/issues/730 and https://github.com/nobu/rdoc/actions/runs/14969443434/job/42046842539#step:5... ``` Error: test_accept_blank_line(RDocMarkupToAnsiTest): LoadError: 127: The specified procedure could not be found. - D:/a/rdoc/rdoc/vendor/bundle/ruby/3.3.0/gems/date-3.4.1/lib/date_core.so C:/hostedtoolcache/windows/Ruby/3.3.8/x64/lib/ruby/3.3.0/bundled_gems.rb:69:in `require' ``` @MSP-Greg investigate that at https://github.com/ruby/setup-msys2-gcc/pull/26#issuecomment-2874726461. -- https://bugs.ruby-lang.org/

Issue #21329 has been updated by hsbt (Hiroshi SHIBATA). We need to backport fix if the problem is our side. This ticket is reminder for that. ---------------------------------------- Bug #21329: `date_core.so` is broken with the recent MSYS2 update https://bugs.ruby-lang.org/issues/21329#change-113240 * Author: hsbt (Hiroshi SHIBATA) * Status: Open * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- From https://github.com/ruby/psych/issues/730 and https://github.com/nobu/rdoc/actions/runs/14969443434/job/42046842539#step:5... ``` Error: test_accept_blank_line(RDocMarkupToAnsiTest): LoadError: 127: The specified procedure could not be found. - D:/a/rdoc/rdoc/vendor/bundle/ruby/3.3.0/gems/date-3.4.1/lib/date_core.so C:/hostedtoolcache/windows/Ruby/3.3.8/x64/lib/ruby/3.3.0/bundled_gems.rb:69:in `require' ``` @MSP-Greg investigate that at https://github.com/ruby/setup-msys2-gcc/pull/26#issuecomment-2874726461. -- https://bugs.ruby-lang.org/

Issue #21329 has been updated by ntkme (Natsuki Natsume). https://github.com/ruby/setup-msys2-gcc/pull/26#issuecomment-2877229861 The root cause is that the extension is compiled against a newer version of `libwinpthread-1.dll` and headers from msys2, but at the runtime ruby always load `$rubyPrefix\bin\ruby_builtin_dlls\libwinpthread-1.dll` which is an older version. I don't think there is much we can do here. As for ruby/setup-ruby, our plan is to downgrade `libwinpthread-1.dll` for all old rubies that bundle the old version of it, so that the compile time version and runtime version would be compatible. ---------------------------------------- Bug #21329: `date_core.so` is broken with the recent MSYS2 update https://bugs.ruby-lang.org/issues/21329#change-113261 * Author: hsbt (Hiroshi SHIBATA) * Status: Open * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- From https://github.com/ruby/psych/issues/730 and https://github.com/nobu/rdoc/actions/runs/14969443434/job/42046842539#step:5... ``` Error: test_accept_blank_line(RDocMarkupToAnsiTest): LoadError: 127: The specified procedure could not be found. - D:/a/rdoc/rdoc/vendor/bundle/ruby/3.3.0/gems/date-3.4.1/lib/date_core.so C:/hostedtoolcache/windows/Ruby/3.3.8/x64/lib/ruby/3.3.0/bundled_gems.rb:69:in `require' ``` @MSP-Greg investigate that at https://github.com/ruby/setup-msys2-gcc/pull/26#issuecomment-2874726461. -- https://bugs.ruby-lang.org/

Issue #21329 has been updated by valture (Takayuki Kamiyama). Hello, nice to meet you. I'm a Windows user. As for this problem, in the following folder of msys2 installed by scoop C:\Users\username\scoop\apps\msys2\current\ucrt64\bin
libwinpthread-1.dll
C:\Users\username\scoop\apps\ruby\current\bin\ruby_builtin_dlls
Overwrite the same file above,
gem uninstall date
gem install date
This can be solved. There is no need to modify anything else. I'll leave a comment here. This helped me avoid the build error in my Windows 11 24H2 environment. I'll share the information. [参考: date, issue126](https://github.com/ruby/date/issues/126) ---------------------------------------- Bug #21329: `date_core.so` is broken with the recent MSYS2 update https://bugs.ruby-lang.org/issues/21329#change-113326 * Author: hsbt (Hiroshi SHIBATA) * Status: Open * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- From https://github.com/ruby/psych/issues/730 and https://github.com/nobu/rdoc/actions/runs/14969443434/job/42046842539#step:5... ``` Error: test_accept_blank_line(RDocMarkupToAnsiTest): LoadError: 127: The specified procedure could not be found. - D:/a/rdoc/rdoc/vendor/bundle/ruby/3.3.0/gems/date-3.4.1/lib/date_core.so C:/hostedtoolcache/windows/Ruby/3.3.8/x64/lib/ruby/3.3.0/bundled_gems.rb:69:in `require' ``` @MSP-Greg investigate that at https://github.com/ruby/setup-msys2-gcc/pull/26#issuecomment-2874726461. -- https://bugs.ruby-lang.org/

Issue #21329 has been updated by ntkme (Natsuki Natsume). For rubyinstaller2 the issue is fixed with 3.4.4 release, and the fix will be backported to 3.3.9 and 3.2.9 whenever they get released. ---------------------------------------- Bug #21329: `date_core.so` is broken with the recent MSYS2 update https://bugs.ruby-lang.org/issues/21329#change-113406 * Author: hsbt (Hiroshi SHIBATA) * Status: Open * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- From https://github.com/ruby/psych/issues/730 and https://github.com/nobu/rdoc/actions/runs/14969443434/job/42046842539#step:5... ``` Error: test_accept_blank_line(RDocMarkupToAnsiTest): LoadError: 127: The specified procedure could not be found. - D:/a/rdoc/rdoc/vendor/bundle/ruby/3.3.0/gems/date-3.4.1/lib/date_core.so C:/hostedtoolcache/windows/Ruby/3.3.8/x64/lib/ruby/3.3.0/bundled_gems.rb:69:in `require' ``` @MSP-Greg investigate that at https://github.com/ruby/setup-msys2-gcc/pull/26#issuecomment-2874726461. -- https://bugs.ruby-lang.org/

Issue #21329 has been updated by hsbt (Hiroshi SHIBATA). Status changed from Open to Closed There is no action by ruby core side. ---------------------------------------- Bug #21329: `date_core.so` is broken with the recent MSYS2 update https://bugs.ruby-lang.org/issues/21329#change-113557 * Author: hsbt (Hiroshi SHIBATA) * Status: Closed * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- From https://github.com/ruby/psych/issues/730 and https://github.com/nobu/rdoc/actions/runs/14969443434/job/42046842539#step:5... ``` Error: test_accept_blank_line(RDocMarkupToAnsiTest): LoadError: 127: The specified procedure could not be found. - D:/a/rdoc/rdoc/vendor/bundle/ruby/3.3.0/gems/date-3.4.1/lib/date_core.so C:/hostedtoolcache/windows/Ruby/3.3.8/x64/lib/ruby/3.3.0/bundled_gems.rb:69:in `require' ``` @MSP-Greg investigate that at https://github.com/ruby/setup-msys2-gcc/pull/26#issuecomment-2874726461. -- https://bugs.ruby-lang.org/
participants (4)
-
deivid
-
hsbt (Hiroshi SHIBATA)
-
ntkme (Natsuki Natsume)
-
valture (Takayuki Kamiyama)