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 toolchains4 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

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 ). **Other toolchains are being rebuilt now after disk failure!**
For non-i686 toolchains, click here. Something else? Contact me.

Index of /

Index of /


../
SHA512SUMS                                         04-Mar-2021 22:12               17033
aarch64-linux-musl-cross.tgz                       04-Mar-2021 00:03           109153159
aarch64-linux-musl-native.tgz                      04-Mar-2021 00:04            82210932
aarch64_be-linux-musl-cross.tgz                    04-Mar-2021 00:05           111017375
aarch64_be-linux-musl-native.tgz                   04-Mar-2021 00:06            82792857
arm-linux-musleabi-cross.tgz                       04-Mar-2021 00:08           102364169
arm-linux-musleabi-native.tgz                      04-Mar-2021 00:09            77333091
arm-linux-musleabihf-cross.tgz                     04-Mar-2021 00:10           102145309
arm-linux-musleabihf-native.tgz                    04-Mar-2021 00:11            77119274
armeb-linux-musleabi-cross.tgz                     04-Mar-2021 00:12           103796279
armeb-linux-musleabi-native.tgz                    04-Mar-2021 00:13            77615524
armeb-linux-musleabihf-cross.tgz                   04-Mar-2021 00:14           103560833
armeb-linux-musleabihf-native.tgz                  04-Mar-2021 00:15            77309936
armel-linux-musleabi-cross.tgz                     04-Mar-2021 00:16           102374872
armel-linux-musleabi-native.tgz                    04-Mar-2021 00:17            77338644
armel-linux-musleabihf-cross.tgz                   04-Mar-2021 00:18           102148645
armel-linux-musleabihf-native.tgz                  04-Mar-2021 00:19            77129450
armv5l-linux-musleabi-cross.tgz                    04-Mar-2021 00:20           102368001
armv5l-linux-musleabi-native.tgz                   04-Mar-2021 00:21            77332741
armv5l-linux-musleabihf-cross.tgz                  04-Mar-2021 00:23           102142150
armv5l-linux-musleabihf-native.tgz                 04-Mar-2021 00:24            77129056
armv6-linux-musleabi-cross.tgz                     04-Mar-2021 00:25           102378073
armv6-linux-musleabi-native.tgz                    04-Mar-2021 00:26            77343264
armv6-linux-musleabihf-cross.tgz                   04-Mar-2021 00:27           102140693
armv6-linux-musleabihf-native.tgz                  04-Mar-2021 00:28            77126857
armv7l-linux-musleabihf-cross.tgz                  04-Mar-2021 00:29           102147498
armv7l-linux-musleabihf-native.tgz                 04-Mar-2021 00:30            77129491
armv7m-linux-musleabi-cross.tgz                    04-Mar-2021 00:31           102378581
armv7m-linux-musleabi-native.tgz                   04-Mar-2021 00:32            77344017
armv7r-linux-musleabihf-cross.tgz                  04-Mar-2021 00:33           102141373
armv7r-linux-musleabihf-native.tgz                 04-Mar-2021 00:34            77128475
i486-linux-musl-cross.tgz                          04-Mar-2021 00:35           108976890
i486-linux-musl-native.tgz                         04-Mar-2021 00:36            88256528
i686-linux-musl-cross.tgz                          04-Mar-2021 00:38           109438806
i686-linux-musl-native.tgz                         04-Mar-2021 00:39            88091366
i686-w64-mingw32-cross.tgz                         04-Mar-2021 00:40           116392340
i686-w64-mingw32-native.zip                        04-Mar-2021 00:42           110041393
m68k-linux-musl-cross.tgz                          04-Mar-2021 00:43            88578166
m68k-linux-musl-native.tgz                         04-Mar-2021 00:43            64370737
microblaze-linux-musl-cross.tgz                    04-Mar-2021 00:44            77057875
microblaze-linux-musl-native.tgz                   04-Mar-2021 00:45            64154839
microblazeel-linux-musl-cross.tgz                  04-Mar-2021 00:46            76265843
microblazeel-linux-musl-native.tgz                 04-Mar-2021 00:47            64026888
mips-linux-musl-cross.tgz                          04-Mar-2021 00:48           102655111
mips-linux-musl-native.tgz                         04-Mar-2021 00:49            87101987
mips-linux-musln32sf-cross.tgz                     04-Mar-2021 00:50           103023852
mips-linux-musln32sf-native.tgz                    04-Mar-2021 00:51            87615331
mips-linux-muslsf-cross.tgz                        04-Mar-2021 00:53           103018942
mips-linux-muslsf-native.tgz                       04-Mar-2021 00:54            87617108
mips64-linux-musl-cross.tgz                        04-Mar-2021 00:55           107322523
mips64-linux-musl-native.tgz                       04-Mar-2021 00:56            86460552
mips64-linux-musln32-cross.tgz                     04-Mar-2021 00:57           104290281
mips64-linux-musln32-native.tgz                    04-Mar-2021 00:58            82983078
mips64-linux-musln32sf-cross.tgz                   04-Mar-2021 00:59           104523053
mips64-linux-musln32sf-native.tgz                  04-Mar-2021 01:00            83120479
mips64el-linux-musl-cross.tgz                      04-Mar-2021 01:02           105428636
mips64el-linux-musl-native.tgz                     04-Mar-2021 01:03            85950887
mips64el-linux-musln32-cross.tgz                   04-Mar-2021 01:04           103045566
mips64el-linux-musln32-native.tgz                  04-Mar-2021 01:05            82608254
mips64el-linux-musln32sf-cross.tgz                 04-Mar-2021 01:06           103265417
mips64el-linux-musln32sf-native.tgz                04-Mar-2021 01:07            82734972
mipsel-linux-musl-cross.tgz                        04-Mar-2021 01:08           101219208
mipsel-linux-musl-native.tgz                       04-Mar-2021 01:09            86334420
mipsel-linux-musln32-cross.tgz                     04-Mar-2021 01:11           101215891
mipsel-linux-musln32-native.tgz                    04-Mar-2021 01:12            86339597
mipsel-linux-musln32sf-cross.tgz                   04-Mar-2021 01:13           101579310
mipsel-linux-musln32sf-native.tgz                  04-Mar-2021 01:14            86833586
mipsel-linux-muslsf-cross.tgz                      04-Mar-2021 01:15           101574747
mipsel-linux-muslsf-native.tgz                     04-Mar-2021 01:16            86838862
or1k-linux-musl-cross.tgz                          04-Mar-2021 01:17            89229553
or1k-linux-musl-native.tgz                         04-Mar-2021 01:18            77045250
powerpc-linux-musl-cross.tgz                       04-Mar-2021 01:19           104405713
powerpc-linux-musl-native.tgz                      04-Mar-2021 01:20            88300455
powerpc-linux-muslsf-cross.tgz                     04-Mar-2021 01:22           104746085
powerpc-linux-muslsf-native.tgz                    04-Mar-2021 01:23            88687068
powerpc64-linux-musl-cross.tgz                     04-Mar-2021 01:24           110156908
powerpc64-linux-musl-native.tgz                    04-Mar-2021 01:25            90269308
powerpc64le-linux-musl-cross.tgz                   04-Mar-2021 01:26           108065332
powerpc64le-linux-musl-native.tgz                  04-Mar-2021 01:28            90188083
powerpcle-linux-musl-cross.tgz                     04-Mar-2021 01:29           103081437
powerpcle-linux-musl-native.tgz                    04-Mar-2021 01:30            88855481
powerpcle-linux-muslsf-cross.tgz                   04-Mar-2021 01:31           103419392
powerpcle-linux-muslsf-native.tgz                  04-Mar-2021 01:32            89219173
riscv32-linux-musl-cross.tgz                       04-Mar-2021 01:33           102650552
riscv32-linux-musl-native.tgz                      04-Mar-2021 01:34            72643810
riscv64-linux-musl-cross.tgz                       04-Mar-2021 01:35           105868054
riscv64-linux-musl-native.tgz                      04-Mar-2021 01:36            71572378
s390x-linux-musl-cross.tgz                         04-Mar-2021 01:38           102852890
s390x-linux-musl-native.tgz                        04-Mar-2021 01:39            76315942
sh2-linux-musl-cross.tgz                           04-Mar-2021 01:40            90063046
sh2-linux-musl-native.tgz                          04-Mar-2021 01:40            74673708
sh2-linux-muslfdpic-cross.tgz                      04-Mar-2021 01:42            90352589
sh2-linux-muslfdpic-native.tgz                     04-Mar-2021 01:42            82011348
sh2eb-linux-musl-cross.tgz                         04-Mar-2021 01:44            91089372
sh2eb-linux-musl-native.tgz                        04-Mar-2021 01:44            75370288
sh2eb-linux-muslfdpic-cross.tgz                    04-Mar-2021 01:46            91382185
sh2eb-linux-muslfdpic-native.tgz                   04-Mar-2021 01:47            83340282
sh4-linux-musl-cross.tgz                           04-Mar-2021 01:48            90038496
sh4-linux-musl-native.tgz                          04-Mar-2021 01:48            74722956
sh4eb-linux-musl-cross.tgz                         04-Mar-2021 01:50            91073818
sh4eb-linux-musl-native.tgz                        04-Mar-2021 01:50            75359205
x86_64-linux-musl-cross.tgz                        04-Mar-2021 01:52           115344033
x86_64-linux-musl-native.tgz                       04-Mar-2021 01:53            85699021
x86_64-linux-muslx32-cross.tgz                     04-Mar-2021 01:54           113142906
x86_64-linux-muslx32-native.tgz                    04-Mar-2021 01:55            85805169
x86_64-w64-mingw32-cross.tgz                       04-Mar-2021 01:57           128147383
x86_64-w64-mingw32-native.zip                      04-Mar-2021 01:58           122677676

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]: Clang/LLVM is on the TODO list. Contributions welcome. Look at ELLCC in the interim.