GCC 4.9-16 C/C++ toolchains built from source on epicmorg/debian:trixie-develop
9.3K
epicmorg/gccGNU Compiler Collection, one major version per tag, built from the upstream
release tarballs (gcc.gnu.org/pub/gcc/releases) on top of
epicmorg/debian:trixie-develop.
These images are the build stages for our runtimes (Python, nginx, ...) and a
ready toolchain for anything that needs an older or newer compiler than Debian's.
| Tag | GCC |
|---|---|
4 | 4.9.4 |
5 - 12 | <major>.5.0 |
13, 14 | <major>.4.0 |
15 | 15.3.0 |
16 | 16.2.0 |
--enable-languages=c,c++), 64-bit only (--disable-multilib),
multiarch-aware (--enable-multiarch, finds /usr/include/x86_64-linux-gnu),
PIE by default, POSIX threads, system zlib.GCC_INSTALL_DIR=/usr/local/share/epicmorg/gcc/<major>, whose
bin is first on PATH. GCC_VERSION holds the full version.trixie-develop is there as well: prebuilt OpenSSL / curl /
libpq / ICU / libxml2 / zlib / zstd under /usr/local/share/epicmorg, CMake,
Ninja, Debian's own toolchain.Every tag is pushed to docker.io, quay.io and ghcr.io (epicmorg/gcc:<tag> on each) - same digest everywhere.
FROM epicmorg/gcc:14 AS build
WORKDIR /src
COPY . .
RUN gcc --version && ./configure --prefix=/usr/local/share/epicmorg/myapp && make -j"$(nproc)" && make install
FROM epicmorg/debian:trixie
COPY --from=build /usr/local/share/epicmorg/myapp /usr/local/share/epicmorg/myapp
gcc is not cc. gcc / g++ on PATH are this image's compiler;
cc / c++ are still Debian's system gcc 14. Build systems that prefer cc
(PHP's autoconf, for example) silently use Debian's compiler - check which one
your build picks up.libstdc++
(GLIBCXX_3.4.x errors). Use the same image for both.trixie-develop), not runtime bases.docker pull epicmorg/gcc:14