Your source for static cross- and native- musl-based toolchains.

toolchains ( linux, windows, mac, solaris, docker, sources, more... )

xstatic ( distro, kernel, packages, sources )

meta ( config, changelog, matrix )

links ( musl, mingw, risc-v )



Small and reliable pre-built GCC toolchains for many architectures.

Cross (i686-hosted) by default. Native for completeness.

Static so they run on supported platforms without dependencies.

This site is curl-friendly for direct links to toolchains!

$ curl -s musl.cc | grep mips https://musl.cc/mips-linux-musl-cross.tgz ...

Toolchains are built1 using several modified versions (see below) of musl-cross-make.



For your convenience, Docker images2 are provided and updated regularly:

$ docker pull muslcc/i686:aarch64-linux-musl

rsync

Many thanks to others in the #musl and associated communities for making this site possible.

In particular, Rob Landley, Laurent Bercot (skarnet), and of course Rich Felker (dalias).

Ingredients:

config.mak

config.mak

Toolchains:



Toolchains support the following languages: C, C++, Fortran except where noteda.

They are cryptographically signed with the following key: 0xB1D0B4566FBBDB40

GCC major releases: ( 5, 6, 7, 8, 9, 10 ).

For non-i686 toolchains, click here. Something else? Contact me.

Index of /

Index of /

Bugs discovered:



This effort has led to the discovery of several compiler bugs:

GCC [87438]: Internal Compiler Error (ICE) building gfortran for MicroBlaze.

GCC [89012]: Bad code generation targeting SuperH (SH-2 FDPIC).

Known issues:

Fortran support is missing from microblaze{,el} cross- and native- toolchains due to an aforementioned bug. Native SH-2 FDPIC toolchains need to be built with -freorder-blocks-algorithm=simple due to an aforementioned bug. OpenRISC target: GCC 8 patched forward from gcc-8_2_0-release to 45d0f2 from here (thanks smaeul). GCC 9 includes it. [meta] Alpine Linux breaks packages between upgrades. Nginx + Lua (for curl support) was broken for a while, sorry.

Other notes:

Hashes and cryptographic signatures3 are provided -- use HTTPS for greater security. Versions may be bumped up or down without notice if bugs are discovered. You should pin and reproduce any version of these toolchains yourself -- old binaries might not be archived. Don't trust random third-party binaries :) Build logs are not provided as toolchains are easily reproduced. Looking for i686-hosted cross compilers to target Win32? You're in luck: i686/sig and x86_64/sig (built with this). Native i686- and x86_64- Win32 toolchains. Packaged as .zip for convenience: i686/sig and x86_64/sig (built with this). If you encounter issues or want to request additional architectures, let me know

References:



[1]: Toolchains are built using Adélie Linux via these scripts. You can also use this platform-agnostic script.

[2]: Docker images based on the Alpine Linux image for size. Packaged with MacroMμ. x86_64-hosted images no longer updated.

[3]: Validate binaries against my public key.

[4]: 64-bit RISC-V support is merged into musl. 32-bit support is temporarily unsupported.

[5]: Clang/LLVM is on the TODO list. Contributions welcome. Look at ELLCC in the interim.

