oneclick / rubyinstaller2

MSYS2 based RubyInstaller for Windows
https://rubyinstaller.org
BSD 3-Clause "New" or "Revised" License
644 stars 248 forks source link

Unable to install gem dbase Win10 Ruby 3.2.2 #358

Closed bradkrane closed 6 months ago

bradkrane commented 9 months ago

What problems are you experiencing?

Cannot gem install debase missing header vm_insnhelper.h with devkit installed.

Related https://github.com/ruby-debug/debase/issues/107

Steps to reproduce

  1. Install rubyinstaller-devkit-3.2.2-1-x64.exe with devkit, mingw: 1,3
  2. gem install debase

Snippet of error from mkmf.log

have_header: checking for vm_insnhelper.h... -------------------- no

PATH=".;C:/Ruby32-x64/lib;C:\Ruby32-x64\bin;C:\Ruby32-x64\msys64\ucrt64\bin;C:\Ruby32-x64\msys64\usr\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\IBM\Notes;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Program Files\PuTTY\;C:\Ruby32-x64\bin;D:\Users\Brad\AppData\Local\Programs\Python\Python311\Scripts\;D:\Users\Brad\AppData\Local\Programs\Python\Python311\;D:\Users\Brad\AppData\Local\Microsoft\WindowsApps;;D:\Users\Brad\AppData\Local\Programs\Microsoft VS Code\bin;D:\Users\Brad\AppData\Roaming\npm" "gcc -IC:/Ruby32-x64/include/ruby-3.2.0/x64-mingw-ucrt -IC:/Ruby32-x64/include/ruby-3.2.0/ruby/backward -IC:/Ruby32-x64/include/ruby-3.2.0 -I. -IC:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/debase-ruby_core_source-3.2.2/lib/debase/ruby_core_source/ruby-3.2.0-p0 -O3 -fno-fast-math -fstack-protector-strong -m64  -c conftest.c"
In file included from conftest.c:5:
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/debase-ruby_core_source-3.2.2/lib/debase/ruby_core_source/ruby-3.2.0-p0/vm_insnhelper.h:17:13: error: unknown type name 'rb_serial_t'
   17 | RUBY_EXTERN rb_serial_t ruby_vm_constant_cache_invalidations;
      | 

What's the output from ridk version?

PS D:\Users\Brad\Documents\src\debase-issue> ridk version

ruby: path: C:/Ruby32-x64 version: 3.2.2 platform: x64-mingw-ucrt ruby_installer: package_version: 3.2.2-1 git_commit: 83df213 msys2: path: C:\Ruby32-x64\msys64 cc: gcc (Rev10, Built by MSYS2 project) 12.2.0 sh: GNU bash, version 5.2.15(1)-release (x86_64-pc-msys) os: Microsoft Windows [Version 10.0.19044.3086]

larskanis commented 6 months ago

The latest debase version is from 2019 but there have been a bunch of new commits since them. Could you try it from git? In any case this is not a RubyInstaller issue but belongs to debase where you posted it already: ruby-debug/debase#107