NordicPlayground / nrf-docker

Dockerfile example for building nRF Connect SDK applications with GitHub Actions
BSD 3-Clause "New" or "Revised" License
70 stars 34 forks source link

Building image with `--build-arg arch=arm64` fails #53

Closed stvnwn closed 1 year ago

stvnwn commented 1 year ago

I ran docker build -t nrfconnect-sdk --build-arg sdk_nrf_revision=v2.3-branch --build-arg arch=arm64 . on my Mac with Apple Silicon. The build fails while executing this line:

https://github.com/NordicPlayground/nrf-docker/blob/a8e70977141c322043144ec9b146ea30e89f311b/Dockerfile#L136

I've attached the output of the docker build command to this issue. Apparently, Docker failed to

build wheels for clang-format, which is required to install pyproject.toml-based projects

coderbyheart commented 1 year ago

Thanks for reporting this. We have no good way of testing this (https://github.com/github/roadmap/issues/528) so we rely on someone with Apple Silicon to figure it out.

erichotterbeefcurry commented 1 year ago

Screenshot 2023-03-14 at 2 41 42 PM Ran the same command and the image built fine for me (M1 Pro). Maybe check this page and install the things it asked for? Or maybe it was a problem with clang-format?

coderbyheart commented 1 year ago

Thanks @libochengll for checking. Closing as "works for me".