-
Notifications
You must be signed in to change notification settings - Fork 19
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
Srtool does not work with Apple M1 CPUs #32
Comments
Could you tell me in which repo/branch you were working ? Can you try using
|
I tested the following and it started building the runtime:
Although, I tried |
Maybe worth mentioning I'm on the new m1 macs. EDIT Yeah its definitely apple silicon, i was working on another copy of the repo, but it still doesn't build for me
|
Indeed. I am not sure how/if I can help you. |
I'm using the srtool-cli how do I specify the platform using that? |
This won't be supported yet in The very first points are:
|
I'm testing Picasso runtime on m1...
getting error:
then ran:
error:
|
We have the same issue building eden runtime for nodle on an apple m1 host. It seems like srtool is recognizing that host as amd64: |
This currently unsupported. |
Apparently does now run on apple silicon (as I have been lately) but there is a huge performance hit - which is unfortunate because all the massive speed gains you get for compiling on M1 are completely lost. To use the docker run \
--platform linux/amd64 \
--rm \
-it \
--name srtool-m1 \
-e RUNTIME_DIR=runtime \
-e BUILD_OPTS=" " \
-e PACKAGE=your-runtime \
-v full-path-to-cloned-repo:/build \
-v /tmp/cargo:/cargo-home \
paritytech/srtool:1.64.0-0.9.23 In addition you will get this warning on almost every library that gets compiled. I assume this is because srtool uses QEMU to obtain consistent hashes? <jemalloc>: MADV_DONTNEED does not work (memset will be used instead)
<jemalloc>: (This is the expected behaviour if you are running under QEMU) |
Could you try building one of the runtime that we built for a release and confirm that you get the same hashes ? |
Bump @chrisdcosta |
bump. It seems like there is still no reasonable way to use srtools in apple silicon? |
srtool/scripts/build
Lines 109 to 116 in e8892f0
Looks like this is where the issue is from, how do i get the error message?
The text was updated successfully, but these errors were encountered: