ktock / container2wasm

Container to WASM converter
https://ktock.github.io/container2wasm-demo/
Apache License 2.0
2.07k stars 85 forks source link

When building on ARM, 0.6.5 fails. #322

Open lanmower opened 2 months ago

lanmower commented 2 months ago

Running on an ARM machine on oracle using ubuntu 22.04

2024/09/18 19:22:11 saving "ubuntu:22.04" to "/tmp/container2wasm1819273767/img"
2024/09/18 19:22:11 buildx args: [buildx build --progress=plain --build-arg TARGETARCH=amd64 --build-arg TARGETPLATFORM=linux/amd64 --platform=linux/amd64 -f /tmp/container2wasm1863133875 --output type=local,dest=/tmp/out-js2/htdocs --build-arg OUTPUT_NAME=out.wasm --build-arg LINUX_LOGLEVEL=0 --build-arg INIT_DEBUG=false /tmp/container2wasm1819273767/img]
#0 building with "default" instance using docker driver

#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.0s

#2 [internal] load build definition from container2wasm1863133875
#2 transferring dockerfile: 24.36kB done
#2 DONE 0.0s

#3 resolve image config for docker.io/docker/dockerfile:1.5
#3 DONE 0.1s

#4 docker-image://docker.io/docker/dockerfile:1.5@sha256:39b85bbfa7536a5feceb7372a0817649ecb2724562a38360f4d6a7782a409b14
#4 CACHED

#5 [internal] load metadata for docker.io/library/ubuntu:22.04
#5 DONE 0.0s

#5 [internal] load metadata for docker.io/library/ubuntu:22.04
#5 DONE 0.0s

#6 [internal] load metadata for docker.io/library/rust:1.74.1-buster
#6 DONE 0.1s

#7 [internal] load metadata for docker.io/library/ubuntu:latest
#7 DONE 0.1s

#8 [internal] load metadata for docker.io/library/golang:1.22-bullseye
#8 DONE 0.1s

#9 [internal] load metadata for docker.io/library/golang:1.21-bullseye
#9 DONE 0.1s

#10 [bochs-config-dev 1/4] FROM docker.io/library/ubuntu:22.04
#10 CACHED

#11 [bochs-dev-common  1/25] FROM docker.io/library/rust:1.74.1-buster@sha256:69a9eff032b76f79418e8451c156b7124e0cd89da841554fcde39e9ea0a5e882
#11 resolve docker.io/library/rust:1.74.1-buster@sha256:69a9eff032b76f79418e8451c156b7124e0cd89da841554fcde39e9ea0a5e882
#11 resolve docker.io/library/rust:1.74.1-buster@sha256:69a9eff032b76f79418e8451c156b7124e0cd89da841554fcde39e9ea0a5e882 0.2s done
#11 sha256:69a9eff032b76f79418e8451c156b7124e0cd89da841554fcde39e9ea0a5e882 988B / 988B done
#11 sha256:ca1dad9de65e57a6032fc6cf443e9e1d42a09ef8c4ec11c9fdc11cf58fa44260 1.38kB / 1.38kB done
#11 sha256:80e14f4aaa4adf2875939a88de1ac63d82b6862086ff99dde6873fc695675a6a 6.09kB / 6.09kB done
#11 ...

#12 [rootfs-amd64-dev  2/10] RUN apt-get update -y && apt-get install -y mkisofs
#12 0.299 exec /bin/sh: exec format error
#12 ERROR: process "/bin/sh -c apt-get update -y && apt-get install -y mkisofs" did not complete successfully: exit code: 1

#13 [golang-1.21-base 1/1] FROM docker.io/library/golang:1.21-bullseye@sha256:40a67e6626bead90d5c7957bd0354cfeb8400e61acc3adc256e03252630014a6
#13 resolve docker.io/library/golang:1.21-bullseye@sha256:40a67e6626bead90d5c7957bd0354cfeb8400e61acc3adc256e03252630014a6 0.2s done
#13 sha256:3e3b31e004ade9e39bbdc18008b0494ba3c06533cb1f48949e868602249c555b 2.81kB / 2.81kB done
#13 sha256:40a67e6626bead90d5c7957bd0354cfeb8400e61acc3adc256e03252630014a6 9.10kB / 9.10kB done
#13 sha256:301b0f36ff74f5b3b0fcae9a158b6338fd6b6d1ed8231b0fff6460a065cebeb3 2.32kB / 2.32kB done
#13 CANCELED

#14 [internal] load build context
#14 transferring context: 39.73MB 0.5s done
#14 CANCELED

