Console Output
14:12:19 [2024-02-01T19:12:19.279Z] + docker build -t riscv-crosscompile .
14:12:19 [2024-02-01T19:12:19.279Z] Sending build context to Docker daemon 5.632kB
14:12:19 [2024-02-01T19:12:19.279Z] Step 1/19 : FROM debian:11.7-slim AS base
14:12:19 [2024-02-01T19:12:19.279Z] ---> 07df01f107e8
14:12:19 [2024-02-01T19:12:19.279Z] Step 2/19 : ENV TZ=America/Toronto
14:12:19 [2024-02-01T19:12:19.279Z] ---> Using cache
14:12:19 [2024-02-01T19:12:19.279Z] ---> e815ebb0dd3a
14:12:19 [2024-02-01T19:12:19.279Z] Step 3/19 : RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
14:12:19 [2024-02-01T19:12:19.279Z] ---> Using cache
14:12:19 [2024-02-01T19:12:19.279Z] ---> 38d629518ea7
14:12:19 [2024-02-01T19:12:19.279Z] Step 4/19 : RUN apt-get update && apt-get install -y binfmt-support bison build-essential ccache cmake flex gcc-riscv64-linux-gnu gdb git g++-riscv64-linux-gnu libelf-dev libdwarf-dev libglib2.0-dev lsb-release mmdebstrap ninja-build pkg-config python3 qemu-user-static time tzdata vim wget && rm -rf /var/lib/apt/lists/*
14:12:19 [2024-02-01T19:12:19.279Z] ---> Using cache
14:12:19 [2024-02-01T19:12:19.279Z] ---> 99f9fbcef429
14:12:19 [2024-02-01T19:12:19.279Z] Step 5/19 : RUN groupadd -g 1001 jenkins && useradd -rm -u 1001 -g jenkins jenkins
14:12:19 [2024-02-01T19:12:19.279Z] ---> Using cache
14:12:19 [2024-02-01T19:12:19.279Z] ---> 78e3aeba7bbc
14:12:19 [2024-02-01T19:12:19.279Z] Step 6/19 : RUN wget -O /usr/local/include/riscv.h 'https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob_plain;f=include/opcode/riscv.h;hb=2f973f134d7752cbc662ec65da8ad8bbe4c6fb8f' && wget -O /usr/local/include/riscv-opc.h 'https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob_plain;f=include/opcode/riscv-opc.h;hb=2f973f134d7752cbc662ec65da8ad8bbe4c6fb8f'
14:12:19 [2024-02-01T19:12:19.279Z] ---> Using cache
14:12:19 [2024-02-01T19:12:19.279Z] ---> 4f4068fdadc3
14:12:19 [2024-02-01T19:12:19.279Z] Step 7/19 : RUN gpg --homedir /tmp --no-default-keyring --primary-keyring "/tmp/debian-ports-keyring.gpg" --keyserver keyserver.ubuntu.com --recv-key B523E5F3FC4E5F2C
14:12:19 [2024-02-01T19:12:19.279Z] ---> Using cache
14:12:19 [2024-02-01T19:12:19.279Z] ---> a35c985f6657
14:12:19 [2024-02-01T19:12:19.279Z] Step 8/19 : RUN gpg --homedir /tmp --no-default-keyring --primary-keyring "/tmp/debian-ports-keyring.gpg" --keyserver keyserver.ubuntu.com --recv-key 8D69674688B6CB36
14:12:19 [2024-02-01T19:12:19.279Z] ---> Using cache
14:12:19 [2024-02-01T19:12:19.279Z] ---> a29144043d17
14:12:19 [2024-02-01T19:12:19.279Z] Step 9/19 : RUN gpg --homedir /tmp --no-default-keyring --primary-keyring "/tmp/debian-ports-keyring.gpg" --export 8D69674688B6CB36 > /etc/apt/trusted.gpg.d/debian-ports-archive-2023.gpg
14:12:19 [2024-02-01T19:12:19.279Z] ---> Using cache
14:12:19 [2024-02-01T19:12:19.279Z] ---> 783e919e769b
14:12:19 [2024-02-01T19:12:19.279Z] Step 10/19 : RUN gpg --homedir /tmp --no-default-keyring --primary-keyring "/tmp/debian-ports-keyring.gpg" --export 8D69674688B6CB36 > /etc/apt/trusted.gpg.d/debian-ports-archive-2023.gpg
14:12:19 [2024-02-01T19:12:19.279Z] ---> Using cache
14:12:19 [2024-02-01T19:12:19.279Z] ---> dd1b06d32f94
14:12:19 [2024-02-01T19:12:19.279Z] Step 11/19 : RUN apt-get install -y fakeroot
14:12:19 [2024-02-01T19:12:19.279Z] ---> Using cache
14:12:19 [2024-02-01T19:12:19.279Z] ---> d4a3de9d5c3e
14:12:19 [2024-02-01T19:12:19.279Z] Step 12/19 : RUN wget -O /tmp/libfakeroot_1.31-1.2_riscv64.deb http://ftp.ports.debian.org/debian-ports/pool-riscv64/main/f/fakeroot/libfakeroot_1.31-1.2_riscv64.deb
14:12:19 [2024-02-01T19:12:19.279Z] ---> Using cache
14:12:19 [2024-02-01T19:12:19.279Z] ---> 940d4eca3bf0
14:12:19 [2024-02-01T19:12:19.279Z] Step 13/19 : RUN wget -O /tmp/libfakechroot_2.20.1+ds-15_riscv64.deb http://ftp.ports.debian.org/debian-ports/pool-riscv64/main/f/fakechroot/libfakechroot_2.20.1+ds-15_riscv64.deb
14:12:19 [2024-02-01T19:12:19.279Z] ---> Using cache
14:12:19 [2024-02-01T19:12:19.279Z] ---> 32ce777230de
14:12:19 [2024-02-01T19:12:19.279Z] Step 14/19 : RUN dpkg -X /tmp/libfakeroot_1.31-1.2_riscv64.deb /
14:12:19 [2024-02-01T19:12:19.279Z] ---> Using cache
14:12:19 [2024-02-01T19:12:19.279Z] ---> 498e4cc40e5e
14:12:19 [2024-02-01T19:12:19.279Z] Step 15/19 : RUN dpkg -X /tmp/libfakechroot_2.20.1+ds-15_riscv64.deb /
14:12:19 [2024-02-01T19:12:19.279Z] ---> Using cache
14:12:19 [2024-02-01T19:12:19.279Z] ---> 6e2591655cc3
14:12:19 [2024-02-01T19:12:19.279Z] Step 16/19 : RUN update-alternatives --set fakeroot /usr/bin/fakeroot-tcp
14:12:19 [2024-02-01T19:12:19.279Z] ---> Using cache
14:12:19 [2024-02-01T19:12:19.279Z] ---> bd9775c486a8
14:12:19 [2024-02-01T19:12:19.279Z] Step 17/19 : RUN mmdebstrap --mode=fakeroot --variant=minbase --architectures=riscv64 --include="debian-ports-archive-keyring,build-essential,libdwarf-dev,libelf-dev,libx11-dev,libxext-dev,libxrender-dev,libxrandr-dev,libxtst-dev,libxt-dev,libasound2-dev,libcups2-dev,libfontconfig1-dev" bullseye "/opt/sysroot" "deb http://deb.debian.org/debian-ports/ sid main" "deb http://deb.debian.org/debian-ports/ unreleased main"
14:12:19 [2024-02-01T19:12:19.279Z] ---> Using cache
14:12:19 [2024-02-01T19:12:19.279Z] ---> 3dd4ecf7850a
14:12:19 [2024-02-01T19:12:19.279Z] Step 18/19 : ENV CROSS_SYSROOT_RISCV64=/opt/sysroot
14:12:19 [2024-02-01T19:12:19.279Z] ---> Using cache
14:12:19 [2024-02-01T19:12:19.279Z] ---> b363eb988819
14:12:19 [2024-02-01T19:12:19.279Z] Step 19/19 : USER jenkins
14:12:19 [2024-02-01T19:12:19.279Z] ---> Using cache
14:12:19 [2024-02-01T19:12:19.279Z] ---> f96ca60d2ae4
14:12:19 [2024-02-01T19:12:19.279Z] Successfully built f96ca60d2ae4
14:12:19 [2024-02-01T19:12:19.279Z] Successfully tagged riscv-crosscompile:latest