ruby-debug / debase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No rule to make target `/C/SDK/Ruby25_x64/include/ruby-2.5.0/ruby.h'

davelsan opened this issue · comments

I am sure this is not a bug in debase, but likely a problem on my end with any gem that requires external c compilation.

Still, I would appreciate any input as to why the following error is occurring.

OS: Windows 10
RUBYGEMS VERSION: 2.7.6
RUBY VERSION: 2.5.0 (2017-12-25 patchlevel 0) [x64-mingw32]
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR:  Error installing debase:
        ERROR: Failed to build gem native extension.

    current directory: C:/SDK/Ruby25_x64/lib/ruby/gems/2.5.0/gems/debase-0.2.2/ext
C:/SDK/Ruby25_x64/bin/ruby.exe -r ./siteconf20180218-3712-1pw4vxu.rb extconf.rb
checking for vm_core.h... no
checking for version.h... no
checking for vm_core.h... no
checking for version.h... no
checking for vm_core.h... yes
checking for version.h... yes
creating Makefile

current directory: C:/SDK/Ruby25_x64/lib/ruby/gems/2.5.0/gems/debase-0.2.2/ext
make "DESTDIR=" clean

current directory: C:/SDK/Ruby25_x64/lib/ruby/gems/2.5.0/gems/debase-0.2.2/ext
make "DESTDIR="
generating debase_internals-x64-mingw32.def
make: *** No rule to make target `/C/SDK/Ruby25_x64/include/ruby-2.5.0/ruby.h', needed by `breakpoint.o'.  Stop.

make failed, exit code 2

Gem files will remain installed in C:/SDK/Ruby25_x64/lib/ruby/gems/2.5.0/gems/debase-0.2.2 for inspection.
Results logged to C:/SDK/Ruby25_x64/lib/ruby/gems/2.5.0/extensions/x64-mingw32/2.5.0/debase-0.2.2/gem_make.out

Do'h, turns out MSYS did not have a make package installed, so the compiler was using an old version I had in the PATH from Rtools.

I went into MSYS, ran pacman -Syyu and then pacman -S make. Fixed.

I'm closing this issue.