Skip to content
Abhishek Thakur edited this page Sep 7, 2024 · 107 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