Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Build error 'mkimage' exit code 1 #16

Open
AlexanderSlaa opened this issue Jul 19, 2022 · 4 comments
Open

Docker Build error 'mkimage' exit code 1 #16

AlexanderSlaa opened this issue Jul 19, 2022 · 4 comments
Assignees

Comments

@AlexanderSlaa
Copy link

AlexanderSlaa commented Jul 19, 2022

Hello,

I'm trying to build via the compose file but i get this mkimage error:

[+] Building 23.4s (72/177)
 => [d1_build_dock internal] load build definition from Dockerfile                                                                                                                       0.0s
 => => transferring dockerfile: 8.79kB                                                                                                                                                   0.0s
 => [d1_build_panel internal] load build definition from Dockerfile                                                                                                                      0.0s
 => => transferring dockerfile: 8.79kB                                                                                                                                                   0.0s
 => [d1_build_dock internal] load .dockerignore                                                                                                                                          0.0s
 => => transferring context: 2B                                                                                                                                                          0.0s
 => [d1_build_panel internal] load .dockerignore                                                                                                                                         0.0s
 => => transferring context: 2B                                                                                                                                                          0.0s
 => [d1_build_dock internal] load metadata for docker.io/library/debian:bullseye                                                                                                         1.2s
 => [d1_build_panel builder 1/4] FROM docker.io/library/debian:bullseye@sha256:2ce44bbc00a79113c296d9d25524e15d423b23303fdbbe20190d2f96e0aeb251                                          0.0s
 => [d1_build_panel internal] load build context                                                                                                                                         0.0s
 => => transferring context: 6.17kB                                                                                                                                                      0.0s 
 => CACHED [d1_build_dock builder 2/4] RUN apt-get update && apt-get install -y autoconf automake autotools-dev curl python3 libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bis  0.0s 
 => CACHED [d1_build_dock builder 3/4] RUN apt-get install -y gcc-riscv64-linux-gnu g++-riscv64-linux-gnu                                                                                0.0s 
 => CACHED [d1_build_dock builder 4/4] RUN riscv64-linux-gnu-gcc --version | grep gcc | cut -d')' -f2                                                                                    0.0s 
 => [d1_build_panel build_image  1/15] RUN apt-get install -y kpartx parted                                                                                                              2.9s 
 => [d1_build_panel build_kernel  1/20] RUN apt-get install -y cpio  # Required for kernel build                                                                                         2.1s
 => CACHED [d1_build_panel build_boot0 1/6] RUN echo CROSS_COMPILE=riscv64-linux-gnu-                                                                                                    0.0s
 => CACHED [d1_build_panel build_boot0 2/6] WORKDIR /build                                                                                                                               0.0s
 => CACHED [d1_build_panel build_boot0 3/6] RUN git clone           --branch mainline https://github.com/smaeul/sun20i_d1_spl                                                            0.0s
 => CACHED [d1_build_panel build_boot0 4/6] WORKDIR /build/sun20i_d1_spl                                                                                                                 0.0s
 => CACHED [d1_build_panel build_boot0 5/6] RUN echo make CROSS_COMPILE=riscv64-linux-gnu- p=sun20iw1p1 mmc                                                                              0.0s
 => CACHED [d1_build_panel build_boot0 6/6] RUN make CROSS_COMPILE=riscv64-linux-gnu- p=sun20iw1p1 mmc                                                                                   0.0s
 => [d1_build_dock internal] load build context                                                                                                                                          0.0s 
 => => transferring context: 6.18kB                                                                                                                                                      0.0s 
 => [d1_build_dock build_image  1/15] RUN apt-get install -y kpartx parted                                                                                                               2.9s 
 => CACHED [d1_build_panel build_rootfs  1/24] RUN apt-get install -y mmdebstrap qemu-user-static binfmt-support debian-ports-archive-keyring                                            0.0s 
 => CACHED [d1_build_panel build_rootfs  2/24] RUN apt-get install -y multistrap systemd-container                                                                                       0.0s 
 => CACHED [d1_build_panel build_rootfs  3/24] RUN apt-get install -y kmod                                                                                                               0.0s 
 => CACHED [d1_build_panel build_rootfs  4/24] WORKDIR /build                                                                                                                            0.0s 
 => CACHED [d1_build_panel build_rootfs  5/24] COPY rootfs/multistrap_lichee_rv_86.conf multistrap.conf                                                                                  0.0s 
 => CACHED [d1_build_dock build_opensbi 1/4] WORKDIR /build                                                                                                                              0.0s 
 => CACHED [d1_build_dock build_opensbi 2/4] RUN git clone --depth 1 --branch d1-wip  https://github.com/smaeul/opensbi                                                                  0.0s 
 => CACHED [d1_build_dock build_opensbi 3/4] WORKDIR /build/opensbi                                                                                                                      0.0s 
 => [d1_build_dock build_uboot  9/21] RUN if [ "lichee_rv_dock"  = "lichee_rv_86" ] ; then       echo "Building for the RV_86_Panel";       ./update_uboot_config.sh lichee_rv_86_panel  3.2s 
 => [d1_build_panel build_kernel  2/20] WORKDIR /build                                                                                                                                   0.0s 
 => CANCELED [d1_build_dock build_kernel  3/20] RUN git clone --depth 1 --branch d1-wip-v5.18-rc4 https://github.com/smaeul/linux                                                       19.0s 
 => [d1_build_panel build_image  2/15] WORKDIR /builder                                                                                                                                  0.0s 
 => [d1_build_panel build_uboot 10/21] RUN make -j $(nproc) CROSS_COMPILE=riscv64-linux-gnu- all V=1                                                                                    15.3s 
 => [d1_build_dock build_image  2/15] WORKDIR /builder                                                                                                                                   0.0s 
 => [d1_build_dock build_uboot 10/21] RUN make -j $(nproc) CROSS_COMPILE=riscv64-linux-gnu- all V=1                                                                                     15.0s 
 => [d1_build_panel build_uboot 11/21] RUN ls -l arch/riscv/dts/                                                                                                                         0.9s 
 => [d1_build_dock build_uboot 11/21] RUN ls -l arch/riscv/dts/                                                                                                                          1.4s 
 => [d1_build_panel build_uboot 12/21] WORKDIR /build                                                                                                                                    0.0s 
 => [d1_build_panel build_uboot 13/21] COPY --from=build_opensbi /build/opensbi/build/platform/generic/firmware/fw_dynamic.bin ./                                                        0.0s 
 => [d1_build_panel build_uboot 14/21] COPY config/toc1_lichee_rv_86.cfg .                                                                                                               0.0s 
 => [d1_build_panel build_uboot 15/21] RUN ls -l                                                                                                                                         0.8s 
 => [d1_build_dock build_uboot 12/21] WORKDIR /build                                                                                                                                     0.0s 
 => [d1_build_dock build_uboot 13/21] COPY --from=build_opensbi /build/opensbi/build/platform/generic/firmware/fw_dynamic.bin ./                                                         0.0s 
 => [d1_build_dock build_uboot 14/21] COPY config/toc1_lichee_rv_dock.cfg .                                                                                                              0.0s 
 => [d1_build_dock build_uboot 15/21] RUN ls -l                                                                                                                                          0.8s 
 => ERROR [d1_build_panel build_uboot 16/21] RUN ./u-boot/tools/mkimage -A riscv -T sunxi_toc1 -d toc1_lichee_rv_86.cfg u-boot.toc1                                                      1.1s 
 => CANCELED [d1_build_dock build_uboot 16/21] RUN ./u-boot/tools/mkimage -A riscv -T sunxi_toc1 -d toc1_lichee_rv_dock.cfg u-boot.toc1                                                  1.7s 
------
 > [d1_build_panel build_uboot 16/21] RUN ./u-boot/tools/mkimage -A riscv -T sunxi_toc1 -d toc1_lichee_rv_86.cfg u-boot.toc1:
------
failed to solve: executor failed running [/bin/sh -c ./u-boot/tools/mkimage -A riscv -T sunxi_toc1 -d toc1_${BOARD}.cfg u-boot.toc1]: exit code: 1
PS E:\Github\External\d1_build>

System:
Windows 11 with Docker Desktop

Thanks in advance

@tmolteno
Copy link
Owner

Thanks for the report. What operating system are you using to do the build?

@tmolteno tmolteno self-assigned this Jul 20, 2022
@tmolteno
Copy link
Owner

This might be something to do with running docker on Windows.

=> CANCELED [d1_build_dock build_kernel 3/20] RUN git clone --depth 1 --branch d1-wip-v5.18-rc4 https://github.com/smaeul/linux 19.0s

Do you know why this step reports canceled?

@AlexanderSlaa
Copy link
Author

No, im going to look at this today.
If i find the reason i let you known.

@AlexanderSlaa
Copy link
Author

I build it using this command docker-compose build --no-cache --progress=plain > build.log so i could analyse the output. Im still looking into it but maybe you see something strange in the output logs.

Build log file:
build.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants