Skip to content
Abhishek Thakur edited this page Feb 15, 2022 · 96 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

Following is the table for various CI generated OS targeted precompiled Toolchain Binaries available with this project:

References:

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

Download Raspberry Pi GCC Toolchains

Toolchains Host OS Target OS Current Status Precompiled GCC versions available
Raspberry Pi GCC Cross-Compiler Toolchains (Stretch) any x64/x86 Linux machine Stretch 32-bit OS (Debian Version 9) only Stable/Production 6.3.0, 9.4.0, 10.3.0
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, 9.4.0, 10.3.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, 10.3.0
Raspberry Pi GCC Native-Compiler Toolchains (Stretch) Stretch 32-bit OS (Debian Version 9) only Stretch 32-bit OS (Debian Version 9) only Stable/Production 9.4.0, 10.3.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 9.4.0, 10.3.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 10.3.0
Raspberry Pi GCC 64-Bit Cross-Compiler Toolchains (Stretch) any x64/x86 Linux machine Stretch 64-bit OS (Debian Version 9) only Stable/Production 6.3.0, 9.4.0, 10.3.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, 9.4.0, 10.3.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, 10.3.0
Raspberry Pi GCC 64-Bit Native-Compiler Toolchains (Stretch) Stretch 64-bit OS (Debian Version 9) only Stretch 64-bit OS (Debian Version 9) only Stable/Production 9.4.0, 10.3.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 9.4.0, 10.3.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 10.3.0
Exclusive/Experimental Toolchains x86/x86_64 Pi Desktop x86/x86_64 Pi Desktop Beta/Experimental 10.3.0 (x86), 10.3.0 (x86_64)

   

📝 Toolchains Setup Instructions

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.

  • Stretch: Used and generate code for Raspbian Stretch 32-bit OS (a.k.a Debian Version 9) and any equivalent OS only.
  • Buster: Used and generate code for Raspbian Buster 32-bit OS (a.k.a Debian Version 10) and any equivalent OS only.
  • Bullseye: Used and generate code for Raspbian Bullseye 32-bit OS (a.k.a Debian Version 11) and any equivalent OS only.
  • ➡️ Toolchain Setup Guide >>

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.

  • Stretch: Generates programs for Raspbian Stretch 32-bit OS (a.k.a Debian Version 9) and any equivalent OS only.
  • Buster: Generates programs for Raspbian Buster 32-bit OS (a.k.a Debian Version 10) and any equivalent OS only.
  • Bullseye: Generates programs for Raspbian Bullseye 32-bit OS (a.k.a Debian Version 11) and any equivalent OS only.
  • ➡️ Toolchain Setup Guide >>

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 Raspbian Buster 64-bit OS and Pi64 by @bamarni) .

💡 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 Raspbian Buster 64-bit OS) for compiling programs for it.

  • Stretch: Used and generate code for Raspbian Stretch 64-bit OS (a.k.a Debian Version 9) and any equivalent OS only.
  • Buster: Used and generate code for Raspbian Buster 64-bit OS (a.k.a Debian Version 10) and any equivalent OS only.
  • Bullseye: Used and generate code for Raspbian Bullseye 64-bit OS (a.k.a Debian Version 11) and any equivalent OS only.
  • ➡️ Toolchain Setup Guide >>

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 Raspbian Buster 64-bit OS).

  • Stretch: Generates programs for Raspbian Stretch 64-bit OS (a.k.a Debian Version 9) and any equivalent OS only.
  • Buster: Generates programs for Raspbian Buster 64-bit OS (a.k.a Debian Version 10) and any equivalent OS only.
  • Bullseye: Generates programs for Raspbian Bullseye 64-bit OS (a.k.a Debian Version 11) and any equivalent OS only.
  • ➡️ Toolchain Setup Guide >>

D. Exclusive Toolchains:

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

 

Clone this wiki locally