You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Start with Ubuntu 22.04 as the base imageFROM ubuntu:22.04
# Set environment variables to avoid interactive prompts during buildENV DEBIAN_FRONTEND=noninteractive
# Update and install required dependenciesRUN apt-get update && apt-get install -y \
autoconf \
automake \
autotools-dev \
curl \
python3 \
python3-pip \
libmpc-dev \
libmpfr-dev \
libgmp-dev \
gawk \
build-essential \
bison \
flex \
texinfo \
gperf \
libtool \
patchutils \
bc \
zlib1g-dev \
libexpat-dev \
ninja-build \
git \
cmake \
libglib2.0-dev \
&& rm -rf /var/lib/apt/lists/* # Clean up apt cache to reduce image size
# Clone the riscv-gnu-toolchain repositoryRUN git clone https://github.com/riscv/riscv-gnu-toolchain /riscv-gnu-toolchain
# Build the toolchainWORKDIR /riscv-gnu-toolchain
RUN ./configure --prefix=/opt/riscv --enable-multilib && \
make -j$(nproc) newlib linux build-sim SIM=qemu && \
make install && \
rm -rf /riscv-gnu-toolchain # Clean up to reduce image size
# Set the PATH environment variable to include the RISC-V toolchainENV PATH=/opt/riscv/bin:$PATH
# Set the working directory (optional)WORKDIR /workspace
# Set the default command to run (you can override this when running the container)CMD ["bash"]
The text was updated successfully, but these errors were encountered:
Error while building with
build-sim SIM=qemu
in Ubuntu 22.04Dockerfile to reproduce
The text was updated successfully, but these errors were encountered: