HUB
Sign inSign up
gcc logo

epicmorg/gcc

By epicmorg

•Updated about 12 hours ago

GCC 4.9-16 C/C++ toolchains built from source on epicmorg/debian:trixie-develop

Image
0

9.3K

epicmorg/gcc repository overview

⁠epicmorg/gcc

GNU 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.

⁠What's inside

TagGCC
44.9.4
5 - 12<major>.5.0
13, 14<major>.4.0
1515.3.0
1616.2.0
  • Languages: C and C++ (--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.
  • Installed into GCC_INSTALL_DIR=/usr/local/share/epicmorg/gcc/<major>, whose bin is first on PATH. GCC_VERSION holds the full version.
  • Everything from 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.

⁠Tags

Every tag is pushed to docker.io, quay.io and ghcr.io (epicmorg/gcc:<tag> on each) - same digest everywhere.

⁠Usage

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

⁠Notes

  • 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.
  • Whoever builds a library builds its consumers: C++ code linked against libraries compiled by a newer gcc may need that newer libstdc++ (GLIBCXX_3.4.x errors). Use the same image for both.
  • These are build images (20+ GB together with trixie-develop), not runtime bases.
Tag summary
Recent tags
Content type
Image
Digest
sha256:690bf9858…
Size
8.5 GB
Last updated
about 12 hours ago
docker pull epicmorg/gcc:14