-
Notifications
You must be signed in to change notification settings - Fork 56
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
fuel-nightly
build failing with linker error on macos-latest
#64
Comments
It seems this is now occurring as of the latest The fact that this started occurring in #61 which contains no changes to the set of manifests implies that the issue may come from elsewhere, e.g. a difference in the SDKs provided to the macos-latest runner, or some other source of non-determinism in the CI jobs like an unspecified Nix version 🤔 |
This comment on a similar issue indicates the culprit function might be only available on macos 10.13+ rust-build/rust-build.action#61 (comment) Also, I've cancelled today's |
It seems that the GitHub runner does now use 10.13 and this switch might be what has caused us issues, as the nixpkgs Darwin SDK is still on 10.12. I'm attempting to pin our runner to macos 10.12 in #68 to see if the |
Ahh it seems I'm mistaken - when checking the action logs, it appears both macOS runners ( It seems I've gotten mixed up with the point versioning! The API documentation for This means our issue stems from elsewhere. The error itself indicates that we're not providing the Lines 141 to 153 in 4cbf9a6
|
Currently, the frameworks are provided as build inputs - this is an attempt to provide the CoreFoundation framework as a nativeBuildInput to see if it addresses the current CI error tracked in #64.
Not having much luck chasing down this linker issue - I've opened a post on the forum to see if anyone has any ideas on what might be going on here: https://discourse.nixos.org/t/unable-to-link-to-corefoundation-symbols-even-though-corefoundation-framework-is-provided-as-buildinput-x86-64-darwin/28612 |
After some more digging, it appears the recent The simplest approach forward may be to:
|
fuel-nightly
non-deterministic failure on macos-latest
fuel-nightly
build failing with linker error on macos-latest
…fuel-nightly` (#69) Currently, the frameworks are provided as build inputs - this is an attempt to provide the CoreFoundation framework as a nativeBuildInput to see if it addresses the current CI error tracked in #64. Edit: Also tried `propagatedBuildInputs` to see if propagating CoreFoundation to the runtime inputs helped, but no luck. Edit: Now attempting to remove the most recent manifest sets in order to find the last working version of `fuel-nightly` so I can diff the two.
OK #70 and #71 have been closed by #73! Just as a reminder when looking into this again: the specific forc manifest commits (for the Sway repo) in which the linking error starts occurring are: Working: af07c68f12b4ca780178b9e66f21af9173602b4b The Sway PR that introduces it is: FuelLabs/sway#4564. |
It looks like this issue at the sysinfo repo is the same issue encountered by holochain devs: GuillaumeGomez/sysinfo#915 (comment). |
Note, I tried applying the fix that @mitchmindtree suggested above. It basically involved specifying that we want to use the macos_sdk_11_0 version specifically. While it may actually fix the sysinfo error that was occurring, we are now unable to build libgit2. See this failing CI log. Note, this is all only happening when building for Intel mac architecture and is passing successfully when building for arm. I was able to use my M1 mac to test building locally for |
This is closed now that FuelLabs/sway#4737 landed and we no longer need to build |
Spotted while working on #61. See this comment.
It seems like the recent addition of the
sysinfo
crate in FuelLabs/sway#4564 may be causing issues on the macOS build of the latestforc-nightly
and possibly some non-determinism.Today's refresh-manifests job succeeded, however the current CI macos-latest matrix job is missing the cache, and failing with a linker error.
The text was updated successfully, but these errors were encountered: