From e2fc515b5f7fb0606f773ad3c33f84e793013820 Mon Sep 17 00:00:00 2001 From: Pedro Henrique Penna Date: Mon, 11 May 2026 23:16:33 -0700 Subject: [PATCH] feat: upgrade toolchain to Binutils 2.42 + GCC 13.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update pinned commits to new Nanvix-patched versions: - Binutils: 2.40 → 2.42 (07ea3ea) - GCC: 12.4.0 → 13.3.0 (f250c8b) - Bump Docker image tag: 1.0.0 → 2.0.0 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- Dockerfile | 8 ++++---- README.md | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6a3b131..526f5ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,10 +7,10 @@ # Cross-compilation toolchain: Binutils + GCC (2-stage) + Newlib for i686-nanvix. # # Build: -# docker build -t ghcr.io/nanvix/toolchain-gcc:1.0.0 . +# docker build -t ghcr.io/nanvix/toolchain-gcc:2.0.0 . # # Verify: -# docker run --rm ghcr.io/nanvix/toolchain-gcc:1.0.0 i686-nanvix-gcc --version +# docker run --rm ghcr.io/nanvix/toolchain-gcc:2.0.0 i686-nanvix-gcc --version # ============================================================================= FROM ubuntu:24.04 AS builder @@ -42,8 +42,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ && rm -rf /var/lib/apt/lists/* # Pinned commits for each component. -ARG BINUTILS_COMMIT=cce4ffcd98cfd5e715f2b323a6a585907f102a8a -ARG GCC_COMMIT=9af215ccf6fae9ba273ec45283e0ed3bcabe2429 +ARG BINUTILS_COMMIT=665bfdddb25f514d42983ff87ba24af3a72b8b01 +ARG GCC_COMMIT=f250c8b1bf7e3293494da9ddc1be21722ef46591 ARG NEWLIB_COMMIT=e12d84a6789c07f938db4f6440ea0b427914c735 ENV PREFIX=/opt/nanvix diff --git a/README.md b/README.md index ce56636..b769e05 100644 --- a/README.md +++ b/README.md @@ -15,17 +15,17 @@ This repository builds and publishes a Docker image containing the complete GCC- ```bash # Pull the image. -docker pull ghcr.io/nanvix/toolchain-gcc:1.0.0 +docker pull ghcr.io/nanvix/toolchain-gcc:2.0.0 # Cross-compile a C program. -docker run --rm -v $(pwd):/src ghcr.io/nanvix/toolchain-gcc:1.0.0 \ +docker run --rm -v $(pwd):/src ghcr.io/nanvix/toolchain-gcc:2.0.0 \ i686-nanvix-gcc -o /src/hello /src/hello.c ``` ## Building Locally ```bash -docker build -t ghcr.io/nanvix/toolchain-gcc:local . +docker build -t ghcr.io/nanvix/toolchain-gcc:2.0.0 . ``` ## Versioning @@ -36,8 +36,8 @@ This repository follows independent semantic versioning starting at `1.0.0`. Ver | Component | Repository | Commit | |-----------|-----------|--------| -| Binutils | [nanvix/binutils](https://github.com/nanvix/binutils) | `cce4ffc` | -| GCC | [nanvix/gcc](https://github.com/nanvix/gcc) | `9af215c` | +| Binutils | [nanvix/binutils](https://github.com/nanvix/binutils) | `665bfdd` | +| GCC | [nanvix/gcc](https://github.com/nanvix/gcc) | `f250c8b` | | Newlib | [nanvix/newlib](https://github.com/nanvix/newlib) | `e12d84a` | ## License