pkg.soopen package index

brew / rank 2344

Install riscv64-elf-gcc with Homebrew, pacman, zypper

GNU compiler collection for riscv64-elf. Version 16.2.0 via Homebrew; verified 2026-09-12. Also installable with pacman: sudo pacman -S riscv64-elf-gcc.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install riscv64-elf-gcc

local Homebrew formula metadata

Linux

Arch Linux pacmanverified · 92%
sudo pacman -S riscv64-elf-gcc

Arch Linux sync databases · riscv64-elf-gcc · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install cross-riscv64-elf-gcc13

openSUSE Tumbleweed package metadata · cross-riscv64-elf-gcc13 · source: download.opensuse.org

overview

Package summary

GNU compiler collection for riscv64-elf

Commands and aliases

  • riscv64-elf-c++
  • riscv64-elf-cpp
  • riscv64-elf-g++
  • riscv64-elf-gcc
  • riscv64-elf-gcc-16.2.0
  • riscv64-elf-gcc-ar
  • riscv64-elf-gcc-nm
  • riscv64-elf-gcc-ranlib
  • riscv64-elf-gcov
  • riscv64-elf-gcov-dump
  • riscv64-elf-gcov-tool
  • riscv64-elf-lto-dump

history

Project history and usage

RISC-V 64-bit ELF GCC is a bare-metal cross build of the GNU Compiler Collection whose prefixed drivers produce RISC-V ELF code.

Project history

Richard Stallman began GCC as the GNU C Compiler in 1987. It evolved into the GNU Compiler Collection, adding language front ends, optimization infrastructure, runtime libraries, and back ends for many processor families.

Upstream GCC gained a RISC-V target backend as the open instruction set matured. `riscv64-elf-gcc` is a bare-metal, target-configured build of upstream GCC rather than a separate compiler project; its `riscv64-elf-` prefix distinguishes its tools and target ABI from the host toolchain.

Adoption history

GCC became a central compiler suite in GNU and Unix-like systems and a standard base for cross-compilers. This target-prefixed package makes the upstream RISC-V backend convenient for Homebrew and other package-manager users; source_facts.package-manager lists Homebrew, Arch, and openSUSE-family packaging.

How it is used

Invoke `riscv64-elf-gcc` or `riscv64-elf-g++` with target options such as `-march` and `-mabi`, then link with an appropriate startup environment and linker script.

The compiler normally drives matching RISC-V Binutils automatically. Bare-metal applications may need separately supplied headers, runtime libraries, startup objects, and board-specific link definitions.

Why package nerds care

A target-prefixed GCC package embodies the classic cross-toolchain layout: compiler driver, preprocessor, C++ driver, coverage utilities, LTO tools, and matching prefixed Binutils can coexist with the host compiler. It is a key building block for firmware, kernels, bootloaders, and ISA experimentation.

Timeline

  • 1987: The GNU C Compiler was first released.
  • 1990s: GCC expanded beyond C and became the GNU Compiler Collection.
  • 2010s: RISC-V support entered the upstream GNU compiler toolchain.
  • 2020s: Packaged `riscv64-elf` toolchains became common for embedded RISC-V and systems development.

Related projects

  • GNU Binutils supplies the assembler, linker, and binary utilities normally used by this compiler. `riscv64-elf-binutils` is its matching package; C libraries such as Newlib may be added when a hosted or richer bare-metal runtime is required.

security posture

No protected-tool coverage found yet

No matching local secret-handling manifest was found for riscv64-elf-gcc. 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 5 runtime 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
riscv64-elf-c++cliglobal executable
riscv64-elf-cppcliglobal executable
riscv64-elf-g++cliglobal executable
riscv64-elf-gcccliglobal executable
riscv64-elf-gcc-16.2.0cliglobal executable
riscv64-elf-gcc-arcliglobal executable
riscv64-elf-gcc-nmcliglobal executable
riscv64-elf-gcc-ranlibcliglobal executable
riscv64-elf-gcovcliglobal executable
riscv64-elf-gcov-dumpcliglobal executable
riscv64-elf-gcov-toolcliglobal executable
riscv64-elf-lto-dumpcliglobal 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-09-19
manager version16.2.0
manager updated2026-09-12
local dataok
upstreamnot checked
latest detectednot detected

https://gcc.gnu.org

  • infoRelease/tag comparison is only available for GitHub repositories.https://gcc.gnu.orgnone confidence

install metadata

Package metadata

Package keybrew:riscv64-elf-gcc
Version16.2.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/riscv64-elf-gcc
Homepagehttps://gcc.gnu.org
Upstream docshttps://gcc.gnu.org
LicenseGPL-3.0-or-later WITH GCC-exception-3.1
Source archivehttps://ftpmirror.gnu.org/gnu/gcc/gcc-16.2.0/gcc-16.2.0.tar.xz
Last updated2026-09-12T12:20:16+02:00
Pulseupdated
Dependenciesgmp, libmpc, mpfr, riscv64-elf-binutils, zstd
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 Nameriscv64-elf-gcc
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • 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.

pacman95%

riscv64-elf-gcc 15.2.0-1

The GNU Compiler Collection - cross compiler for RISCV64 (bare-metal) target

https://gcc.gnu.org/

sudo pacman -S riscv64-elf-gcc
  • License: GPL-3.0-with-GCC-exception AND GFDL-1.3-or-later
  • Architecture: x86_64
  • 5 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Riscv64 Elf Gcc
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: riscv64-elf-gcc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

