Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
Abhishek Thakur edited this page Sep 10, 2024 · 108 revisions

Raspberry Pi Toolchains Logo

Raspberry Pi GCC Toolchains Docs πŸ“‘

This project provides the latest, automated, CI maintained, precompiled Raspberry Pi CPU optimized GCC Cross & Native (ARM & ARM64) Compressed Standalone Toolchains & Build-Scripts, that is fastest to setup and saves you tons of time and thereby helps you to get quickly started with software development with Pi.

Note

Our Cross-Compiler toolchains also works out-of-the-box on any Linux distro via WSL2 on Windows 10 Machines. πŸ’―

Table of content

πŸ“₯ Toolchain Downloads

Our pre-compiled TAR-PIGZ compressed and OS-targeted GCC Toolchain binaries can easily be downloaded from the project's SourceForge Repository or by clicking the links provided in the following table:

Download Raspberry Pi GCC Toolchains

Note

  • Host OS: on which the toolchain is executed/used.
  • Target OS: for which the toolchain generates code.

Warning

The Stretch (Debian Version 9) 32-bit/64-bit toolchains are no longer supported!

Toolchains Host OS Target OS Current Status Precompiled GCC versions available
Raspberry Pi GCC Cross-Compiler Toolchains (Buster) any x64/x86 Linux machine Buster 32-bit OS (Debian Version 10) only Stable/Production 8.3.0, 10.2.0, 12.2.0, 13.3.0, 14.2.0
Raspberry Pi GCC Cross-Compiler Toolchains (Bullseye) any x64/x86 Linux machine Bullseye 32-bit OS (Debian Version 11) only Stable/Production 10.2.0, 12.2.0, 13.3.0, 14.2.0
Raspberry Pi GCC Cross-Compiler Toolchains (Bookworm) any x64/x86 Linux machine Bookworm 32-bit OS (Debian Version 12) only Stable/Production 12.2.0, 13.3.0, 14.2.0
Raspberry Pi GCC Native-Compiler Toolchains (Buster) Buster 32-bit OS (Debian Version 10) only Buster 32-bit OS (Debian Version 10) only Stable/Production 13.3.0, 14.2.0
Raspberry Pi GCC Native-Compiler Toolchains (Bullseye) Bullseye 32-bit OS (Debian Version 11) only Bullseye 32-bit OS (Debian Version 11) only Stable/Production 13.3.0, 14.2.0
Raspberry Pi GCC Native-Compiler Toolchains (Bookworm) Bookworm 32-bit OS (Debian Version 12) only Bookworm 32-bit OS (Debian Version 12) only Stable/Production 13.3.0, 14.2.0
Raspberry Pi GCC 64-Bit Cross-Compiler Toolchains (Buster) any x64/x86 Linux machine Buster 64-bit OS (Debian Version 10) only Stable/Production 8.3.0, 10.2.0, 12.2.0, 13.3.0, 14.2.0
Raspberry Pi GCC 64-Bit Cross-Compiler Toolchains (Bullseye) any x64/x86 Linux machine Bullseye 64-bit OS (Debian Version 11) only Stable/Production 10.2.0, 12.2.0, 13.3.0, 14.2.0
Raspberry Pi GCC 64-Bit Cross-Compiler Toolchains (Bookworm) any x64/x86 Linux machine Bookworm 64-bit OS (Debian Version 12) only Stable/Production 12.2.0, 13.3.0, 14.2.0
Raspberry Pi GCC 64-Bit Native-Compiler Toolchains (Buster) Buster 64-bit OS (Debian Version 10) only Buster 64-bit OS (Debian Version 10) only Stable/Production 13.3.0, 14.2.0
Raspberry Pi GCC 64-Bit Native-Compiler Toolchains (Bullseye) Bullseye 64-bit OS (Debian Version 11) only Bullseye 64-bit OS (Debian Version 11) only Stable/Production 13.3.0, 14.2.0
Raspberry Pi GCC 64-Bit Native-Compiler Toolchains (Bookworm) Bookworm 64-bit OS (Debian Version 12) only Bookworm 64-bit OS (Debian Version 12) only Stable/Production 13.3.0, 14.2.0
Exclusive/Experimental Toolchains x86/x86_64 Pi Desktop x86/x86_64 Pi Desktop Beta/Experimental 14.2.0 (x86), 14.2.0 (x86_64)

Tip

To get the location of each Binary of this project on SourceForge, you can also check out this Reference Tree.

πŸ“ Toolchains Setup Instructions

Caution

To avoid Undesired errors & compatibility Issues, strictly follow the steps given below:

A. Raspberry Pi GCC Native-Compiler ARM Toolchains:

These ARM toolchains can be used directly on any Raspberry Pi 32-bit OSes for compiling programs for it.

  • Buster: Used and generate code for Raspberry Pi Buster 32-bit OS (a.k.a Debian Version 10) and any equivalent OS only.
  • Bullseye: Used and generate code for Raspberry Pi Bullseye 32-bit OS (a.k.a Debian Version 11) and any equivalent OS only.
  • Bookworm: Used and generate code for Raspberry Pi Bookworm 32-bit OS (a.k.a Debian Version 12) and any equivalent OS only.

B. Raspberry Pi GCC Cross-Compiler ARM Toolchains:

These ARM toolchains can be used on any x86/x86_64 Linux Distributions for cross-compiling programs for Raspberry Pi 32-bit OSes.

  • Buster: Generates programs for Raspberry Pi Buster 32-bit OS (a.k.a Debian Version 10) and any equivalent OS only.
  • Bullseye: Generates programs for Raspberry Pi Bullseye 32-bit OS (a.k.a Debian Version 11) and any equivalent OS only.
  • Bookworm: Generates programs for Raspberry Pi Bookworm 32-bit OS (a.k.a Debian Version 12) and any equivalent OS only.

C. Bonus Raspberry Pi GCC 64-Bit ARM64 Toolchains:

This project now provides exclusive 64-bit ARM64 (aka AArch64) Raspberry Pi GCC Toolchains. These ARM64 toolchains can be used to compile programs for any Raspberry Pi 64-Bit OS flavors with 64-bit kernel (such as Raspberry Pi OS (64-bit)).

Tip

Supported Pi Models: These toolchains can be used with any Raspberry Pi Models/Versions with ARMV8-A CPU Architecture that supports 64-Bit execution state. You can find complete all supported Pi's list here .

C1. Raspberry Pi GCC 64-Bit Native-Compiler Toolchains:

These ARM64/AARCH64 native toolchains can be used directly on any Raspberry Pi 64-Bit OS flavors with 64-bit kernel only (such as Raspberry Pi OS (64-bit)) for compiling programs for it.

  • Buster: Used and generate code for Raspberry Pi Buster 64-bit OS (a.k.a Debian Version 10) and any equivalent OS only.
  • Bullseye: Used and generate code for Raspberry Pi Bullseye 64-bit OS (a.k.a Debian Version 11) and any equivalent OS only.
  • Bookworm: Used and generate code for Raspberry Pi Bookworm 64-bit OS (a.k.a Debian Version 12) and any equivalent OS only.

C2. Raspberry Pi GCC 64-Bit Cross-Compiler Toolchains:

These ARM64/AARCH64 cross-compiler toolchains can be used on any Linux Distributions (32-bit/64-bit) for cross-compiling programs for any Raspberry Pi 64-Bit OS flavors with 64-bit kernel only (such as Raspberry Pi OS (64-bit)).

  • Buster: Generates programs for Raspberry Pi Buster 64-bit OS (a.k.a Debian Version 10) and any equivalent OS only.
  • Bullseye: Generates programs for Raspberry Pi Bullseye 64-bit OS (a.k.a Debian Version 11) and any equivalent OS only.
  • Bookworm: Generates programs for Raspberry Pi Bookworm 64-bit OS (a.k.a Debian Version 12) and any equivalent OS only.

D. Exclusive Toolchains:

These are Beta/Experimental Toolchains which are built exclusively for testing new experimental fixes/features/enhancements for this project.

  • D1. Raspberry Pi GCC Desktop Toolchains:
    • These toolchains can be used directly on x86 & x86_64 Raspberry Pi Desktop OS for compiling programs for it.
    • These toolchains support Bookworm Desktop OSes only.
Clone this wiki locally

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /