qmk / qmk_cli

A program to help users work with QMK
MIT License
142 stars 35 forks source link

Docker issue #140

Closed judwal closed 1 year ago

judwal commented 1 year ago

Information

Description

I try to build QMK for a ARM64 architecture using Docker (official images are for amd64 in hub.docker). During the building of « qmk_cli », using Dockerfile and the command « sudo docker build -t qmkfm/qmk_cli . » an error is raised :

Step 2/5 : ADD dist /tmp/dist ADD failed: file not found in build context or excluded by .dockerignore: stat dist: file does not exist

There is no « dist(tribution/ant ?) » directory in the source code of qmk_cli.

Where am I wrong ?

Thanks for your help.

fauxpark commented 1 year ago

I'm not sure it's possible. The CLI inherits from qmk_base_container which pulls in an AVR toolchain compiled for x86.

judwal commented 1 year ago

What a pity, there is no workaround ? With using another library ? ( previous release did well with arm64 architecture - with build of qmk_base_container + qmk_firmware)

tzarc commented 1 year ago

The issue is a lack of suitable prebuilt toolchain for gcc 8.x on aarch64. I struck the same problem when attempting to move some builds to Pi4's -- non-trivial solution that necessitates building an entire toolchain.

There are ideas being tossed around regarding providing a set toolchain version across all architectures, but there's a lot of legwork to get there.

zvecr commented 1 year ago

ARM images published.

For manualy building, you would need to download the cli files manually like https://github.com/qmk/qmk_cli/blob/master/.github/workflows/docker-republish.yml#L33.