Open ianks opened 1 year ago
cc: @matsadler
Don't recall seeing that error before.
There was a change to MSYS2, but that was removing libssp-0.dll
, I don't know if it's completed yet. See https://github.com/oneclick/rubyinstaller2/commit/0bbd65b5d73cbce8ac9146b4ea94932b87dbe03a. I don't think the Ruby builds resulting from that commit have reached setup-ruby yet, not sure. That may not be the issue...
@larskanis might have some idea...
For debugging, I'm posting the rbconfigs of Ruby 3.1 (❌ failing) and ruby-head (✅). I'm trying to figure out what differences there might be.
~Another thing to note, linking against LIBRUBY_A
(static ruby) seems to work fine, but DLLs do not.~
UPDATE: actually, it can't find libruby static so this was a false alarm. but builds started passing again 🤔
Attempting to configure static libruby
Could not find libx64-ucrt-ruby310-static.a in libdir, files were:
engines-1_1
libx64-ucrt-ruby310.dll.a
pkgconfig
ruby
Current LIBRUBYARG_STATIC: -lx64-ucrt-ruby310-static -lgmp -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi -lbcrypt
As of a couple days ago, I noticed that Magnus' CI started failing on Windows. The test suite runs
cargo test
, which depends on linking libruby. The error code is a bit mysterious to me:So compilation works properly, but when executing the tests some type of DLL cannot be initialized. When trying to fix the issue, I noticed that everything works for
ruby-head
, but 2.7, 3.0, and 3.1 have the same error.I'm wondering if anything may have changed recently, or if you can help me figure out what's happening. Thank you 🙏