Skip to content
This repository was archived by the owner on Jul 13, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down