# Install m68k-elf-gcc with Homebrew, MacPorts

GNU compiler collection m68k-elf. Version 16.1.0 via Homebrew; verified 2026-04-30.

## Install

```sh
sudo av install brew:m68k-elf-gcc
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install m68k-elf-gcc
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install m68k-elf-gcc
```

  Evidence: MacPorts ports tree: cross/m68k-elf-gcc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:m68k-elf-gcc
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/m68k-elf-gcc>
- **Version:** 16.1.0
- **Source summary:** GNU compiler collection m68k-elf
- **Homepage:** <https://gcc.gnu.org>
- **Repository:** <https://gcc.gnu.org/git/gcc.git>
- **Upstream docs:** <https://gcc.gnu.org/onlinedocs>
- **License:** GPL-3.0-or-later WITH GCC-exception-3.1
- **Source archive:** <https://ftpmirror.gnu.org/gnu/gcc/gcc-16.1.0/gcc-16.1.0.tar.xz>
- **Last updated:** 2026-04-30T16:24:24Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- m68k-elf-c++ (cli)
- m68k-elf-cpp (cli)
- m68k-elf-g++ (cli)
- m68k-elf-gcc (cli)
- m68k-elf-gcc-16.1.0 (cli)
- m68k-elf-gcc-ar (cli)
- m68k-elf-gcc-nm (cli)
- m68k-elf-gcc-ranlib (cli)
- m68k-elf-gcov (cli)
- m68k-elf-gcov-dump (cli)
- m68k-elf-gcov-tool (cli)
- m68k-elf-lto-dump (cli)
- m68k-elf-c++ (alias)
- m68k-elf-cpp (alias)
- m68k-elf-g++ (alias)
- m68k-elf-gcc (alias)
- m68k-elf-gcc-16.1.0 (alias)
- m68k-elf-gcc-ar (alias)
- m68k-elf-gcc-nm (alias)
- m68k-elf-gcc-ranlib (alias)
- m68k-elf-gcov (alias)
- m68k-elf-gcov-dump (alias)
- m68k-elf-gcov-tool (alias)
- m68k-elf-lto-dump (alias)

## Dependencies

- gmp
- isl
- libmpc
- m68k-elf-binutils
- mpfr
- zstd

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 16.1.0
- Package-manager updated: 2026-04-30
- Local data: ok
- Upstream repository: https://gcc.gnu.org
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

m68k-elf-gcc is a target-prefixed GCC cross compiler for building code for Motorola 68000-family ELF targets.

### Project history

GCC began as the GNU system's compiler and grew into the GNU Compiler Collection. The current project includes front ends for many languages and runtime libraries, and it is developed as free software under the GNU Project.

The `m68k-elf-gcc` package is a target build of upstream GCC rather than an independent compiler project. Its executables are prefixed with `m68k-elf-` so they can live beside the host compiler and other cross compilers.

GCC's official documentation includes M680x0 and ColdFire target options for generating and tuning code for processors such as 68000, 68010, 68020, 68030, 68040, 68060, CPU32, and ColdFire families.

### Adoption history

GCC is widely adopted because it targets many architectures and supports both native and cross compilation. The GCC mission statement explicitly calls out multiple architectures, diverse environments, new targets, and an open development model.

The supplied package facts show Homebrew and MacPorts packages for `m68k-elf-gcc`, placing it in the small but important family of retrocomputing, embedded, and bare-metal cross compilers available through desktop package managers.

### How it is used

The GCC manual describes the usual executable as `gcc`, `machine-gcc` when cross-compiling, or `machine-gcc-version` for a versioned driver. This package follows that convention with commands such as `m68k-elf-gcc`, `m68k-elf-g++`, `m68k-elf-cpp`, and related GCC helper tools.

Developers use it with `m68k-elf-binutils` to compile C and C++ code, assemble generated output, and link ELF binaries for bare-metal 68k targets. Target options such as `-march`, `-mcpu`, `-mtune`, `-m68000`, and `-m68020-60` control generated code for different 680x0 and ColdFire variants.

### Why package nerds care

Cross-GCC packages are more than a compiler binary: they encode a target triplet, ABI assumptions, binutils pairing, runtime-library choices, and build-system expectations.

For package maintainers, `m68k-elf-gcc` is notable because it makes a non-host architecture feel native to build systems while keeping all tools target-prefixed and isolated from the host GCC or Clang.

### Timeline

- 1987: GCC first emerged as the GNU C Compiler era began
- 2024: GCC mission statement page documents open development, multiple architectures, and new targets
- 2026: GCC 16.1 listed as a supported release on the official GCC site
- 2026: Homebrew package facts list GCC 16.1.0 target-prefixed m68k-elf executables

### Related projects

- m68k-elf-binutils supplies the matching assembler, linker, and object utilities.
- GNU Binutils, GNU Make, and Autoconf-era build systems are common neighbors in source builds using GCC cross compilers.
- Other GCC cross packages follow the same target-triplet executable convention.

### Sources

- <https://gcc.gnu.org/>
- <https://gcc.gnu.org/gccmission.html>
- <https://gcc.gnu.org/git.html>
- <https://gcc.gnu.org/onlinedocs/>
- <https://gcc.gnu.org/onlinedocs/gcc/Invoking-GCC.html>
- <https://gcc.gnu.org/onlinedocs/gcc/M680x0-Options.html>
- source_facts.executables
- source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** m68k-elf-gcc
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- MacPorts - m68k-elf-gcc: normalized package name match | MacPorts ports tree: cross/m68k-elf-gcc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [m68k-elf-binutils](https://www.automicvault.com/pkg/brew/m68k-elf-binutils/) - Runtime dependency declared by Homebrew.
- [zstd](https://www.automicvault.com/pkg/brew/zstd/) - Runtime dependency declared by Homebrew.
- [aarch64-elf-gcc](https://www.automicvault.com/pkg/brew/aarch64-elf-gcc/) - Shares the same upstream homepage.
- [arm-none-eabi-gcc](https://www.automicvault.com/pkg/brew/arm-none-eabi-gcc/) - Shares the same upstream homepage.
- [i686-elf-gcc](https://www.automicvault.com/pkg/brew/i686-elf-gcc/) - Shares the same upstream homepage.
- [riscv64-elf-gcc](https://www.automicvault.com/pkg/brew/riscv64-elf-gcc/) - Shares the same upstream homepage.
- [x86_64-elf-gcc](https://www.automicvault.com/pkg/brew/x86-64-elf-gcc/) - Shares the same upstream homepage.
- [arm-linux-gnueabihf-binutils](https://www.automicvault.com/pkg/brew/arm-linux-gnueabihf-binutils/) - Shares av.db curated category or tags: cli, compilers, cross-compilation, developer-tools, gnu.
- [arm-none-eabi-binutils](https://www.automicvault.com/pkg/brew/arm-none-eabi-binutils/) - Shares av.db curated category or tags: cli, compilers, cross-compilation, developer-tools, gnu.
- [mingw-w64](https://www.automicvault.com/pkg/brew/mingw-w64/) - Shares av.db curated category or tags: cli, compilers, cross-compilation, developer-tools, gcc.
- [adaptivecpp](https://www.automicvault.com/pkg/brew/adaptivecpp/) - Shares av.db curated category or tags: cli, compiler, compilers, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/m68k-elf-gcc.yml](https://github.com/automic-vault/db/blob/main/combined/m68k-elf-gcc.yml)


## Sources

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