-
Notifications
You must be signed in to change notification settings - Fork 3
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
When I use the --release flag, I get errors on MacOS Sonoma (14.3.1) #5
Comments
Is your Rust toolchain up to date? How did you install it? You can try commenting out the I can't help you much more because I am on Linux, and I get a very different error when cross compiling. |
I was running rust 1.75.0. I tried using
Both installed the latest rust tools (1.78.0) and resulted in the same errors. This appears to be a problem with rust on M1 processors. |
I tried Terminal.app and |
Commenting out |
What's weird is that the error only occurs in release mode. You can try overriding each option that is specific to the release profile, until you find the one that causes the error. |
My testing shows that |
@cskeeters I just stumbled upon this issue since I was having a similar problem in another Rust project (thin-edge.io)...so just posting in case it is also helpful for you. In the end my issue was with the homebrew To fix it, check which which strip If you get anything other than Afterwards you will have to run cargo clean
cargo build --release |
@reubenmiller, Thank you for this post. I can confirm that my path was configured to use That begs the question: What's going on? Why does gnu strip from binutils break cargo? Is this a bug or incompatibility? If it's a compatibility issue, could cargo not check |
When I use the
--release
flag, I get errors.Without the
--release
flag, it compiles fine.To get more information, I tried the
--verbose
flag and not much more helpful info was provided.I'm new to rust, so this might be a simple skill issue on my part. Please advise.
The text was updated successfully, but these errors were encountered: