gcc

Install command:
brew install gcc

Also known as: gcc@16, gfortran

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

Formula code: gcc.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
tahoe
sequoia
sonoma
macOS on
Intel
tahoe
sequoia
sonoma
Linux ARM64
x86_64

Current versions:

stable 16.1.0
head ⚡️ HEAD

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@12 12.5.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

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

Depends on when building from source:

make 4.4.1 Utility for directing compilation

Analytics:

Installs (30 days)
gcc 117,172
gcc --HEAD 56
Installs on Request (30 days)
gcc 44,035
gcc --HEAD 54
Build Errors (30 days)
gcc 4,292
gcc --HEAD 17
Installs (90 days)
gcc 258,921
gcc --HEAD 142
Installs on Request (90 days)
gcc 127,743
gcc --HEAD 135
Installs (365 days)
gcc 1,050,768
gcc --HEAD 602
Installs on Request (365 days)
gcc 585,694
gcc --HEAD 593