#15 [golang-base 1/1] FROM docker.io/library/golang:1.22-bullseye@sha256:fafd203dccbe662bd2a95d47aff611146ce33a1543561a0b490c68ee48adc4f5
#15 resolve docker.io/library/golang:1.22-bullseye@sha256:fafd203dccbe662bd2a95d47aff611146ce33a1543561a0b490c68ee48adc4f5 0.2s done
#15 sha256:ba83bbfca9443648a883d1404b33faa0f5e096a99a2b683e3bbaee8912bca845 4.06MB / 55.08MB 0.3s
#15 sha256:fafd203dccbe662bd2a95d47aff611146ce33a1543561a0b490c68ee48adc4f5 9.10kB / 9.10kB done
#15 sha256:24d9acec509d635827636a0cd2629af78f32d4a89866d7e78ac16cfe8a7d5a58 2.32kB / 2.32kB done
#15 sha256:24069500f2280097ef9da06d4d8b1819ed58337d63616ad6d978eda2de368712 2.85kB / 2.85kB done
#15 sha256:48e779000ed269823143d5ce9acd3ef6f6ff7465222482f7b02c10ba21f448cc 0B / 15.76MB 0.3s
#15 ...

#16 [bios-amd64-dev 1/7] FROM docker.io/library/ubuntu@sha256:dfc10878be8d8fc9c61cbff33166cb1d1fe44391539243703c72766894fa834a
#16 resolve docker.io/library/ubuntu@sha256:dfc10878be8d8fc9c61cbff33166cb1d1fe44391539243703c72766894fa834a 0.2s done
#16 sha256:dfc10878be8d8fc9c61cbff33166cb1d1fe44391539243703c72766894fa834a 1.34kB / 1.34kB done
#16 sha256:77d57fd89366f7d16615794a5b53e124d742404e20f035c22032233f1826bd6a 424B / 424B done
#16 sha256:b1e9cef3f2977f8bdd19eb9ae04f83b315f80fe4f5c5651fedf41482c12432f7 2.30kB / 2.30kB done
#16 sha256:dafa2b0c44d2cfb0be6721f079092ddf15dc8bc537fb07fe7c3264c15cb2e8e6 17.83MB / 29.75MB 0.4s
#16 CANCELED

#17 [assets-base 2/3] RUN apt-get update && apt-get install -y git
#17 0.545 exec /bin/sh: exec format error
#17 ERROR: process "/bin/sh -c apt-get update && apt-get install -y git" did not complete successfully: exit code: 1

#18 [bochs-config-dev 2/4] RUN apt-get update && apt-get install -y gettext-base && mkdir /out
#18 0.571 exec /bin/sh: exec format error
#18 ERROR: process "/bin/sh -c apt-get update && apt-get install -y gettext-base && mkdir /out" did not complete successfully: exit code: 1

#19 [bochs-repo-base 2/3] RUN apt-get update && apt-get install -y git
#19 0.980 exec /bin/sh: exec format error
#19 ERROR: process "/bin/sh -c apt-get update && apt-get install -y git" did not complete successfully: exit code: 1

#11 [bochs-dev-common  1/25] FROM docker.io/library/rust:1.74.1-buster@sha256:69a9eff032b76f79418e8451c156b7124e0cd89da841554fcde39e9ea0a5e882
#11 sha256:30b73a2ffaab3c39355a8bcc5eae8ba1465bd7d9467f197b91f7635816b16bc9 4.19MB / 50.50MB 0.8s
#11 sha256:0b38726aed64a0804777af4106983e9686ea639add75dae8538ecaad0c0e6a58 10.49MB / 17.58MB 0.8s
#11 sha256:ea388039df9c5c51dda7a2d1d6908eac88ae220452b81495739aff1428c1f847 13.00MB / 51.87MB 0.8s
#11 ...

#20 [gcc-x86-64-linux-gnu-base 2/2] RUN apt-get update && apt-get install -y gcc-x86-64-linux-gnu linux-libc-dev-amd64-cross git make
#20 1.085 exec /bin/sh: exec format error
#20 CANCELED
------
 > [rootfs-amd64-dev  2/10] RUN apt-get update -y && apt-get install -y mkisofs:
0.299 exec /bin/sh: exec format error
------
------
 > [bochs-config-dev 2/4] RUN apt-get update && apt-get install -y gettext-base && mkdir /out:
0.571 exec /bin/sh: exec format error
------
------
 > [assets-base 2/3] RUN apt-get update && apt-get install -y git:
0.545 exec /bin/sh: exec format error
------
------
 > [bochs-repo-base 2/3] RUN apt-get update && apt-get install -y git:
0.980 exec /bin/sh: exec format error
------
container2wasm1863133875:59
--------------------
  57 |     ARG BOCHS_REPO
  58 |     ARG BOCHS_REPO_VERSION
  59 | >>> RUN apt-get update && apt-get install -y git
  60 |     RUN git clone ${BOCHS_REPO} /Bochs && \
  61 |         cd /Bochs && \
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update && apt-get install -y git" did not complete successfully: exit code: 1
exit status 1