Skip to content
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

Fix build on MacOS #32

Closed
robo9k opened this issue Dec 4, 2022 · 0 comments · Fixed by #33
Closed

Fix build on MacOS #32

robo9k opened this issue Dec 4, 2022 · 0 comments · Fixed by #33

Comments

@robo9k
Copy link
Owner

robo9k commented Dec 4, 2022

A recent CI run on MacOS failed with the following error:

ld: in /Users/runner/.rustup/toolchains/1.38.0-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace-fd4028660702ce49.rlib(rust.metadata.bin), archive member 'rust.metadata.bin' with length 87689 is not mach-o or llvm bitcode file '/Users/runner/.rustup/toolchains/1.38.0-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace-fd4028660702ce49.rlib'

The GitHub Actions CI build uses macos-latest. According to https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/.E2.9C.94.20How.20can.20I.20fix.20Rust.201.2E53.2E0.20or.20earlier.20to.20run.20on.20macOS.2012.2E6.3F/near/299263887 the used MSRV of 1.38.0-x86_64-apple-darwin does not work as-is.

Options are:

  • not using the latest MacOS version in CI (but users might do this)
  • change build to use another linker or thin binaries
  • change build to MSRV 1.54.0
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 a pull request may close this issue.

1 participant