Skip to content
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

Ensure Docker image builds & runs on M1 Mac #104

Open
cbosborn opened this issue Mar 5, 2022 · 3 comments
Open

Ensure Docker image builds & runs on M1 Mac #104

cbosborn opened this issue Mar 5, 2022 · 3 comments

Comments

@cbosborn
Copy link
Contributor

cbosborn commented Mar 5, 2022

Seeing this error running docker build on an M1 Mac:

docker build -f docker/Dockerfile . -t dialect/protocol:latest
...
=> ERROR [ 3/14] RUN sh -c "$(curl -sSfL https://release.solana.com/v1.8.0/install)"                                                                                                                                                                                                          3.3s
------
 > [ 3/14] RUN sh -c "$(curl -sSfL https://release.solana.com/v1.8.0/install)":
#6 0.908 downloading v1.8.0 installer
#6 3.233 qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory
------
executor failed running [/bin/sh -c sh -c "$(curl -sSfL https://release.solana.com/v1.8.0/install)"]: exit code: 255

@tsmbl have you tried this yet, and did it work?

@cbosborn
Copy link
Contributor Author

cbosborn commented Mar 5, 2022

Seems related https://stackoverflow.com/a/69075554/2322073

@cbosborn
Copy link
Contributor Author

cbosborn commented Mar 5, 2022

Unrelated, but now seeing that Solana v1.8.0 is no longer an available release:

 => ERROR [ 3/14] RUN sh -c "$(curl -sSfL https://release.solana.com/v1.8.0/install)"                                                                                                                                                                                                          5.1s
------
 > [ 3/14] RUN sh -c "$(curl -sSfL https://release.solana.com/v1.8.0/install)":
#6 1.187 downloading v1.8.0 installer
#6 5.109 Error: Unknown release: 1.8.0
------

We should of course update this.

@cbosborn
Copy link
Contributor Author

cbosborn commented Mar 5, 2022

Bashing in I found this in .anchor/test-ledger/validator.log:

[2022-03-05T23:22:58.400837468Z WARN  solana_perf] CUDA is disabled
[2022-03-05T23:22:58.400984593Z ERROR solana_perf] Incompatible CPU detected: missing AVX support. Please build from source on the target
qemu: uncaught target signal 6 (Aborted) - core dumped

which makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant