Automic VaultAutomic Vault

brew

Install flang with Homebrew, apt, dnf, Nix

LLVM Fortran Frontend. Version 22.1.8 via Homebrew; verified 2026-06-21.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install flang

local Homebrew formula metadata

overview

Package summary

LLVM Fortran Frontend

Commands and aliases

  • bbc
  • f18-parse-demo
  • fir-lsp-server
  • fir-opt
  • flang
  • flang-22
  • flang-new
  • tco

history

Project history and usage

Flang is LLVM's Fortran frontend. The official documentation distinguishes LLVM Flang from Classic Flang, describes it as a separate and independent Fortran compiler, and notes that LLVM Flang is under active development.

Project history

LLVM Flang lives in the monorepo under `llvm-project/flang` and is documented by the Flang team. The documentation copyright spans 2017-2026 and the current docs describe an actively developed frontend that can generate executables for a number of examples while some functionality remains missing.

The compiler architecture is documented around analysis, lowering, and object-code generation/linking. Analysis creates a decorated parse tree and symbol table, lowering converts that information into FIR, a Fortran dialect of MLIR, and later passes produce LLVM IR for the existing LLVM code-generation pipeline.

Adoption history

Flang's adoption is tied to the LLVM toolchain rather than a standalone language ecosystem. It gives LLVM distributions, package managers, and compiler users a Fortran frontend that participates in LLVM's common infrastructure.

The official docs' distinction between LLVM Flang and Classic Flang matters for users and packagers because the name has referred to more than one Fortran compiler lineage.

How it is used

Users invoke `flang` as a compiler driver for Fortran source. The docs also show developer-oriented `-fc1` and `-mmlir` commands for dumping preprocessing output, parse trees, symbol tables, FIR, MLIR pass output, and LLVM IR.

No user credentials or persistent configuration file are documented in the supplied curation or the official Flang docs.

Why package nerds care

Flang is significant because it brings Fortran into the LLVM package universe, making Fortran compilation part of the same modular compiler stack used by Clang and other LLVM frontends.

For compiler-package curators, the key nerd detail is FIR: a Fortran-specific IR layered on MLIR before conversion to LLVM IR, exposing more of the compiler pipeline than a black-box Fortran driver.

Timeline

  • 2017: Flang documentation copyright begins in the official docs.
  • 2020s: LLVM Flang is documented as separate from Classic Flang and under active development.
  • 2026: Current docs include Flang 23 in-progress release notes and updated compiler-phase documentation.

Related projects

  • Classic Flang is the separate historical compiler explicitly distinguished by the docs.
  • LLVM provides the broader compiler infrastructure and monorepo.
  • MLIR and FIR are central to Flang lowering before LLVM IR generation.

security posture

No protected-tool coverage found yet

No matching local secret-handling manifest was found for flang. Nucleus package metadata is still published here so future coverage has a stable package URL.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 1 runtime dependencies.
  • Build metadata lists 2 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
bbccliglobal executable
f18-parse-democliglobal executable
fir-lsp-servercliglobal executable
fir-optcliglobal executable
flangcliglobal executable
flang-22cliglobal executable
flang-newcliglobal executable
tcocliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version22.1.8
manager updated2026-06-21
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/llvm/llvm-project

install metadata

Package metadata

Package keybrew:flang
Version22.1.8
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/flang
Homepagehttps://flang.llvm.org/
Repositoryhttps://github.com/llvm/llvm-project
Upstream docshttps://flang.llvm.org/docs
LicenseApache-2.0 WITH LLVM-exception
Source archivehttps://github.com/llvm/llvm-project/releases/download/llvmorg-22.1.8/llvm-project-22.1.8.src.tar.xz
Last updated2026-06-21T01:50:33Z
Pulseupdated
Dependenciesllvm
Build dependenciescmake, ninja
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameflang
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

flang 1:19.0-63

Fortran compiler

sudo apt install flang
  • Section: devel
  • Architecture: amd64
  • Source Package: llvm-defaults
  • 1 dependencies
  • normalized package name match
  • Matched by: Flang
Debian stable package indexes · deb.debian.org · Debian stable package indexes: flang from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

flang

nix profile install nixpkgs#flang
  • normalized package name match
  • Matched by: Flang
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: flang from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

flang 1:18.0-59~exp2

Fortran compiler

sudo apt install flang
  • Section: universe/devel
  • Architecture: amd64
  • Source Package: llvm-defaults
  • 1 dependencies
  • normalized package name match
  • Matched by: Flang
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: flang from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
dnf95%

flang 22.1.7-1.fc45

a Fortran language front-end designed for integration with LLVM

https://flang.llvm.org

sudo dnf install flang
  • License: Apache-2.0 WITH LLVM-exception
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: llvm
  • 13 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Flang
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: flang from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment