🍺 BREW Explorer

← all formulae

gcc

brew install gcc v16.1.0 GPL-3.0-or-later WITH GCC-exception-3.1

GNU compiler collection for C, C++, Fortran, Go, and other languages.

Why you might care

Essential for building C/C++ software from source on macOS when Clang is not an option or when you need GCC-specific behavior (e.g., Fortran support, GCC builtins). Includes gfortran and full multiplatform support. Most projects work with either GCC or Clang, but some require GCC explicitly.

Categories

Alternatives

clang icc
88.6k
30-day installs · #49
246.3k
90-day · #71
1.0M
365-day · #50

Runtime dependencies

Build dependencies

Links

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [
    "gcc@16",
    "gfortran"
  ],
  "alternatives": [
    "clang",
    "icc"
  ],
  "build_dependencies": [
    "make"
  ],
  "categories": [
    "compiler"
  ],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [
    "gmp",
    "isl",
    "libmpc",
    "mpfr",
    "zstd"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "GNU compiler collection",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:37:55+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "gcc",
  "github_default_branch": null,
  "github_last_commit_at": null,
  "github_readme_excerpt": null,
  "github_repo": null,
  "github_stars": null,
  "github_topics": [],
  "homepage": "https://gcc.gnu.org/",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": "GCC, the GNU Compiler Collection\n- GNU Project",
  "installs_30d": 88567,
  "installs_365d": 1042754,
  "installs_90d": 246348,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "GPL-3.0-or-later WITH GCC-exception-3.1",
  "llm_generated_at": "2026-06-20T23:42:21+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "gcc",
  "oldnames": [],
  "one_liner": "GNU compiler collection for C, C++, Fortran, Go, and other languages.",
  "optional_dependencies": [],
  "rank_30d": 49,
  "rank_365d": 50,
  "rank_90d": 71,
  "raw_hash": "fc5e4c38460f9821",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/g/gcc.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [
    {
      "flex": "build"
    },
    {
      "m4": "build"
    }
  ],
  "version_head": "HEAD",
  "version_stable": "16.1.0",
  "versioned_formulae": [
    "gcc@15",
    "gcc@14",
    "gcc@13",
    "gcc@12",
    "gcc@11",
    "gcc@10",
    "gcc@9"
  ],
  "why_use_this": "Essential for building C/C++ software from source on macOS when Clang is not an option or when you need GCC-specific behavior (e.g., Fortran support, GCC builtins). Includes gfortran and full multiplatform support. Most projects work with either GCC or Clang, but some require GCC explicitly."
}