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                                         07-Sep-2020 03:26               36424
aarch64-linux-musl-cross.tgz                       07-Sep-2020 03:22            90091606
aarch64-linux-musl-cross.tgz.sig                   07-Sep-2020 03:22                 566
aarch64-linux-musl-native.tgz                      07-Sep-2020 03:22            63236465
aarch64-linux-musl-native.tgz.sig                  07-Sep-2020 03:22                 566
aarch64_be-linux-musl-cross.tgz                    07-Sep-2020 03:22            92168435
aarch64_be-linux-musl-cross.tgz.sig                07-Sep-2020 03:22                 566
aarch64_be-linux-musl-native.tgz                   07-Sep-2020 03:22            63623423
aarch64_be-linux-musl-native.tgz.sig               07-Sep-2020 03:22                 566
arm-linux-musleabi-cross.tgz                       07-Sep-2020 03:22            87867435
arm-linux-musleabi-cross.tgz.sig                   07-Sep-2020 03:22                 566
arm-linux-musleabi-native.tgz                      07-Sep-2020 03:22            63186121
arm-linux-musleabi-native.tgz.sig                  07-Sep-2020 03:22                 566
arm-linux-musleabihf-cross.tgz                     07-Sep-2020 03:22            87663378
arm-linux-musleabihf-cross.tgz.sig                 07-Sep-2020 03:22                 566
arm-linux-musleabihf-native.tgz                    07-Sep-2020 03:22            62995995
arm-linux-musleabihf-native.tgz.sig                07-Sep-2020 03:22                 566
armeb-linux-musleabi-cross.tgz                     07-Sep-2020 03:22            89464561
armeb-linux-musleabi-cross.tgz.sig                 07-Sep-2020 03:22                 566
armeb-linux-musleabi-native.tgz                    07-Sep-2020 03:22            63343156
armeb-linux-musleabi-native.tgz.sig                07-Sep-2020 03:22                 566
armeb-linux-musleabihf-cross.tgz                   07-Sep-2020 03:22            89316875
armeb-linux-musleabihf-cross.tgz.sig               07-Sep-2020 03:22                 566
armeb-linux-musleabihf-native.tgz                  07-Sep-2020 03:22            63132106
armeb-linux-musleabihf-native.tgz.sig              07-Sep-2020 03:22                 566
armel-linux-musleabi-cross.tgz                     07-Sep-2020 03:22            87878590
armel-linux-musleabi-cross.tgz.sig                 07-Sep-2020 03:22                 566
armel-linux-musleabi-native.tgz                    07-Sep-2020 03:22            63188193
armel-linux-musleabi-native.tgz.sig                07-Sep-2020 03:22                 566
armel-linux-musleabihf-cross.tgz                   07-Sep-2020 03:22            87660961
armel-linux-musleabihf-cross.tgz.sig               07-Sep-2020 03:22                 566
armel-linux-musleabihf-native.tgz                  07-Sep-2020 03:22            63004623
armel-linux-musleabihf-native.tgz.sig              07-Sep-2020 03:22                 566
armv5l-linux-musleabihf-cross.tgz                  07-Sep-2020 03:22            87719250
armv5l-linux-musleabihf-cross.tgz.sig              07-Sep-2020 03:22                 566
armv5l-linux-musleabihf-native.tgz                 07-Sep-2020 03:22            63013413
armv5l-linux-musleabihf-native.tgz.sig             07-Sep-2020 03:22                 566
armv7l-linux-musleabihf-cross.tgz                  07-Sep-2020 03:22            87720179
armv7l-linux-musleabihf-cross.tgz.sig              07-Sep-2020 03:22                 566
armv7l-linux-musleabihf-native.tgz                 07-Sep-2020 03:22            63016708
armv7l-linux-musleabihf-native.tgz.sig             07-Sep-2020 03:22                 566
armv7m-linux-musleabi-cross.tgz                    07-Sep-2020 03:22            87874783
armv7m-linux-musleabi-cross.tgz.sig                07-Sep-2020 03:22                 566
armv7m-linux-musleabi-native.tgz                   07-Sep-2020 03:22            63184127
armv7m-linux-musleabi-native.tgz.sig               07-Sep-2020 03:22                 566
armv7r-linux-musleabihf-cross.tgz                  07-Sep-2020 03:22            87719512
armv7r-linux-musleabihf-cross.tgz.sig              07-Sep-2020 03:22                 566
armv7r-linux-musleabihf-native.tgz                 07-Sep-2020 03:22            63013490
armv7r-linux-musleabihf-native.tgz.sig             07-Sep-2020 03:23                 566
i486-linux-musl-cross.tgz                          07-Sep-2020 03:23            92717526
i486-linux-musl-cross.tgz.sig                      07-Sep-2020 03:23                 566
i486-linux-musl-native.tgz                         07-Sep-2020 03:23            70373810
i486-linux-musl-native.tgz.sig                     07-Sep-2020 03:23                 566
i686-linux-musl-cross.tgz                          07-Sep-2020 03:23            93266098
i686-linux-musl-cross.tgz.sig                      07-Sep-2020 03:23                 566
i686-linux-musl-native.tgz                         07-Sep-2020 03:23            70237612
i686-linux-musl-native.tgz.sig                     07-Sep-2020 03:23                 566
i686-w64-mingw32-cross.tgz                         07-Sep-2020 03:23           102549471
i686-w64-mingw32-cross.tgz.sig                     07-Sep-2020 03:23                 566
i686-w64-mingw32-native.zip                        07-Sep-2020 03:23            95644284
i686-w64-mingw32-native.zip.sig                    07-Sep-2020 03:23                 566
m68k-linux-musl-cross.tgz                          07-Sep-2020 03:23            78286451
m68k-linux-musl-cross.tgz.sig                      07-Sep-2020 03:23                 566
m68k-linux-musl-native.tgz                         07-Sep-2020 03:23            54431631
m68k-linux-musl-native.tgz.sig                     07-Sep-2020 03:23                 566
microblaze-linux-musl-cross.tgz                    07-Sep-2020 03:23            67799909
microblaze-linux-musl-cross.tgz.sig                07-Sep-2020 03:23                 566
microblaze-linux-musl-native.tgz                   07-Sep-2020 03:23            52534099
microblaze-linux-musl-native.tgz.sig               07-Sep-2020 03:23                 566
microblazeel-linux-musl-cross.tgz                  07-Sep-2020 03:23            66937856
microblazeel-linux-musl-cross.tgz.sig              07-Sep-2020 03:23                 566
microblazeel-linux-musl-native.tgz                 07-Sep-2020 03:23            52432929
microblazeel-linux-musl-native.tgz.sig             07-Sep-2020 03:23                 566
mips-linux-musl-cross.tgz                          07-Sep-2020 03:23            87955015
mips-linux-musl-cross.tgz.sig                      07-Sep-2020 03:23                 566
mips-linux-musl-native.tgz                         07-Sep-2020 03:23            70249692
mips-linux-musl-native.tgz.sig                     07-Sep-2020 03:23                 566
mips-linux-musln32sf-cross.tgz                     07-Sep-2020 03:23            88186273
mips-linux-musln32sf-cross.tgz.sig                 07-Sep-2020 03:23                 566
mips-linux-musln32sf-native.tgz                    07-Sep-2020 03:23            70720348
mips-linux-musln32sf-native.tgz.sig                07-Sep-2020 03:23                 566
mips-linux-muslsf-cross.tgz                        07-Sep-2020 03:23            88192725
mips-linux-muslsf-cross.tgz.sig                    07-Sep-2020 03:23                 566
mips-linux-muslsf-native.tgz                       07-Sep-2020 03:23            70716016
mips-linux-muslsf-native.tgz.sig                   07-Sep-2020 03:23                 566
mips64-linux-musl-cross.tgz                        07-Sep-2020 03:23            93050378
mips64-linux-musl-cross.tgz.sig                    07-Sep-2020 03:23                 566
mips64-linux-musl-native.tgz                       07-Sep-2020 03:23            70560411
mips64-linux-musl-native.tgz.sig                   07-Sep-2020 03:23                 566
mips64-linux-musln32-cross.tgz                     07-Sep-2020 03:23            89775304
mips64-linux-musln32-cross.tgz.sig                 07-Sep-2020 03:23                 566
mips64-linux-musln32-native.tgz                    07-Sep-2020 03:23            67178191
mips64-linux-musln32-native.tgz.sig                07-Sep-2020 03:23                 566
mips64-linux-musln32sf-cross.tgz                   07-Sep-2020 03:23            89976910
mips64-linux-musln32sf-cross.tgz.sig               07-Sep-2020 03:23                 566
mips64-linux-musln32sf-native.tgz                  07-Sep-2020 03:23            67303726
mips64-linux-musln32sf-native.tgz.sig              07-Sep-2020 03:23                 566
mips64el-linux-musl-cross.tgz                      07-Sep-2020 03:23            90949139
mips64el-linux-musl-cross.tgz.sig                  07-Sep-2020 03:23                 566
mips64el-linux-musl-native.tgz                     07-Sep-2020 03:23            70180269
mips64el-linux-musl-native.tgz.sig                 07-Sep-2020 03:23                 566
mips64el-linux-musln32-cross.tgz                   07-Sep-2020 03:23            88460410
mips64el-linux-musln32-cross.tgz.sig               07-Sep-2020 03:23                 566
mips64el-linux-musln32-native.tgz                  07-Sep-2020 03:23            66955179
mips64el-linux-musln32-native.tgz.sig              07-Sep-2020 03:23                 566
mips64el-linux-musln32sf-cross.tgz                 07-Sep-2020 03:23            88548368
mips64el-linux-musln32sf-cross.tgz.sig             07-Sep-2020 03:23                 566
mips64el-linux-musln32sf-native.tgz                07-Sep-2020 03:23            67064111
mips64el-linux-musln32sf-native.tgz.sig            07-Sep-2020 03:24                 566
mipsel-linux-musl-cross.tgz                        07-Sep-2020 03:24            86350370
mipsel-linux-musl-cross.tgz.sig                    07-Sep-2020 03:24                 566
mipsel-linux-musl-native.tgz                       07-Sep-2020 03:24            69670209
mipsel-linux-musl-native.tgz.sig                   07-Sep-2020 03:24                 566
mipsel-linux-musln32-cross.tgz                     07-Sep-2020 03:24            86362871
mipsel-linux-musln32-cross.tgz.sig                 07-Sep-2020 03:24                 566
mipsel-linux-musln32-native.tgz                    07-Sep-2020 03:24            69665904
mipsel-linux-musln32-native.tgz.sig                07-Sep-2020 03:24                 566
mipsel-linux-musln32sf-cross.tgz                   07-Sep-2020 03:24            86669677
mipsel-linux-musln32sf-cross.tgz.sig               07-Sep-2020 03:24                 566
mipsel-linux-musln32sf-native.tgz                  07-Sep-2020 03:24            70122565
mipsel-linux-musln32sf-native.tgz.sig              07-Sep-2020 03:24                 566
mipsel-linux-muslsf-cross.tgz                      07-Sep-2020 03:24            86591438
mipsel-linux-muslsf-cross.tgz.sig                  07-Sep-2020 03:24                 566
mipsel-linux-muslsf-native.tgz                     07-Sep-2020 03:24            70126142
mipsel-linux-muslsf-native.tgz.sig                 07-Sep-2020 03:24                 566
or1k-linux-musl-cross.tgz                          07-Sep-2020 03:24            78947072
or1k-linux-musl-cross.tgz.sig                      07-Sep-2020 03:24                 566
or1k-linux-musl-native.tgz                         07-Sep-2020 03:24            64121085
or1k-linux-musl-native.tgz.sig                     07-Sep-2020 03:24                 566
powerpc-linux-musl-cross.tgz                       07-Sep-2020 03:24            89096568
powerpc-linux-musl-cross.tgz.sig                   07-Sep-2020 03:24                 566
powerpc-linux-musl-native.tgz                      07-Sep-2020 03:24            70091787
powerpc-linux-musl-native.tgz.sig                  07-Sep-2020 03:24                 566
powerpc-linux-muslsf-cross.tgz                     07-Sep-2020 03:24            89406140
powerpc-linux-muslsf-cross.tgz.sig                 07-Sep-2020 03:24                 566
powerpc-linux-muslsf-native.tgz                    07-Sep-2020 03:24            70457947
powerpc-linux-muslsf-native.tgz.sig                07-Sep-2020 03:24                 566
powerpc64-linux-musl-cross.tgz                     07-Sep-2020 03:24            94901596
powerpc64-linux-musl-cross.tgz.sig                 07-Sep-2020 03:24                 566
powerpc64-linux-musl-native.tgz                    07-Sep-2020 03:24            72279930
powerpc64-linux-musl-native.tgz.sig                07-Sep-2020 03:24                 566
powerpc64le-linux-musl-cross.tgz                   07-Sep-2020 03:24            92646080
powerpc64le-linux-musl-cross.tgz.sig               07-Sep-2020 03:24                 566
powerpc64le-linux-musl-native.tgz                  07-Sep-2020 03:24            72201116
powerpc64le-linux-musl-native.tgz.sig              07-Sep-2020 03:24                 566
powerpcle-linux-musl-cross.tgz                     07-Sep-2020 03:24            87638517
powerpcle-linux-musl-cross.tgz.sig                 07-Sep-2020 03:24                 566
powerpcle-linux-musl-native.tgz                    07-Sep-2020 03:24            70490875
powerpcle-linux-musl-native.tgz.sig                07-Sep-2020 03:24                 566
powerpcle-linux-muslsf-cross.tgz                   07-Sep-2020 03:24            87954401
powerpcle-linux-muslsf-cross.tgz.sig               07-Sep-2020 03:24                 566
powerpcle-linux-muslsf-native.tgz                  07-Sep-2020 03:24            70831078
powerpcle-linux-muslsf-native.tgz.sig              07-Sep-2020 03:24                 566
riscv64-linux-musl-cross.tgz                       07-Sep-2020 03:24            95463948
riscv64-linux-musl-cross.tgz.sig                   07-Sep-2020 03:24                 566
riscv64-linux-musl-native.tgz                      07-Sep-2020 03:24            61127849
riscv64-linux-musl-native.tgz.sig                  07-Sep-2020 03:24                 566
s390x-linux-musl-cross.tgz                         07-Sep-2020 03:24            88853184
s390x-linux-musl-cross.tgz.sig                     07-Sep-2020 03:24                 566
s390x-linux-musl-native.tgz                        07-Sep-2020 03:24            61314386
s390x-linux-musl-native.tgz.sig                    07-Sep-2020 03:24                 566
sh2-linux-musl-cross.tgz                           07-Sep-2020 03:24            79478445
sh2-linux-musl-cross.tgz.sig                       07-Sep-2020 03:24                 566
sh2-linux-musl-native.tgz                          07-Sep-2020 03:24            62567413
sh2-linux-musl-native.tgz.sig                      07-Sep-2020 03:25                 566
sh2-linux-muslfdpic-cross.tgz                      07-Sep-2020 03:25            79808417
sh2-linux-muslfdpic-cross.tgz.sig                  07-Sep-2020 03:25                 566
sh2-linux-muslfdpic-native.tgz                     07-Sep-2020 03:25            69310930
sh2-linux-muslfdpic-native.tgz.sig                 07-Sep-2020 03:25                 566
sh2eb-linux-musl-cross.tgz                         07-Sep-2020 03:25            80631313
sh2eb-linux-musl-cross.tgz.sig                     07-Sep-2020 03:25                 566
sh2eb-linux-musl-native.tgz                        07-Sep-2020 03:25            63093198
sh2eb-linux-musl-native.tgz.sig                    07-Sep-2020 03:25                 566
sh2eb-linux-muslfdpic-cross.tgz                    07-Sep-2020 03:25            80961426
sh2eb-linux-muslfdpic-cross.tgz.sig                07-Sep-2020 03:25                 566
sh2eb-linux-muslfdpic-native.tgz                   07-Sep-2020 03:25            70300242
sh2eb-linux-muslfdpic-native.tgz.sig               07-Sep-2020 03:25                 566
sh4-linux-musl-cross.tgz                           07-Sep-2020 03:25            79436233
sh4-linux-musl-cross.tgz.sig                       07-Sep-2020 03:25                 566
sh4-linux-musl-native.tgz                          07-Sep-2020 03:25            62503891
sh4-linux-musl-native.tgz.sig                      07-Sep-2020 03:25                 566
sh4eb-linux-musl-cross.tgz                         07-Sep-2020 03:25            80710079
sh4eb-linux-musl-cross.tgz.sig                     07-Sep-2020 03:25                 566
sh4eb-linux-musl-native.tgz                        07-Sep-2020 03:25            62990437
sh4eb-linux-musl-native.tgz.sig                    07-Sep-2020 03:25                 566
x86_64-linux-musl-cross.tgz                        07-Sep-2020 03:25            98955684
x86_64-linux-musl-cross.tgz.sig                    07-Sep-2020 03:25                 566
x86_64-linux-musl-native.tgz                       07-Sep-2020 03:25            69235137
x86_64-linux-musl-native.tgz.sig                   07-Sep-2020 03:25                 566
x86_64-linux-muslx32-cross.tgz                     07-Sep-2020 03:25            96598865
x86_64-linux-muslx32-cross.tgz.sig                 07-Sep-2020 03:25                 566
x86_64-linux-muslx32-native.tgz                    07-Sep-2020 03:25            69189524
x86_64-linux-muslx32-native.tgz.sig                07-Sep-2020 03:25                 566
x86_64-w64-mingw32-cross.tgz                       07-Sep-2020 03:25           115439379
x86_64-w64-mingw32-cross.tgz.sig                   07-Sep-2020 03:25                 566
x86_64-w64-mingw32-native.zip                      07-Sep-2020 03:25           110796189
x86_64-w64-mingw32-native.zip.sig                  07-Sep-2020 03:25                 566

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.