Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'stdckdint.h' file not found on windows-latest with Ruby 3.4 #486

Closed
mudge opened this issue Jan 11, 2025 · 4 comments
Closed

'stdckdint.h' file not found on windows-latest with Ruby 3.4 #486

mudge opened this issue Jan 11, 2025 · 4 comments

Comments

@mudge
Copy link

mudge commented Jan 11, 2025

I'm currently working on my first Ruby Rust extension and am seeing the following error on GitHub Actions when using windows-latest and Ruby 3.4 (all other Ruby versions back to 2.7 and ubuntu-latest and macos-latest work fine):

thread 'main' panicked at C:\Users\runneradmin/.cargo\registry\src\index.crates.io-6f17d22bba15001f\rb-sys-0.9.107\build\main.rs:50:6:
  generate bindings: ClangDiagnostic("C:/hostedtoolcache/windows/Ruby/3.4.1/x64/include/ruby-3.4.0/ruby/internal/stdckdint.h:48:11: error: 'stdckdint.h' file not found with <angled> include; use \"quotes\" instead\n")

See https://github.com/mudge/mrml-ruby/actions/runs/12725696438/job/35473225849 for a failing run.

It seems like this is also affecting wastime-rb, e.g. https://github.com/bytecodealliance/wasmtime-rb/actions/runs/12708950835/job/35426968914

@jbourassa
Copy link
Contributor

oxidize-rb/actions#50 should fix it, should we deem the patch acceptable.

@jbourassa
Copy link
Contributor

@mudge this should be fixed, can you confirm it works for you?

@mudge
Copy link
Author

mudge commented Jan 14, 2025

Thanks, @jbourassa: https://github.com/mudge/rb-mrml/actions/runs/12763551157 shows the Windows build for Ruby 3.4 now succeeds but the musl builds are failing for Ruby 3.1 specifically. I'll raise a separate issue for that.

@stanhu
Copy link
Contributor

stanhu commented Jan 26, 2025

I think we can close this issue. oxidize-rb/actions#50 worked, but oxidize-rb/actions#55 avoids this workaround by upgrading to clang 19. https://github.com/oxidize-rb/actions/releases/tag/v1.4.0 has been released.

@ianks ianks closed this as completed Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants