Skip to content

mswin builds started failing due to libclang differences #27

@ianks

Description

@ianks

Problem

Builds that were previously working on rb-sys are now failing. The builds were working as of 2022-11-18, and as of today (11-30-2022) they are failing.

It seems like a libclang resolution issue. The error I get looks like:

Using bindgen with clang args: ["-ID:/ruby-mswin/include/ruby-3.2.0+3", "-ID:/ruby-mswin/include/ruby-3.2.0+3/x64-mswin64_140", "-fms-extensions", "-D_WIN32_WINNT=0x0600"]
  C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\Llvm\x64\lib\clang\15.0.1\include\emmintrin.h:2108:10: error: invalid conversion between vector type '__m128i' (vector of 2 'long long' values) and integer type 'int' of different size

At one point, I had to configure the LIBCLANG_PATH with gcm to make things work. But this code has been disabled for awhile now and things worked properly. Maybe I should try adding this back?

    - name: Set LIBCLANG_PATH
      if: contains('mswin', steps.set-outputs.outputs.ruby-platform)
      shell: pwsh
      working-directory: ${{ inputs.working-directory }}
      run: |
        echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV

I'm wondering if any you know of any recent changes in the mswin Ruby image that may be causing this? Otherwise, this may be a github actions runner thing. Thanks in advance! ❤️

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