Getting qemu errors when trying to build cumulus/polkadot on the container with the official image FROM docker.io/paritytech/ci-linux:production as builder
qemu-x86_64: could not open '/lib64/ld-linux-x86-64.so.2': no such file or directory
Substrate and Polkadot Stack Exchange is a question and answer site for developers building blockchains with the Substrate SDK. It only takes a minute to sign up.
Sign up to join this communityThe Rust binary you have was compiled for an amd64 (x86_64) architecture and needs the linked library. The image you are running on the Mac M1 ARM is likely the arm64v8 image and so doesn't have libraries for amd64. Since Docker for Mac sets up qemu emulation, you can likely use the amd64 image by adding the --platform flag on docker pull and docker run.
That said, emulation over amd64 will be very slow and less than ideal. You are best using an arm64 image. I have personally used an ubuntu image successfully