-
Notifications
You must be signed in to change notification settings - Fork 583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eventmachine fails to compile on Windows #542
Comments
I am having this same issue on windows. Is this resolved? |
nope |
v0.9.0 is out -- please give it a go:
Re-open if you continue having issues. |
No change:
|
Ok, thanks. This is likely due to the old version of eventmachine. Maybe fixable via an upgrade (#546). But upgrading has had issues in the past. I'll take a look. |
Please try the new pre-release v0.9.1.beta1: gem install mailcatcher -v 0.9.1.beta1 |
See eventmachine/eventmachine#970 Windows Ruby 3.1 & 3.2 are using OpenSSL 3, also newer Rubies on Ubuntu 22.04 |
Interesting. I tried getting CI on GitHub Actions running on Windows and it looks like it's refusing to use the compiled eventmachine extensions there: |
Yes. eventmachine-1.2.7-x64-mingw32 was not properly built. It only contains *.so files for Ruby 2.0 thru 2.3, and the gem has no So, RubyGems thinks it's a valid gem for any mingw Ruby. Also, as of Ruby 3.1, Windows Rubies are 'ucrt` builds, which are different than 'mingw'. Note that Nokogiri has both version (<vers>-x64-mingw-ucrt and <vers>-x64-mingw32). And, to make things more interesting, Windows Ruby 3.1 is built with OpenSSL 1.1.1, and 3.2 is built with OpenSSL 3.1.0. JFYI, see more info at the latest CI run, the 'Ruby Info' step in each job. Anyway, as I mentioned in #546, using EventMachine with Windows Rubies is a mess, and almost impossible to deal with in a gemspec. Maybe in the Gemfile... |
Ok, I've got a branch with four commits. It compiles on all OS's. It adds EventMachine from eventmachine/eventmachine#970 to the Gemfile, as below: gem 'eventmachine', github: 'https://github.com/eventmachine/eventmachine/pull/970' CI passes for both Ubuntu and macOS, but Windows hangs. I don't recall seeing Windows CI for any repo using Capybara/Selenium. But, EM does compile for Windows. Not sure what the issue is, could be |
Made changes in another branch, got it to start the CI, then hit:
On my Windows 11 system with Ruby master:
|
The other branch is 00-windows in my fork. Made a few changes, the CI run is here. Notice the log here, which shows several messages I work with Puma, and its tests often start a server in a sub-process, and we never found a way to stop the process via a signal. The CI run did save a log artifact, maybe the screen grabs show any info about whether the tests are working? Of course, Ubuntu & macOS are passing tests... |
Installing mailcatcher was now successful, but not running:
|
Darn. I've pushed a commit which avoids binding SIGQUIT on windows and released v0.9.1.beta2. Give it a go? |
Whoo-hoo! Thank you for your efforts. |
Using Ruby 3.2.2 on windows.
Also tried
gem install mailcatcher --version=0.9.0.beta2
Something missing?
The text was updated successfully, but these errors were encountered: