Open dsisnero opened 1 year ago
Thanks for the report. Which ruby version are you using?
F:\windows\scoop\apps\alacritty\current>gem env RubyGems Environment:
On Tue, Jan 31, 2023 at 5:10 PM Ian Ker-Seymer @.***> wrote:
Thanks for the report. Which ruby version are you using?
— Reply to this email directly, view it on GitHub https://github.com/oxidize-rb/rb-sys/issues/139#issuecomment-1411247616, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAABQRLTXNYEX6WYA2RBKLDWVGSWHANCNFSM6AAAAAAUM4AAVU . You are receiving this because you authored the thread.Message ID: @.***>
Any other info you need on this?
Last couple of things:
rake compile
?ruby -rrbconfig -e 'pp RbConfig::CONFIG'
?Also, question for @MSP-Greg, is x64-mingw-ucrt
a valid platform for Ruby 3.2? I know it is for 3.1, but does the added support for mswin
/ msvc
make this obsolete?
x64-mingw-ucrt a valid platform for Ruby 3.2?
Yes, it's the only platform that's widely available.
does the added support for mswin / msvc make this obsolete?
At present, no. It probably won't be replaced by mswin in the immediate future, as there are at least a few popular extension gems that won't compile on mswin.
I’m not sure how to fix this issue. Are you still having it?
trying bundle gem --ext=rust hello_rust example on windows after ridk enable to get environment
bundle exec rake compile gives me the following error = note: c:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: unrecognized option '--eh-frame-hdr' c:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: use the --help option for usage information collect2.exe: error: ld returned 1 exit status
Googling this error and arriving at https://github.com/avr-rust/blink/issues/23
For anyone else encountering this: The solution is to add "eh-frame-header": false to the target-json file.