-
Notifications
You must be signed in to change notification settings - Fork 33
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
SOLVED: cargo build
fails on colima arm container on M1 Mac
#246
Comments
Do you mind expanding the commands that you used? So I can try to reproduce the issue. From the logs I suppose that you are trying to build |
Hey @SergioGasquez I don't have all of the exact commands, but what you assume I did is more or less on-the-money. System context: Nothing else really special. I start the container, cd to the directory, run The exact same git repo/code running on x64 Linux compiles with no issues. |
Just did a small test on my M1 mac with docker and had no issue, here is what I did:
|
@SergioGasquez thanks for testing this. I'll repeat your steps, if I also have no issues, then I suspect this may be stemming from the volume mount and will investigate that deeper. Thanks! |
Is there a way to change the path where the .cargo and .embuild directories are created? |
Hmmm it thickens. I attempted to effectively "move" .embuild into the container fs by running It seems that this does install the IDF tools to the container's home directory, but later in the build process, I still receive an error which points to a path inside the workspace directory which now no longer exists rather than to the file which is present in the ~ directory. Any thoughts? |
This is the snippet including the error now:
|
Update: Issue appears to be resolved. I found this issue comment (abiosoft/colima#362 (comment)) which hinted that telling colima to use mac vz instead of qemu would help. I switched and now the build is completing and with far fewer errors. I did not switch to virtiofs as the comment suggests. Thanks all, I'll close this now. |
cargo build
fails on arm container on M1 Maccargo build
fails on arm container on M1 Mac
cargo build
fails on arm container on M1 Maccargo build
fails on colima arm container on M1 Mac
Hey all. I have an M1 Mac running a template build directory. When using the latest (the only version I have tried) version of the docker on dockerhub, the initial
cargo build
fails with the following error. Any ideas? Any details I need to provide in addition?Thanks!
The text was updated successfully, but these errors were encountered: