Skip to content

Comments

Fix macOS dyld issue related to git and libiconv#3339

Closed
thedataking wants to merge 1 commit intorust-lang:mainfrom
immunant:fix-macos-ci-libiconv
Closed

Fix macOS dyld issue related to git and libiconv#3339
thedataking wants to merge 1 commit intorust-lang:mainfrom
immunant:fix-macos-ci-libiconv

Conversation

@thedataking
Copy link
Contributor

@thedataking thedataking commented Jan 14, 2026

On macOS, DYLD_LIBRARY_PATH is set but does not include the homebrew version of libiconv which is needed by the homebrew version of git (invoked in ci/test.sh by assert_no_diff). I do not think that bindgen sets this variable in its Github Actions test harness, so pressumably this is set by the runner image on macOS for some reason.

A simple fix is to unset it unconditionally regardless of the Runner OS and it appears to fully resolve the problem. I'm not very familiar with the bindgen test setup or GHA runners for macOS so happy to revise the PR.

I checked the issue tracker of the GHA runners repo here https://github.com/actions/runner-images/issues and didn't find anything related to this issue.

@thedataking thedataking force-pushed the fix-macos-ci-libiconv branch from da831be to 8e49134 Compare January 14, 2026 23:18
@thedataking thedataking force-pushed the fix-macos-ci-libiconv branch from 8e49134 to 6dddd65 Compare January 14, 2026 23:26
@dingxiangfei2009
Copy link
Contributor

Instead of unsetting the entire variable, would it be possible to prepend the libiconv path under the homebrew prefix?

@emilio
Copy link
Contributor

emilio commented Feb 21, 2026

Yeah maybe adding the libiconv path is better, but if this works is fine as an interim solution.

@emilio emilio added this pull request to the merge queue Feb 21, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 21, 2026
@emilio
Copy link
Contributor

emilio commented Feb 21, 2026

Cherry-picked this into #3344 since we need both CI fixes at the same time. Thanks Per!

@emilio emilio closed this Feb 21, 2026
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

Successfully merging this pull request may close these issues.

3 participants