macOS
brew install gcc@12local Homebrew formula metadata
sudo port install gcc12MacPorts ports tree · lang/gcc12/Portfile · Quelle: api.github.com
brew
Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für gcc@12 in AI-Agent-Workflows.
Installation
brew install gcc@12local Homebrew formula metadata
sudo port install gcc12MacPorts ports tree · lang/gcc12/Portfile · Quelle: api.github.com
sudo apt install gcc-12Debian stable package indexes · gcc-12 · Quelle: deb.debian.org
sudo apk add gccAlpine Linux edge package indexes · gcc · Quelle: dl-cdn.alpinelinux.org
sudo dnf install gccFedora Rawhide package metadata · gcc · Quelle: dl.fedoraproject.org
nix profile install nixpkgs#gccnixpkgs package indexes · gcc · Quelle: raw.githubusercontent.com
sudo pacman -S gccArch Linux sync databases · gcc · Quelle: geo.mirror.pkgbuild.com
sudo zypper install gccopenSUSE Tumbleweed package metadata · gcc · Quelle: download.opensuse.org
scoop install main/gccScoop official bucket manifest trees · bucket/gcc.json · Quelle: api.github.com
Überblick
GNU compiler collection
Verlauf
GCC 12 is a versioned Homebrew package for the GCC 12 release series of the GNU Compiler Collection. It provides the GNU Project compiler suite under major-version-suffixed command names so it can coexist with other GCC lines and platform compilers.
GCC itself is one of the central free-software toolchains: the official project describes it as the GNU Compiler Collection, with front ends for C, C++, Objective-C, Fortran, Ada, Go, D, Modula-2, COBOL, Rust, and Algol 68, plus runtime libraries such as libstdc++.
GCC began as the GNU C Compiler. The GCC project history records the first beta release on March 22, 1987, by Richard Stallman, originally for the GNU operating system and initially centered on C.
During the 1990s, GCC grew beyond C into a multi-language compiler suite. The official GCC 2.95 page notes that the name changed from GNU C Compiler to GNU Compiler Collection because the compiler supported several languages beyond C.
A major governance and development milestone was the EGCS fork in 1997, created to merge active GCC development work from several communities. GCC and EGCS were reunified in April 1999, and GCC 2.95 was the first release after that reunification.
GCC became widely adopted because it was both the GNU system compiler and an openly developed, portable optimizing compiler. The current mission statement emphasizes support for many platforms, many architectures, open mailing lists, and participation by individuals and companies.
The GCC 12 package represents package-manager demand for a stable major compiler series rather than only the newest compiler. Official release branches and tags make these major lines easy for distributors and users to pin, audit, and rebuild.
As packaged here, GCC 12 exposes version-suffixed compiler tools such as gcc-12, g++-12, cpp-12, gcov-12, and gfortran-12, depending on the platform package. This lets users select the intended compiler line explicitly in build scripts.
Official GCC installation documentation covers downloading sources, configuring, building, testing, and final installation, while the online manuals document compiler invocation, language front ends, runtime libraries, and toolchain options.
The GCC 12 change notes highlight compiler-infrastructure shifts useful to package users, including vectorization enabled at -O2 and expanded OpenMP/OpenACC support.
Versioned GCC packages matter because compilers are infrastructure, not leaf applications. A build may need a particular major GCC for language support, libstdc++ behavior, Fortran ABI expectations, sanitizer behavior, or target support, while another project on the same machine needs a different line.
The official Git repository page documents release branches and release tags, which is exactly the provenance package maintainers need when mapping formula names such as gcc@12 or gcc@15 to upstream source history.
Sicherheitslage
Für gcc@12 wurde kein passendes lokales Secret-Handling-Manifest gefunden. Nucleus-Paketmetadaten bleiben hier veröffentlicht, damit künftige Abdeckung eine stabile Paket-URL hat.
Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.
Executables
| Befehl | Art | Sichtbarkeit | Hinweis |
|---|---|---|---|
aarch64-apple-darwin23-c++-12 | cli | globales Executable | |
aarch64-apple-darwin23-gcc-12 | cli | globales Executable | |
aarch64-apple-darwin23-gcc-ar-12 | cli | globales Executable | |
aarch64-apple-darwin23-gcc-nm-12 | cli | globales Executable | |
aarch64-apple-darwin23-gcc-ranlib-12 | cli | globales Executable | |
aarch64-apple-darwin23-gfortran-12 | cli | globales Executable | |
cpp-12 | cli | globales Executable | |
gcov-12 | cli | globales Executable | |
gcov-dump-12 | cli | globales Executable | |
gcov-tool-12 | cli | globales Executable | |
lto-dump-12 | cli | globales Executable |
Aktualität
Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.
Installationsmetadaten
| Paketschlüssel | brew:gcc@12 |
|---|---|
| Version | 12.5.0 |
| Paketmanager | Homebrew |
| Paketmanager-Seite | https://formulae.brew.sh/formula/gcc@12 |
| Homepage | https://gcc.gnu.org/ |
| Repository | https://gcc.gnu.org/git/gcc.git |
| Upstream-Dokumentation | https://gcc.gnu.org/install |
| Lizenz | GPL-3.0-or-later WITH GCC-exception-3.1 |
| Quellarchiv | https://ftpmirror.gnu.org/gnu/gcc/gcc-12.5.0/gcc-12.5.0.tar.xz |
| Zuletzt aktualisiert | 2026-06-25T13:37:41+02:00 |
| Pulse | updated |
| Abhängigkeiten | gmp, isl, libmpc, mpfr, zstd |
| Bottle | verfügbar (auf arm64_linux, arm64_sonoma, arm64_tahoe, sequoia, sonoma, tahoe, x86_64_linux) |
| Homebrew post-install | definiert |
| Dienst | keiner deklariert |
Registry-Fakten
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gcc@12 |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
Source-Datenbank-Treffer
Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.
cpp-12 12.4.0-5
GNU C preprocessor
sudo apt install cpp-12g++-12 12.4.0-5
GNU C++ compiler
sudo apt install g++-12g++-12-multilib 12.4.0-5
GNU C++ compiler (multilib support)
sudo apt install g++-12-multilibgcc-12 12.4.0-5
GNU C compiler
sudo apt install gcc-12gcc-12-base 12.4.0-5
GCC, the GNU Compiler Collection (base package)
sudo apt install gcc-12-basegcc-12-hppa64-linux-gnu 12.4.0-5
GNU C compiler (cross compiler for hppa64)
sudo apt install gcc-12-hppa64-linux-gnugcc-12-locales 12.4.0-5
GCC, the GNU compiler collection (native language support files)
sudo apt install gcc-12-localesgcc-12-multilib 12.4.0-5
GNU C compiler (multilib support)
sudo apt install gcc-12-multilibgcc-12-offload-amdgcn 12.4.0-5
GCC offloading compiler to GCN
sudo apt install gcc-12-offload-amdgcngcc-12-offload-nvptx 12.4.0-5
GCC offloading compiler to NVPTX
sudo apt install gcc-12-offload-nvptxgcc-12-plugin-dev 12.4.0-5
Files for GNU GCC plugin development.
sudo apt install gcc-12-plugin-devgcc-12-source 12.4.0-5
Source of the GNU Compiler Collection
sudo apt install gcc-12-sourcegcc-12-test-results 12.4.0-5
Test results for the GCC test suite
sudo apt install gcc-12-test-resultsgccgo-12 12.4.0-5
GNU Go compiler
sudo apt install gccgo-12gccgo-12-multilib 12.4.0-5
GNU Go compiler (multilib support)
sudo apt install gccgo-12-multilibgdc-12 12.4.0-5
GNU D compiler (version 2)
sudo apt install gdc-12Quellspur
Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.
View the package source record on GitHub.