bundle install failing to install wdm dependencies

73 views
Skip to first unread message

Navin

unread,
Jul 31, 2024, 9:12:51 AM7/31/24
to RubyInstaller
ruby devkit version - ruby 3.3.4 (2024-07-09 revision be1089c8ec) [x64-mingw-ucrt]
gem version - 3.5.11
Windows : 11

Error Trace
D:\Projects\JekyllProject>jekyll new resume
Running bundle install in D:/Projects/JekyllProject/resume...
  Bundler: Fetching gem metadata from https://rubygems.org/............
  Bundler: Resolving dependencies...
  Bundler: Fetching rake 13.2.1
  Bundler: Installing rake 13.2.1
  Bundler: Fetching bigdecimal 3.1.8
  Bundler: Fetching strscan 3.1.0
  Bundler: Fetching wdm 0.1.1
  Bundler: Fetching tzinfo 2.0.6
  Bundler: Installing bigdecimal 3.1.8 with native extensions
  Bundler: Installing strscan 3.1.0 with native extensions
  Bundler: Installing wdm 0.1.1 with native extensions
  Bundler: Installing tzinfo 2.0.6
  Bundler: Fetching tzinfo-data 1.2024.1
  Bundler: Installing tzinfo-data 1.2024.1
  Bundler: Fetching rexml 3.3.2
  Bundler: Installing rexml 3.3.2
  Bundler: Fetching jekyll-feed 0.17.0
  Bundler: Fetching jekyll-seo-tag 2.8.0
  Bundler: Installing jekyll-seo-tag 2.8.0
  Bundler: Installing jekyll-feed 0.17.0
  Bundler: Fetching minima 2.5.1
  Bundler: Installing minima 2.5.1Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
  Bundler:
  Bundler: current directory: C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/wdm-0.1.1/ext/wdm
  Bundler: C:/Ruby33-x64/bin/ruby.exe extconf.rb
  Bundler: checking for -lkernel32... yes
  Bundler: checking for windows.h... yes
  Bundler: checking for ruby.h... yes
  Bundler: checking for HAVE_RUBY_ENCODING_H... yes
  Bundler: checking for rb_thread_call_without_gvl()... yes
  Bundler: creating Makefile
  Bundler:
  Bundler: current directory: C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/wdm-0.1.1/ext/wdm
  Bundler: make DESTDIR\= sitearchdir\=./.gem.20240731-2896-k2k6uq
  Bundler: sitelibdir\=./.gem.20240731-2896-k2k6uq clean
  Bundler:
  Bundler: current directory: C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/wdm-0.1.1/ext/wdm
  Bundler: make DESTDIR\= sitearchdir\=./.gem.20240731-2896-k2k6uq
  Bundler: sitelibdir\=./.gem.20240731-2896-k2k6uq
  Bundler: generating wdm_ext-x64-mingw-ucrt.def
  Bundler: compiling entry.c
  Bundler: compiling memory.c
  Bundler: compiling monitor.c
  Bundler: compiling queue.c
  Bundler: compiling rb_change.c
  Bundler: rb_change.c: In function 'extract_absolute_path_from_notification':
  Bundler: rb_change.c:139:5: warning: 'RB_OBJ_TAINT' is deprecated: taintedness turned out
  Bundler: to be a wrong idea. [-Wdeprecated-declarations]
  Bundler: 139 | OBJ_TAINT(path);
  Bundler: | ^~~~~~~~~
  Bundler: In file included from
  Bundler: C:/Ruby33-x64/include/ruby-3.3.0/ruby/internal/core/rstring.h:30,
  Bundler: from
  Bundler: C:/Ruby33-x64/include/ruby-3.3.0/ruby/internal/arithmetic/char.h:29,
  Bundler: from
  Bundler: C:/Ruby33-x64/include/ruby-3.3.0/ruby/internal/arithmetic.h:24,
  Bundler: from C:/Ruby33-x64/include/ruby-3.3.0/ruby/ruby.h:28,
  Bundler: from C:/Ruby33-x64/include/ruby-3.3.0/ruby.h:38,
  Bundler: from wdm.h:22,
  Bundler: from rb_change.c:4:
  Bundler: C:/Ruby33-x64/include/ruby-3.3.0/ruby/internal/fl_type.h:824:1: note: declared
  Bundler: here
  Bundler: 824 | RB_OBJ_TAINT(VALUE obj)
  Bundler: | ^~~~~~~~~~~~
  Bundler: compiling rb_monitor.c
  Bundler: rb_monitor.c: In function 'rb_monitor_run_bang':
  Bundler: rb_monitor.c:509:29: error: implicit declaration of function
  Bundler: 'rb_thread_call_without_gvl' [-Wimplicit-function-declaration]
  Bundler: 509 | waiting_succeeded = rb_thread_call_without_gvl(wait_for_changes,
  Bundler: monitor->process_event, stop_monitoring, monitor);
  Bundler: | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  Bundler: make: *** [Makefile:248: rb_monitor.o] Error 1
  Bundler:
  Bundler: make failed, exit code 2
  Bundler:
  Bundler: Gem files will remain installed in
  Bundler: C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/wdm-0.1.1 for inspection.
  Bundler: Results logged to
  Bundler: C:/Ruby33-x64/lib/ruby/gems/3.3.0/extensions/x64-mingw-ucrt/3.3.0/wdm-0.1.1/gem_make.out
  Bundler:
  Bundler: C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/ext/builder.rb:125:in `run'
  Bundler: C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/ext/builder.rb:51:in `block in make'
  Bundler: C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/ext/builder.rb:43:in `each'
  Bundler: C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/ext/builder.rb:43:in `make'
  Bundler: C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/ext/ext_conf_builder.rb:42:in `build'
  Bundler: C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/ext/builder.rb:193:in `build_extension'
  Bundler: C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/ext/builder.rb:227:in `block in
  Bundler: build_extensions'
  Bundler: C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/ext/builder.rb:224:in `each'
  Bundler: C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/ext/builder.rb:224:in `build_extensions'
  Bundler: C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/installer.rb:852:in `build_extensions'
  Bundler: C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/bundler-2.5.16/lib/bundler/rubygems_gem_installer.rb:109:in
  Bundler: `build_extensions'
  Bundler: C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/bundler-2.5.16/lib/bundler/rubygems_gem_installer.rb:28:in
  Bundler: `install'
  Bundler: C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/bundler-2.5.16/lib/bundler/source/rubygems.rb:205:in
  Bundler: `install'
  Bundler: C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/bundler-2.5.16/lib/bundler/installer/gem_installer.rb:54:in
  Bundler: `install'
  Bundler: C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/bundler-2.5.16/lib/bundler/installer/gem_installer.rb:16:in
  Bundler: `install_from_spec'
  Bundler: C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/bundler-2.5.16/lib/bundler/installer/parallel_installer.rb:132:in
  Bundler: `do_install'
  Bundler: C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/bundler-2.5.16/lib/bundler/installer/parallel_installer.rb:123:in
  Bundler: `block in worker_pool'
  Bundler: C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/bundler-2.5.16/lib/bundler/worker.rb:62:in
  Bundler: `apply_func'
  Bundler: C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/bundler-2.5.16/lib/bundler/worker.rb:57:in
  Bundler: `block in process_queue'
  Bundler: <internal:kernel>:187:in `loop'
  Bundler: C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/bundler-2.5.16/lib/bundler/worker.rb:54:in
  Bundler: `process_queue'
  Bundler: C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/bundler-2.5.16/lib/bundler/worker.rb:90:in
  Bundler: `block (2 levels) in create_threads'
  Bundler:
  Bundler: An error occurred while installing wdm (0.1.1), and Bundler cannot continue.
  Bundler:
  Bundler: In Gemfile:
  Bundler: wdm


help appreciated


Lars Kanis

unread,
Jul 31, 2024, 4:37:09 PM7/31/24
to rubyin...@googlegroups.com, Navin

The wdm gem is obviously not prepared for ruby-3.3. You can

  • install jekyll on ruby-3.2 to solve it,
  • try to avoid the wdm gem
  • or use Macos or Linux to run jekyll.

I'll fix the compatibility issue if I find some spare time, but for now these are your only options.

--

Regards, Lars


Am 31.07.24 um 14:32 schrieb Navin:
--
You received this message because you are subscribed to the Google Groups "RubyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyinstalle...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyinstaller/24ff915a-239d-4cc9-bdeb-e9914aa07c10n%40googlegroups.com.

Lars Kanis

unread,
Aug 1, 2024, 5:09:16 AM8/1/24
to rubyin...@googlegroups.com, Navin

Oh, just noticed this simple workaround with ruby-3.3:

gem install wdm -- --with-cflags=-Wno-implicit-function-declaration

From here: https://github.com/Maher4Ever/wdm/issues/28#issuecomment-2196775678

Regards, Lars

Am 31.07.24 um 22:37 schrieb Lars Kanis:
Reply all
Reply to author
Forward
0 new messages