macOS
brew install flanglocal Homebrew formula metadata
brew
LLVM Fortran Frontend. Version 22.1.8 via Homebrew; verified 2026-06-21.
install
brew install flanglocal Homebrew formula metadata
sudo apt install flangDebian stable package indexes · flang · source: deb.debian.org
sudo dnf install flangFedora Rawhide package metadata · flang · source: dl.fedoraproject.org
nix profile install nixpkgs#flangnixpkgs package indexes · flang · source: raw.githubusercontent.com
overview
LLVM Fortran Frontend
history
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.
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.
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.
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.
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.
security posture
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.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
bbc | cli | global executable | |
f18-parse-demo | cli | global executable | |
fir-lsp-server | cli | global executable | |
fir-opt | cli | global executable | |
flang | cli | global executable | |
flang-22 | cli | global executable | |
flang-new | cli | global executable | |
tco | cli | global executable |
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.
https://github.com/llvm/llvm-project
install metadata
| Package key | brew:flang |
|---|---|
| Version | 22.1.8 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/flang |
| Homepage | https://flang.llvm.org/ |
| Repository | https://github.com/llvm/llvm-project |
| Upstream docs | https://flang.llvm.org/docs |
| License | Apache-2.0 WITH LLVM-exception |
| Source archive | https://github.com/llvm/llvm-project/releases/download/llvmorg-22.1.8/llvm-project-22.1.8.src.tar.xz |
| Last updated | 2026-06-21T01:50:33Z |
| Pulse | updated |
| Dependencies | llvm |
| Build dependencies | cmake, ninja |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | flang |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
flang 1:19.0-63
Fortran compiler
sudo apt install flangflang
nix profile install nixpkgs#flangflang 1:18.0-59~exp2
Fortran compiler
sudo apt install flangflang 22.1.7-1.fc45
a Fortran language front-end designed for integration with LLVM
sudo dnf install flangsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.