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 Apple M1 chip #434
Conversation
Hi, thanks for the PR! I'll try to get my hands on an M1 and will try to figure out why it doesn't work out of the box (I've also caught up on #381). Do you reckon this actually solves the issue, or does it simply hide the error message? |
@nmattia yes, it solves the issue. I've looked into the result of What I cannot tell is why the |
The Options:
Update: I was wrong, I think the code in theory makes sense, however I am still in favour of simply putting a cd to the git root at the top of the script and eliminating II_DIR from the rest of the code. |
I'm also on the M1 chip and ran into the same problem. Running |
@nmattia @bitdivine bumping this |
@krpeacock unfortunately @bitdivine and I are very snowed under at the moment; hopefully in two or three weeks we'll have a few spare cycles. In the meantime feel free to have a look! This is definitely on our radar. |
Hi, any updates on this one? |
I can confirm this solves the problem on a M1, thanks @plitzenberger you really have to run |
Ok, so I've removed the As far as I understand this should fix the issue, right? Anybody needing to build the code will just need to run |
Haven't heard anyone complain so I'll go ahead and close this, feel free to re-open though! |
Description
when running
II_ENV=development dfx deploy --no-wallet --argument '(null)'
on apple M1 chip the build fails with:Check #381
Motivation and Context
This PR is primarily intended as an opening to discussions on how to fix the above build issue in general. By applying this change, the build script installs
ic-cdk-optimizer
to your home dir~/.cargo/bin/ic-cdk-optimizer
instead of the local target folder. For whatever reason this works. I'm not a rust expert.How Has This Been Tested?
It works on my machine :)
Types of changes
Checklist: