You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I maintain a project that uses rb-sys as an indirect dependency, and I noticed yesterday that rb-sys fails to compile after a patch bump to one of rb-sys' indirect dependencies, namely clang-sys, was released. The library clang-sys was bumped from version 1.8.1 to 1.8.2 yesterday, and the latter version appears to break rb-sys compilation, as demonstrated below.
Here is a GitHub actions workflow that provides a reproducible example of the issue:
name: Test rb-syson: workflow_dispatchjobs:
test:
name: Test rb-sys using clang-sys version ${{matrix.clang-sys-version}}runs-on: macos-14strategy:
matrix:
clang-sys-version: ['1.8.1', '1.8.2']continue-on-error: truesteps:
- name: Install Rubyuses: ruby/[email protected]with:
ruby-version: 3.3.1
- name: Install Rustrun: | rustup install 1.78.0 rustup default 1.78.0# This succeeds with clang-sys v1.8.1 and fails with clang-sys v1.8.2
- name: Run testrun: | cargo new testpackage cd testpackage cargo add clang-sys@"= ${{matrix.clang-sys-version}}" cargo add rb-sys@"= 0.9.97" cargo build
In this example, when using clang-sys v1.8.2, running cargo build yields this error:
I tested the issue on MacOS Sonoma because that is the OS on which I encountered the issue personally. I haven't checked whether this issue is specific to MacOS or not.
This issue doesn't impact me much as I am able to pin clang-sys to version 1.8.1 in my own project and everything works fine. I just thought I would raise this issue in case it is at all helpful to you or anyone else. :)
The text was updated successfully, but these errors were encountered:
Hi, I maintain a project that uses rb-sys as an indirect dependency, and I noticed yesterday that rb-sys fails to compile after a patch bump to one of rb-sys' indirect dependencies, namely clang-sys, was released. The library clang-sys was bumped from version 1.8.1 to 1.8.2 yesterday, and the latter version appears to break rb-sys compilation, as demonstrated below.
Here is a GitHub actions workflow that provides a reproducible example of the issue:
In this example, when using clang-sys v1.8.2, running
cargo build
yields this error:Click to view error
I tested the issue on MacOS Sonoma because that is the OS on which I encountered the issue personally. I haven't checked whether this issue is specific to MacOS or not.
This issue doesn't impact me much as I am able to pin clang-sys to version 1.8.1 in my own project and everything works fine. I just thought I would raise this issue in case it is at all helpful to you or anyone else. :)
The text was updated successfully, but these errors were encountered: