gcc@12

Install command:
brew install gcc@12

GNU compiler collection

https://gcc.gnu.org/

License: GPL-3.0-or-later WITH GCC-exception-3.1

Development: Pull requests

Formula JSON API: /api/formula/gcc@12.json

Formula code: gcc@12.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
sonoma ✅
macOS on
Intel
tahoe ✅
sequoia ✅
sonoma ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 12.5.0

Other versions:

gcc@15 15.3.0 GNU compiler collection
gcc@14 14.4.0 GNU compiler collection
gcc@13 13.4.0 GNU compiler collection
gcc@11 11.5.0 GNU compiler collection
gcc@10 10.5.0 GNU compiler collection
gcc@9 9.5.0 GNU compiler collection

Patches:

https://github.com/Homebrew/homebrew-core/blob/main/Patches/gcc/gcc-12.4.0.diff
https://github.com/iains/gcc-12-branch/compare/e300c1337a48cf772b09e7136601fd7f9f09d6f1..914cec39148b1c8a697976275629aa8526ea1050
https://github.com/iains/gcc-12-branch/compare/f0f9d56ffca2da2cab9af21c0c378ffe4d9cf908...99533d94172ed7a24c0e54c4ea97e6ae2260409e
https://github.com/Homebrew/homebrew-core/blob/main/Patches/gcc/gcc-12-13-darwin-version-mapping.diff
https://github.com/Homebrew/homebrew-core/blob/main/Patches/gcc/gcc-12.5.0-alignof.diff

Depends on:

gmp 6.3.0 GNU multiple precision arithmetic library
isl 0.28 Integer Set Library for the polyhedral model
libmpc 1.4.1 C library for the arithmetic of high precision complex numbers
mpfr 4.2.2 C library for multiple-precision floating-point computations
zstd 1.5.7 Zstandard is a real-time compression algorithm

Binaries: aarch64-apple-darwin23-c++-12, aarch64-apple-darwin23-gcc-12, aarch64-apple-darwin23-gcc-ar-12, aarch64-apple-darwin23-gcc-nm-12, aarch64-apple-darwin23-gcc-ranlib-12, aarch64-apple-darwin23-gfortran-12, cpp-12, gcov-12, gcov-dump-12, gcov-tool-12, lto-dump-12

Analytics:

30 days90 days365 days
Installs611923,290
Installs (--HEAD)014
Installs on Request581873,238
Installs on Request (--HEAD)014
Build Errors0