Closed thyresias closed 2 years ago
Can you try to enable MSYS2 tools by executing ridk enable
on the console prior to running rake compile
? Rake-compiler doesn't do this automatically. Only gem install
and bundler
enable the MSYS2 tools on its own.
Thank you Lars, it works. I could have found it myself, sorry.
Hi @thyresias - would you close the issue please? :)
What problems are you experiencing?
I am not sure this is the right place to report this, but since I might be doing something wrong, I try here first as the site advertises it: https://rubyinstaller.org/add-ons/rake-compiler.html
If this is not the right place, I will report it rake-compiler.
Summary: I have a C extension that compiles fine with
But when I try to compile it with rake-compiler, I get errors:
If I try to set MAKE:
Steps to reproduce
Unzip this file: rc-issue.zip
Compare:
With:
What's the output from
ridk version
?ruby: path: c:/ruby-3.1.2-x64 version: 3.1.2 platform: x64-mingw-ucrt cc: gcc.exe (Rev10, Built by MSYS2 project) 11.2.0 ruby_installer: package_version: 3.1.2-1 git_commit: 17502f9 msys2: path: c:\msys64 cc: gcc (Rev2, Built by MSYS2 project) 12.1.0 sh: GNU bash, version 5.1.16(1)-release (x86_64-pc-msys os: Microsoft Windows [Version 10.0.19044.1766]