Closed donholly closed 7 years ago
I had a similar issue, and was able to fix it by removing the homebrew-installed rust I was using and switching to rustup. I'm not sure what the issue is, but apparently the homebrew version causes some builds to fail.
I am running the same versions of rustc
and cargo
as you (installed with rustup) and am able to compile current master with no issues.
That did the trick! Thanks for the quick reply 👍 😄
FYI, got the same error using Rust 1.17.0 from Homebrew on macOS 10.11.
This issue is documented on the rust repo here: https://github.com/rust-lang/rust/issues/39870#issuecomment-280216673, was patched here: https://github.com/Homebrew/brew/pull/2036, then subsequently reverted here: https://github.com/Homebrew/brew/pull/2450. In short, Homebrew isn't going to patch the behaviour that causes this issue as it is inconvenient for the vast majority of other packages. So the solution is thus: use rustup. It's better in this instance anyway :) I'll submit a PR for the Readme to make note of this.
Thanks for the background info and the pull request explaining it in the README.
No problem :)
This should no longer be a problem in Homebrew due to https://github.com/Homebrew/homebrew-core/pull/14490.
I'm having an issue when trying to build on macOS:
cargo build --release
Produces:
Sorry if there's an obvious problem here as I'm not proficient in Rust :)