qemu-static icon indicating copy to clipboard operation
qemu-static copied to clipboard

/bin/sh: /work/command/fetch: not found

Open ghost opened this issue 8 months ago • 2 comments

Cloned from master, latest commit (55948054f9a2473133d6aa41e16a99ec61489aa7), and running docker build --tag qemu-static . fails:

[+] Building 11.2s (13/26)                                                                                    docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                                          0.0s
 => => transferring dockerfile: 847B                                                                                          0.0s
 => [internal] load metadata for docker.io/library/alpine:3.21.3                                                              0.0s
 => [internal] load .dockerignore                                                                                             0.0s
 => => transferring context: 88B                                                                                              0.0s
 => [ 1/22] FROM docker.io/library/alpine:3.21.3@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c      3.4s
 => => resolve docker.io/library/alpine:3.21.3@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c        3.3s
 => [internal] load build context                                                                                             0.0s
 => => transferring context: 5.46kB                                                                                           0.0s
 => [ 2/22] RUN apk update                                                                                                    1.1s
 => [ 3/22] RUN apk upgrade                                                                                                   0.6s
 => [ 4/22] RUN apk add make samurai perl python3 gcc libc-dev pkgconf linux-headers glib-dev glib-static zlib-dev zlib-stat  5.8s
 => [ 5/22] RUN apk add bash xz git patch                                                                                     0.7s
 => [ 6/22] WORKDIR /work                                                                                                     0.0s
 => [ 7/22] COPY command/base command/base                                                                                    0.0s
 => [ 8/22] COPY command/fetch command/fetch                                                                                  0.0s
 => ERROR [ 9/22] RUN /work/command/fetch                                                                                     0.3s
------
 > [ 9/22] RUN /work/command/fetch:
0.311 /bin/sh: /work/command/fetch: not found
------
Dockerfile:28
--------------------
  26 |     COPY command/base command/base
  27 |     COPY command/fetch command/fetch
  28 | >>> RUN /work/command/fetch
  29 |
  30 |     COPY command/extract command/extract
--------------------
ERROR: failed to solve: process "/bin/sh -c /work/command/fetch" did not complete successfully: exit code: 127

ghost avatar Mar 23 '25 23:03 ghost

I am unable to duplicate this issue. That is, it works for me. Perhaps there is something amiss in your working tree like a mistakenly deleted fetch file.

mikdusan avatar Mar 24 '25 01:03 mikdusan

I forgot to mention I'm on Windows 11 IoT Enterprise LTSC (10.0.26100 Build 26100), I tried doing it on WSL2 and it worked fine

ghost avatar Mar 24 '25 02:03 ghost