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

This is a community website and is not officially endorsed by musl or its authors.

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
Compiler prefixes are removed in those images and they're rsync'd to root.

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:

[ Standard: source/config.mak ]
[ MinGW: source/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 /


../
SHA512SUMS                                         20-Jan-2021 11:31               17033
aarch64-linux-musl-cross.tgz                       20-Jan-2021 11:30           108731156
aarch64-linux-musl-native.tgz                      20-Jan-2021 11:30            81800965
aarch64_be-linux-musl-cross.tgz                    20-Jan-2021 11:30           110593489
aarch64_be-linux-musl-native.tgz                   20-Jan-2021 11:30            82382124
arm-linux-musleabi-cross.tgz                       20-Jan-2021 11:30           101971016
arm-linux-musleabi-native.tgz                      20-Jan-2021 11:30            76978683
arm-linux-musleabihf-cross.tgz                     20-Jan-2021 11:30           101727714
arm-linux-musleabihf-native.tgz                    20-Jan-2021 11:30            76771847
armeb-linux-musleabi-cross.tgz                     20-Jan-2021 11:30           103398965
armeb-linux-musleabi-native.tgz                    20-Jan-2021 11:30            77269364
armeb-linux-musleabihf-cross.tgz                   20-Jan-2021 11:30           103151289
armeb-linux-musleabihf-native.tgz                  20-Jan-2021 11:30            76964640
armel-linux-musleabi-cross.tgz                     20-Jan-2021 11:30           101965235
armel-linux-musleabi-native.tgz                    20-Jan-2021 11:30            76981863
armel-linux-musleabihf-cross.tgz                   20-Jan-2021 11:30           101724598
armel-linux-musleabihf-native.tgz                  20-Jan-2021 11:30            76774240
armv5l-linux-musleabi-cross.tgz                    20-Jan-2021 11:30           101965066
armv5l-linux-musleabi-native.tgz                   20-Jan-2021 11:30            76978084
armv5l-linux-musleabihf-cross.tgz                  20-Jan-2021 11:30           101729904
armv5l-linux-musleabihf-native.tgz                 20-Jan-2021 11:30            76776980
armv6-linux-musleabi-cross.tgz                     20-Jan-2021 11:30           101969146
armv6-linux-musleabi-native.tgz                    20-Jan-2021 11:30            76986101
armv6-linux-musleabihf-cross.tgz                   20-Jan-2021 11:30           101673031
armv6-linux-musleabihf-native.tgz                  20-Jan-2021 11:30            76760094
armv7l-linux-musleabihf-cross.tgz                  20-Jan-2021 11:30           101681912
armv7l-linux-musleabihf-native.tgz                 20-Jan-2021 11:30            76761315
armv7m-linux-musleabi-cross.tgz                    20-Jan-2021 11:30           101917944
armv7m-linux-musleabi-native.tgz                   20-Jan-2021 11:30            76965240
armv7r-linux-musleabihf-cross.tgz                  20-Jan-2021 11:30           101684848
armv7r-linux-musleabihf-native.tgz                 20-Jan-2021 11:30            76758962
i486-linux-musl-cross.tgz                          20-Jan-2021 11:30           108595979
i486-linux-musl-native.tgz                         20-Jan-2021 11:30            87847029
i686-linux-musl-cross.tgz                          20-Jan-2021 11:30           109032809
i686-linux-musl-native.tgz                         20-Jan-2021 11:30            87718016
i686-w64-mingw32-cross.tgz                         20-Jan-2021 11:30           102549471
i686-w64-mingw32-native.zip                        20-Jan-2021 11:30            95644284
m68k-linux-musl-cross.tgz                          20-Jan-2021 11:30            88189030
m68k-linux-musl-native.tgz                         20-Jan-2021 11:30            64043383
microblaze-linux-musl-cross.tgz                    20-Jan-2021 11:30            76688845
microblaze-linux-musl-native.tgz                   20-Jan-2021 11:30            63791830
microblazeel-linux-musl-cross.tgz                  20-Jan-2021 11:30            75905031
microblazeel-linux-musl-native.tgz                 20-Jan-2021 11:30            63654969
mips-linux-musl-cross.tgz                          20-Jan-2021 11:30           102236126
mips-linux-musl-native.tgz                         20-Jan-2021 11:30            86668956
mips-linux-musln32sf-cross.tgz                     20-Jan-2021 11:30           102606748
mips-linux-musln32sf-native.tgz                    20-Jan-2021 11:30            87191203
mips-linux-muslsf-cross.tgz                        20-Jan-2021 11:30           102602051
mips-linux-muslsf-native.tgz                       20-Jan-2021 11:30            87186478
mips64-linux-musl-cross.tgz                        20-Jan-2021 11:30           106900708
mips64-linux-musl-native.tgz                       20-Jan-2021 11:30            86018503
mips64-linux-musln32-cross.tgz                     20-Jan-2021 11:30           103869396
mips64-linux-musln32-native.tgz                    20-Jan-2021 11:30            82548163
mips64-linux-musln32sf-cross.tgz                   20-Jan-2021 11:30           104001143
mips64-linux-musln32sf-native.tgz                  20-Jan-2021 11:30            82706548
mips64el-linux-musl-cross.tgz                      20-Jan-2021 11:30           105001306
mips64el-linux-musl-native.tgz                     20-Jan-2021 11:30            85523409
mips64el-linux-musln32-cross.tgz                   20-Jan-2021 11:30           102628993
mips64el-linux-musln32-native.tgz                  20-Jan-2021 11:30            82186403
mips64el-linux-musln32sf-cross.tgz                 20-Jan-2021 11:30           102767399
mips64el-linux-musln32sf-native.tgz                20-Jan-2021 11:30            82309667
mipsel-linux-musl-cross.tgz                        20-Jan-2021 11:30           100788357
mipsel-linux-musl-native.tgz                       20-Jan-2021 11:30            85910556
mipsel-linux-musln32-cross.tgz                     20-Jan-2021 11:30           100802391
mipsel-linux-musln32-native.tgz                    20-Jan-2021 11:30            85910366
mipsel-linux-musln32sf-cross.tgz                   20-Jan-2021 11:30           101066875
mipsel-linux-musln32sf-native.tgz                  20-Jan-2021 11:30            86398992
mipsel-linux-muslsf-cross.tgz                      20-Jan-2021 11:30           101068613
mipsel-linux-muslsf-native.tgz                     20-Jan-2021 11:30            86402369
or1k-linux-musl-cross.tgz                          20-Jan-2021 11:30            88743241
or1k-linux-musl-native.tgz                         20-Jan-2021 11:30            76636158
powerpc-linux-musl-cross.tgz                       20-Jan-2021 11:30           103993728
powerpc-linux-musl-native.tgz                      20-Jan-2021 11:30            87883268
powerpc-linux-muslsf-cross.tgz                     20-Jan-2021 11:30           104331050
powerpc-linux-muslsf-native.tgz                    20-Jan-2021 11:30            88272459
powerpc64-linux-musl-cross.tgz                     20-Jan-2021 11:30           109718005
powerpc64-linux-musl-native.tgz                    20-Jan-2021 11:30            89794132
powerpc64le-linux-musl-cross.tgz                   20-Jan-2021 11:30           107629944
powerpc64le-linux-musl-native.tgz                  20-Jan-2021 11:30            89705385
powerpcle-linux-musl-cross.tgz                     20-Jan-2021 11:30           102661323
powerpcle-linux-musl-native.tgz                    20-Jan-2021 11:30            88417766
powerpcle-linux-muslsf-cross.tgz                   20-Jan-2021 11:30           103011623
powerpcle-linux-muslsf-native.tgz                  20-Jan-2021 11:30            88779690
riscv32-linux-musl-cross.tgz                       20-Jan-2021 11:30           102135345
riscv32-linux-musl-native.tgz                      20-Jan-2021 11:30            72165942
riscv64-linux-musl-cross.tgz                       20-Jan-2021 11:30           105333974
riscv64-linux-musl-native.tgz                      20-Jan-2021 11:30            71085189
s390x-linux-musl-cross.tgz                         20-Jan-2021 11:30           102437270
s390x-linux-musl-native.tgz                        20-Jan-2021 11:30            75917491
sh2-linux-musl-cross.tgz                           20-Jan-2021 11:30            89683263
sh2-linux-musl-native.tgz                          20-Jan-2021 11:30            74287484
sh2-linux-muslfdpic-cross.tgz                      20-Jan-2021 11:30            89980679
sh2-linux-muslfdpic-native.tgz                     20-Jan-2021 11:30            81625925
sh2eb-linux-musl-cross.tgz                         20-Jan-2021 11:30            90707944
sh2eb-linux-musl-native.tgz                        20-Jan-2021 11:30            74979126
sh2eb-linux-muslfdpic-cross.tgz                    20-Jan-2021 11:30            91002752
sh2eb-linux-muslfdpic-native.tgz                   20-Jan-2021 11:30            82940705
sh4-linux-musl-cross.tgz                           20-Jan-2021 11:30            89570420
sh4-linux-musl-native.tgz                          20-Jan-2021 11:30            74332432
sh4eb-linux-musl-cross.tgz                         20-Jan-2021 11:30            90686507
sh4eb-linux-musl-native.tgz                        20-Jan-2021 11:30            74964182
x86_64-linux-musl-cross.tgz                        20-Jan-2021 11:30           114760160
x86_64-linux-musl-native.tgz                       20-Jan-2021 11:30            85189872
x86_64-linux-muslx32-cross.tgz                     20-Jan-2021 11:30           112561463
x86_64-linux-muslx32-native.tgz                    20-Jan-2021 11:30            85294077
x86_64-w64-mingw32-cross.tgz                       20-Jan-2021 11:30           115439379
x86_64-w64-mingw32-native.zip                      20-Jan-2021 11:30           110796189

Bugs discovered:

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

Bugs in software found by using these toolchains not shown.

Known issues:

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

Other notes:

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

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.