I am getting error.
I am trying the Shopify Remix app. The error occurs when I add the extension in my app and run Shopify app dev.
Any idea how to resolve this?
Here is error in the text
Shutting down dev because of an error ...
external error ─────
Error coming from
bundle install
Command failed with exit code 5: bundle installGem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: C:/Users/xxx/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.0.0/gems/wdm-0.1.1/ext/wdmC:/Ruby30-x64/bin/ruby.exe -I C:/Ruby30-x64/lib/ruby/3.0.0 -r./siteconf20240530-23416-8k4hiz.rb extconf.rbchecking for -lkernel32... yeschecking for windows.h... yeschecking for ruby.h... yeschecking for HAVE_RUBY_ENCODING_H... yeschecking for rb_thread_call_without_gvl()... yescreating Makefile
current directory: C:/Users/xxx/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.0.0/gems/wdm-0.1.1/ext/wdmmake DESTDIR= clean
current directory: C:/Users/xxx/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.0.0/gems/wdm-0.1.1/ext/wdmmake DESTDIR=generating wdm_ext-x64-mingw32.defcompiling entry.ccompiling memory.ccompiling monitor.ccompiling queue.ccompiling rb_change.ccompiling rb_monitor.crb_monitor.c: In function 'rb_monitor_run_bang':rb_monitor.c:509:29: error: implicit declaration of function'rb_thread_call_without_gvl' [-Wimplicit-function-declaration]509 | waiting_succeeded = rb_thread_call_without_gvl(wait_for_changes,monitor->process_event, stop_monitoring, monitor);| ^~~~~~~~~~~~~~~~~~~~~~~~~~make: *** [Makefile:246: rb_monitor.o] Error 1
make failed, exit code 2
Gem files will remain installed in C:/Users/xxxxx/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.0.0/gems/wdm-0.1.1 forinspection.Results logged to C:/Users/xxx/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.0.0/extensions/x64-mingw32/3.0.0/wdm-0.1.1/gem_make.out
C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/builder.rb:93:in
run' C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/builder.rb:44:in
block in make'C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/builder.rb:36:ineach' C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/builder.rb:36:in
make'C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/ext_conf_builder.rb:63:inblock in build' C:/Ruby30-x64/lib/ruby/3.0.0/tempfile.rb:317:in
open'C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/ext_conf_builder.rb:26:inbuild' C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/builder.rb:159:in
build_extension'C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/builder.rb:193:inblock in build_extensions' C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/builder.rb:190:in
each'C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/builder.rb:190:inbuild_extensions' C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/installer.rb:837:in
build_extensions'C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.11/lib/bundler/rubygems_gem_installer.rb:76:inbuild_extensions' C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.11/lib/bundler/rubygems_gem_installer.rb:28:in
install'C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.11/lib/bundler/source/rubygems.rb:206:ininstall' C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.11/lib/bundler/installer/gem_installer.rb:54:in
install'C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.11/lib/bundler/installer/gem_installer.rb:16:ininstall_from_spec' C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.11/lib/bundler/installer/parallel_installer.rb:132:in
do_install'C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.11/lib/bundler/installer/parallel_installer.rb:123:inblock in worker_pool' C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.11/lib/bundler/worker.rb:62:in
apply_func'C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.11/lib/bundler/worker.rb:57:inblock in process_queue' C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.11/lib/bundler/worker.rb:54:in
loop'C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.11/lib/bundler/worker.rb:54:inprocess_queue' C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.11/lib/bundler/worker.rb:90:in
block (2 levels) in create_threads'An error occurred while installing wdm (0.1.1), and Bundler cannot continue.
In Gemfile:wdmFetching gem metadata from https://rubygems.org/...........Resolving dependencies...Fetching ffi 1.15.4 (x64-mingw32)Fetching concurrent-ruby 1.1.10Fetching wdm 0.1.1Fetching rb-fsevent 0.11.1Installing wdm 0.1.1 with native extensionsInstalling rb-fsevent 0.11.1Installing concurrent-ruby 1.1.10Installing ffi 1.15.4 (x64-mingw32)Fetching rb-inotify 0.10.1Installing rb-inotify 0.10.1Fetching listen 3.7.1Fetching bugsnag 6.24.2Installing listen 3.7.1Installing bugsnag 6.24.2
Tried reinstalling various versions of Ruby but no luck.
- Ruby+Devkit 3.3.1-1 (x64)
- Ruby+Devkit 3.2.4-1 (x64)
- rubyinstaller-devkit-3.0.6-1-x64 ( as suggested here )