cross-riscv64-elf-gcc13 13.4.1+git10355-1.3

The GNU Compiler Collection targeting riscv64

https://gcc.gnu.org/

sudo zypper install cross-riscv64-elf-gcc13
  • License: GPL-3.0-or-later
  • Category: Development/Languages/C and C++
  • Architecture: x86_64
  • Source Package: cross-riscv64-elf-gcc13
  • 12 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Riscv64 Elf Gcc
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: cross-riscv64-elf-gcc13 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/d310d5a96106e1e8872a385adf98aaa23be9db5d80937a6717314e7e7f37715065c6c748ab7ccee6475d620b46979c0fe64235fc0c46988e17edf659578fcf31-primary.xml.zst
zypper95%

cross-riscv64-elf-gcc13-bootstrap 13.4.1+git10355-1.3

The GNU Compiler Collection targeting riscv64

https://gcc.gnu.org/

sudo zypper install cross-riscv64-elf-gcc13-bootstrap
  • License: GPL-3.0-or-later
  • Category: Development/Languages/C and C++
  • Architecture: x86_64
  • Source Package: cross-riscv64-elf-gcc13-bootstrap
  • 10 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Riscv64 Elf Gcc
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: cross-riscv64-elf-gcc13-bootstrap from https://download.opensuse.org/tumbleweed/repo/oss/repodata/d310d5a96106e1e8872a385adf98aaa23be9db5d80937a6717314e7e7f37715065c6c748ab7ccee6475d620b46979c0fe64235fc0c46988e17edf659578fcf31-primary.xml.zst
zypper95%

cross-riscv64-elf-gcc14 14.4.0+git12698-1.3

The GNU Compiler Collection targeting riscv64

https://gcc.gnu.org/

sudo zypper install cross-riscv64-elf-gcc14
  • License: GPL-3.0-or-later
  • Category: Development/Languages/C and C++
  • Architecture: x86_64
  • Source Package: cross-riscv64-elf-gcc14
  • 12 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Riscv64 Elf Gcc
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: cross-riscv64-elf-gcc14 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/d310d5a96106e1e8872a385adf98aaa23be9db5d80937a6717314e7e7f37715065c6c748ab7ccee6475d620b46979c0fe64235fc0c46988e17edf659578fcf31-primary.xml.zst
zypper95%

cross-riscv64-elf-gcc14-bootstrap 14.4.0+git12698-1.3

The GNU Compiler Collection targeting riscv64

https://gcc.gnu.org/

sudo zypper install cross-riscv64-elf-gcc14-bootstrap
  • License: GPL-3.0-or-later
  • Category: Development/Languages/C and C++
  • Architecture: x86_64
  • Source Package: cross-riscv64-elf-gcc14-bootstrap
  • 10 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Riscv64 Elf Gcc
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: cross-riscv64-elf-gcc14-bootstrap from https://download.opensuse.org/tumbleweed/repo/oss/repodata/d310d5a96106e1e8872a385adf98aaa23be9db5d80937a6717314e7e7f37715065c6c748ab7ccee6475d620b46979c0fe64235fc0c46988e17edf659578fcf31-primary.xml.zst
zypper95%

cross-riscv64-elf-gcc15 15.3.0+git11272-1.3

The GNU Compiler Collection targeting riscv64

https://gcc.gnu.org/

sudo zypper install cross-riscv64-elf-gcc15
  • License: GPL-3.0-or-later
  • Category: Development/Languages/C and C++
  • Architecture: x86_64
  • Source Package: cross-riscv64-elf-gcc15
  • 12 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Riscv64 Elf Gcc
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: cross-riscv64-elf-gcc15 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/d310d5a96106e1e8872a385adf98aaa23be9db5d80937a6717314e7e7f37715065c6c748ab7ccee6475d620b46979c0fe64235fc0c46988e17edf659578fcf31-primary.xml.zst
zypper95%

cross-riscv64-elf-gcc15-bootstrap 15.3.0+git11272-1.3

The GNU Compiler Collection targeting riscv64

https://gcc.gnu.org/

sudo zypper install cross-riscv64-elf-gcc15-bootstrap
  • License: GPL-3.0-or-later
  • Category: Development/Languages/C and C++
  • Architecture: x86_64
  • Source Package: cross-riscv64-elf-gcc15-bootstrap
  • 10 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Riscv64 Elf Gcc
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: cross-riscv64-elf-gcc15-bootstrap from https://download.opensuse.org/tumbleweed/repo/oss/repodata/d310d5a96106e1e8872a385adf98aaa23be9db5d80937a6717314e7e7f37715065c6c748ab7ccee6475d620b46979c0fe64235fc0c46988e17edf659578fcf31-primary.xml.zst
zypper95%

cross-riscv64-elf-gcc16 16.2.0+git9497-2.1

The GNU Compiler Collection targeting riscv64

https://gcc.gnu.org/

sudo zypper install cross-riscv64-elf-gcc16
  • License: GPL-3.0-or-later
  • Category: Development/Languages/C and C++
  • Architecture: x86_64
  • Source Package: cross-riscv64-elf-gcc16
  • 12 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Riscv64 Elf Gcc
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: cross-riscv64-elf-gcc16 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/d310d5a96106e1e8872a385adf98aaa23be9db5d80937a6717314e7e7f37715065c6c748ab7ccee6475d620b46979c0fe64235fc0c46988e17edf659578fcf31-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

  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation