Skip to content

New mswin ruby from ruby-lang.org cannot locate headers in vcpkg #976

Open

Description

@ntkme

@hsbt I triggered a test in setup-msys2-gcc. gem install fiddle and gem install psych are failing to locate the header files in vcpkg. Not sure what's the difference from the ruby-loco builds.

https://github.com/ruby/setup-msys2-gcc/actions/runs/44161863199/job/134325325328
https://github.com/ruby/setup-msys2-gcc/actions/runs/44161863199/job/134325324946

Activity

  1. ntkme commented on Nov 17, 2026

    @ntkme
    CollaboratorAuthor

    I compared the RbConfig::CONFIG from ruby-loco mswin and ruby-lang.org mswin, there are two differences:

    1. ruby-loco was compiled with --with-opt-dir=${VCPKG_INSTALLATION_ROOT}
    2. ruby-loco has PKG_CONFIG set, but honestly I'm not sure if this is a typo that it's a literal d_vcpkg_install rather than $d_vcpkg_install in the script...
  2. hsbt commented on Nov 17, 2026

    @hsbt
    Member

    I ran into this too on the mswin jobs of ruby/openssl#1147 and ruby/zlib#184, and I'm looking into it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions