Skip to content
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

Unable to install github-changelog-generator 1.16.0+ on Windows. #1019

Open
sbraconnier opened this issue Sep 16, 2022 · 1 comment
Open

Comments

@sbraconnier
Copy link

Describe the bug
I'm not sure it's a bug or a misconfiguration, but I'm unable to install github-changelog-generator 16+ on Windows. The latest version I can install is 1.15.2.

To Reproduce
Steps to reproduce the behavior:

  1. Install chocolatey for Windows
  2. choco install ruby ( I also tried with the msi installation with the same results)
  3. choco install msys2
  4. gem install github_changelog_generator -v 1.16.0

Expected behavior
The installation succeed

Screenshots
Here's the command line output of both the 1.15.2 (success) and 1.16.0 (failure) installation back to back. The latest version reacts the same as version 1.16.0

C:\>gem install github_changelog_generator -v 1.15.2
Fetching github_changelog_generator-1.15.2.gem
Fetching retriable-3.1.2.gem
Successfully installed retriable-3.1.2
Successfully installed concurrent-ruby-1.1.10
Successfully installed tzinfo-2.0.5
Successfully installed i18n-1.12.0
Successfully installed activesupport-7.0.4
Successfully installed github_changelog_generator-1.15.2
Parsing documentation for retriable-3.1.2
Installing ri documentation for retriable-3.1.2
Parsing documentation for concurrent-ruby-1.1.10
Installing ri documentation for concurrent-ruby-1.1.10
Parsing documentation for tzinfo-2.0.5
Installing ri documentation for tzinfo-2.0.5
Parsing documentation for i18n-1.12.0
Installing ri documentation for i18n-1.12.0
Parsing documentation for activesupport-7.0.4
Installing ri documentation for activesupport-7.0.4
Parsing documentation for github_changelog_generator-1.15.2
Installing ri documentation for github_changelog_generator-1.15.2
Done installing documentation for retriable, concurrent-ruby, tzinfo, i18n, activesupport, github_changelog_generator after 16 seconds
6 gems installed

C:\>gem install github_changelog_generator -v 1.16.0
Fetching github_changelog_generator-1.16.0.gem
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR:  Error installing github_changelog_generator:
        ERROR: Failed to build gem native extension.

    current directory: C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/io-event-1.0.9/ext
C:/tools/ruby31/bin/ruby.exe -I C:/tools/ruby31/lib/ruby/3.1.0 -r ./siteconf20220915-9660-mxmn3b.rb extconf.rb
checking for rb_ext_ractor_safe()... yes
checking for &rb_fiber_transfer()... yes
checking for -luring... no
checking for sys/epoll.h... no
checking for sys/event.h... no
checking for sys/eventfd.h... no
checking for rb_io_descriptor()... yes
checking for &rb_process_status_wait()... no
checking for rb_fiber_current()... yes
checking for &rb_fiber_raise()... yes
checking for ruby/io/buffer.h... yes
creating extconf.h
creating Makefile

current directory: C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/io-event-1.0.9/ext
make DESTDIR\= clean

current directory: C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/io-event-1.0.9/ext
make DESTDIR\=
generating IO_Event-x64-mingw-ucrt.def
compiling ./io/event/event.c
compiling ./io/event/selector/selector.c
./io/event/selector/selector.c:26:10: fatal error: sys/wait.h: No such file or directory
   26 | #include <sys/wait.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:246: selector.o] Error 1

make failed, exit code 2

Gem files will remain installed in C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/io-event-1.0.9 for inspection.
Results logged to C:/tools/ruby31/lib/ruby/gems/3.1.0/extensions/x64-mingw-ucrt/3.1.0/io-event-1.0.9/gem_make.out

Desktop (please complete the following information):

  • OS: Windows 10
  • Version 1.16.0+
@sbraconnier sbraconnier changed the title Unable to install github-changelog-generator 16+ on Windows. Unable to install github-changelog-generator 1.6+ on Windows. Sep 16, 2022
@sbraconnier sbraconnier changed the title Unable to install github-changelog-generator 1.6+ on Windows. Unable to install github-changelog-generator 1.16.0+ on Windows. Sep 16, 2022
@yykamei
Copy link

yykamei commented Sep 19, 2022

github-changelog-generator depends on async, and async depends on io-event.

spec.add_runtime_dependency("async", ">= 1.25.0")

https://github.com/socketry/async/blob/442d242efc1a8ec994b9520c938bf3efe4c6f141/async.gemspec#L23

According to socketry/io-event#25, build on Windows seems to fail. If you just want to try the feature of github-changelog-generator, my recommendation is to use the Docker image. See this instruction fore more details.

https://github.com/github-changelog-generator/github-changelog-generator#running-with-docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants