Automic VaultAutomic Vault

brew

使用 Homebrew, apt, dnf, Nix 安装 flang

查看 flang 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install flang

local Homebrew formula metadata

概览

软件包摘要

LLVM Fortran Frontend

命令和别名

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

历史

项目历史与用法

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.

时间线

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

安全态势

尚未找到受保护工具覆盖

没有找到 flang 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。
  • 构建元数据列出 2 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
bbccli全局可执行文件
f18-parse-democli全局可执行文件
fir-lsp-servercli全局可执行文件
fir-optcli全局可执行文件
flangcli全局可执行文件
flang-22cli全局可执行文件
flang-newcli全局可执行文件
tcocli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本22.1.8
管理器更新时间2026-06-21
本地数据OK
上游not checked
检测到的最新版本未检测到

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

安装元数据

软件包元数据

软件包键brew:flang
版本22.1.8
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/flang
主页https://flang.llvm.org/
仓库https://github.com/llvm/llvm-project
上游文档https://flang.llvm.org/docs
许可证Apache-2.0 WITH LLVM-exception
源码归档https://github.com/llvm/llvm-project/releases/download/llvmorg-22.1.8/llvm-project-22.1.8.src.tar.xz
最后更新2026-06-21T01:50:33Z
Pulseupdated
依赖llvm
构建依赖cmake, ninja
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

flang 1:19.0-63

Fortran compiler

sudo apt install flang
  • Section: devel
  • Architecture: amd64
  • Source Package: llvm-defaults
  • 1 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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