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, docker, sources, matrix, more... )
xstatic ( distro, kernel, packages, sources )
links ( musl, mingw, risc-v )

Small and reliable pre-built GCC toolchains for many architectures.
Cross (x86_64-hosted) by default4. 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/x86_64: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 effort 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: ( 6, 7, 8, 9 ).
For non-x86_64 toolchains, click here. Something else? Contact me.

Index of /

Index of /


../
SHA512SUMS                                         14-Oct-2019 22:27               36424
aarch64-linux-musl-cross.tgz                       14-Oct-2019 22:25            84861655
aarch64-linux-musl-cross.tgz.sig                   14-Oct-2019 22:25                 566
aarch64-linux-musl-native.tgz                      14-Oct-2019 22:25            59942997
aarch64-linux-musl-native.tgz.sig                  14-Oct-2019 22:25                 566
aarch64_be-linux-musl-cross.tgz                    14-Oct-2019 22:25            86945389
aarch64_be-linux-musl-cross.tgz.sig                14-Oct-2019 22:25                 566
aarch64_be-linux-musl-native.tgz                   14-Oct-2019 22:25            60290195
aarch64_be-linux-musl-native.tgz.sig               14-Oct-2019 22:25                 566
arm-linux-musleabi-cross.tgz                       14-Oct-2019 22:25            83344655
arm-linux-musleabi-cross.tgz.sig                   14-Oct-2019 22:25                 566
arm-linux-musleabi-native.tgz                      14-Oct-2019 22:25            59878774
arm-linux-musleabi-native.tgz.sig                  14-Oct-2019 22:25                 566
arm-linux-musleabihf-cross.tgz                     14-Oct-2019 22:25            83212849
arm-linux-musleabihf-cross.tgz.sig                 14-Oct-2019 22:25                 566
arm-linux-musleabihf-native.tgz                    14-Oct-2019 22:25            59696477
arm-linux-musleabihf-native.tgz.sig                14-Oct-2019 22:25                 566
armeb-linux-musleabi-cross.tgz                     14-Oct-2019 22:25            84966516
armeb-linux-musleabi-cross.tgz.sig                 14-Oct-2019 22:25                 566
armeb-linux-musleabi-native.tgz                    14-Oct-2019 22:25            59994609
armeb-linux-musleabi-native.tgz.sig                14-Oct-2019 22:25                 566
armeb-linux-musleabihf-cross.tgz                   14-Oct-2019 22:25            84885489
armeb-linux-musleabihf-cross.tgz.sig               14-Oct-2019 22:25                 566
armeb-linux-musleabihf-native.tgz                  14-Oct-2019 22:25            59801569
armeb-linux-musleabihf-native.tgz.sig              14-Oct-2019 22:25                 566
armel-linux-musleabi-cross.tgz                     14-Oct-2019 22:25            83345358
armel-linux-musleabi-cross.tgz.sig                 14-Oct-2019 22:25                 566
armel-linux-musleabi-native.tgz                    14-Oct-2019 22:25            59863699
armel-linux-musleabi-native.tgz.sig                14-Oct-2019 22:25                 566
armel-linux-musleabihf-cross.tgz                   14-Oct-2019 22:25            83176975
armel-linux-musleabihf-cross.tgz.sig               14-Oct-2019 22:25                 566
armel-linux-musleabihf-native.tgz                  14-Oct-2019 22:25            59701110
armel-linux-musleabihf-native.tgz.sig              14-Oct-2019 22:25                 566
armv5l-linux-musleabihf-cross.tgz                  14-Oct-2019 22:25            83189888
armv5l-linux-musleabihf-cross.tgz.sig              14-Oct-2019 22:25                 566
armv5l-linux-musleabihf-native.tgz                 14-Oct-2019 22:25            59704409
armv5l-linux-musleabihf-native.tgz.sig             14-Oct-2019 22:25                 566
armv7l-linux-musleabihf-cross.tgz                  14-Oct-2019 22:25            83212214
armv7l-linux-musleabihf-cross.tgz.sig              14-Oct-2019 22:25                 566
armv7l-linux-musleabihf-native.tgz                 14-Oct-2019 22:25            59697987
armv7l-linux-musleabihf-native.tgz.sig             14-Oct-2019 22:25                 566
armv7m-linux-musleabi-cross.tgz                    14-Oct-2019 22:25            83344815
armv7m-linux-musleabi-cross.tgz.sig                14-Oct-2019 22:26                 566
armv7m-linux-musleabi-native.tgz                   14-Oct-2019 22:26            59876304
armv7m-linux-musleabi-native.tgz.sig               14-Oct-2019 22:26                 566
armv7r-linux-musleabihf-cross.tgz                  14-Oct-2019 22:26            83205192
armv7r-linux-musleabihf-cross.tgz.sig              14-Oct-2019 22:26                 566
armv7r-linux-musleabihf-native.tgz                 14-Oct-2019 22:26            59704863
armv7r-linux-musleabihf-native.tgz.sig             14-Oct-2019 22:26                 566
i486-linux-musl-cross.tgz                          14-Oct-2019 22:26            89204403
i486-linux-musl-cross.tgz.sig                      14-Oct-2019 22:26                 566
i486-linux-musl-native.tgz                         14-Oct-2019 22:26            66577577
i486-linux-musl-native.tgz.sig                     14-Oct-2019 22:26                 566
i686-linux-musl-cross.tgz                          14-Oct-2019 22:26            89746326
i686-linux-musl-cross.tgz.sig                      14-Oct-2019 22:26                 566
i686-linux-musl-native.tgz                         14-Oct-2019 22:26            66874625
i686-linux-musl-native.tgz.sig                     14-Oct-2019 22:26                 566
i686-w64-mingw32-cross.tgz                         14-Oct-2019 22:26            98037272
i686-w64-mingw32-cross.tgz.sig                     14-Oct-2019 22:26                 566
i686-w64-mingw32-native.zip                        14-Oct-2019 22:26            88782240
i686-w64-mingw32-native.zip.sig                    14-Oct-2019 22:26                 566
m68k-linux-musl-cross.tgz                          14-Oct-2019 22:26            73509938
m68k-linux-musl-cross.tgz.sig                      14-Oct-2019 22:26                 566
m68k-linux-musl-native.tgz                         14-Oct-2019 22:26            51042523
m68k-linux-musl-native.tgz.sig                     14-Oct-2019 22:26                 566
microblaze-linux-musl-cross.tgz                    14-Oct-2019 22:26            63399650
microblaze-linux-musl-cross.tgz.sig                14-Oct-2019 22:26                 566
microblaze-linux-musl-native.tgz                   14-Oct-2019 22:26            49053432
microblaze-linux-musl-native.tgz.sig               14-Oct-2019 22:26                 566
microblazeel-linux-musl-cross.tgz                  14-Oct-2019 22:26            62497336
microblazeel-linux-musl-cross.tgz.sig              14-Oct-2019 22:26                 566
microblazeel-linux-musl-native.tgz                 14-Oct-2019 22:26            48978992
microblazeel-linux-musl-native.tgz.sig             14-Oct-2019 22:26                 566
mips-linux-musl-cross.tgz                          14-Oct-2019 22:26            83010637
mips-linux-musl-cross.tgz.sig                      14-Oct-2019 22:26                 566
mips-linux-musl-native.tgz                         14-Oct-2019 22:26            66706453
mips-linux-musl-native.tgz.sig                     14-Oct-2019 22:26                 566
mips-linux-musln32sf-cross.tgz                     14-Oct-2019 22:26            83344570
mips-linux-musln32sf-cross.tgz.sig                 14-Oct-2019 22:26                 566
mips-linux-musln32sf-native.tgz                    14-Oct-2019 22:26            67187731
mips-linux-musln32sf-native.tgz.sig                14-Oct-2019 22:26                 566
mips-linux-muslsf-cross.tgz                        14-Oct-2019 22:26            83350584
mips-linux-muslsf-cross.tgz.sig                    14-Oct-2019 22:26                 566
mips-linux-muslsf-native.tgz                       14-Oct-2019 22:26            67183398
mips-linux-muslsf-native.tgz.sig                   14-Oct-2019 22:26                 566
mips64-linux-musl-cross.tgz                        14-Oct-2019 22:26            88063200
mips64-linux-musl-cross.tgz.sig                    14-Oct-2019 22:26                 566
mips64-linux-musl-native.tgz                       14-Oct-2019 22:26            67202593
mips64-linux-musl-native.tgz.sig                   14-Oct-2019 22:26                 566
mips64-linux-musln32-cross.tgz                     14-Oct-2019 22:26            84776271
mips64-linux-musln32-cross.tgz.sig                 14-Oct-2019 22:26                 566
mips64-linux-musln32-native.tgz                    14-Oct-2019 22:26            63775773
mips64-linux-musln32-native.tgz.sig                14-Oct-2019 22:26                 566
mips64-linux-musln32sf-cross.tgz                   14-Oct-2019 22:26            84967845
mips64-linux-musln32sf-cross.tgz.sig               14-Oct-2019 22:26                 566
mips64-linux-musln32sf-native.tgz                  14-Oct-2019 22:26            63907361
mips64-linux-musln32sf-native.tgz.sig              14-Oct-2019 22:26                 566
mips64el-linux-musl-cross.tgz                      14-Oct-2019 22:26            85940704
mips64el-linux-musl-cross.tgz.sig                  14-Oct-2019 22:26                 566
mips64el-linux-musl-native.tgz                     14-Oct-2019 22:26            66797015
mips64el-linux-musl-native.tgz.sig                 14-Oct-2019 22:26                 566
mips64el-linux-musln32-cross.tgz                   14-Oct-2019 22:26            83443621
mips64el-linux-musln32-cross.tgz.sig               14-Oct-2019 22:26                 566
mips64el-linux-musln32-native.tgz                  14-Oct-2019 22:26            63546803
mips64el-linux-musln32-native.tgz.sig              14-Oct-2019 22:26                 566
mips64el-linux-musln32sf-cross.tgz                 14-Oct-2019 22:26            83637652
mips64el-linux-musln32sf-cross.tgz.sig             14-Oct-2019 22:26                 566
mips64el-linux-musln32sf-native.tgz                14-Oct-2019 22:26            63651039
mips64el-linux-musln32sf-native.tgz.sig            14-Oct-2019 22:26                 566
mipsel-linux-musl-cross.tgz                        14-Oct-2019 22:26            81315384
mipsel-linux-musl-cross.tgz.sig                    14-Oct-2019 22:26                 566
mipsel-linux-musl-native.tgz                       14-Oct-2019 22:26            66129345
mipsel-linux-musl-native.tgz.sig                   14-Oct-2019 22:26                 566
mipsel-linux-musln32-cross.tgz                     14-Oct-2019 22:26            81325712
mipsel-linux-musln32-cross.tgz.sig                 14-Oct-2019 22:26                 566
mipsel-linux-musln32-native.tgz                    14-Oct-2019 22:26            66135927
mipsel-linux-musln32-native.tgz.sig                14-Oct-2019 22:26                 566
mipsel-linux-musln32sf-cross.tgz                   14-Oct-2019 22:26            81640084
mipsel-linux-musln32sf-cross.tgz.sig               14-Oct-2019 22:26                 566
mipsel-linux-musln32sf-native.tgz                  14-Oct-2019 22:26            66592429
mipsel-linux-musln32sf-native.tgz.sig              14-Oct-2019 22:26                 566
mipsel-linux-muslsf-cross.tgz                      14-Oct-2019 22:26            81645216
mipsel-linux-muslsf-cross.tgz.sig                  14-Oct-2019 22:26                 566
mipsel-linux-muslsf-native.tgz                     14-Oct-2019 22:26            66588662
mipsel-linux-muslsf-native.tgz.sig                 14-Oct-2019 22:26                 566
or1k-linux-musl-cross.tgz                          14-Oct-2019 22:26            74243354
or1k-linux-musl-cross.tgz.sig                      14-Oct-2019 22:26                 566
or1k-linux-musl-native.tgz                         14-Oct-2019 22:26            60680961
or1k-linux-musl-native.tgz.sig                     14-Oct-2019 22:26                 566
powerpc-linux-musl-cross.tgz                       14-Oct-2019 22:26            85580354
powerpc-linux-musl-cross.tgz.sig                   14-Oct-2019 22:26                 566
powerpc-linux-musl-native.tgz                      14-Oct-2019 22:26            66653009
powerpc-linux-musl-native.tgz.sig                  14-Oct-2019 22:26                 566
powerpc-linux-muslsf-cross.tgz                     14-Oct-2019 22:26            85883839
powerpc-linux-muslsf-cross.tgz.sig                 14-Oct-2019 22:26                 566
powerpc-linux-muslsf-native.tgz                    14-Oct-2019 22:26            67025008
powerpc-linux-muslsf-native.tgz.sig                14-Oct-2019 22:26                 566
powerpc64-linux-musl-cross.tgz                     14-Oct-2019 22:26            89657669
powerpc64-linux-musl-cross.tgz.sig                 14-Oct-2019 22:26                 566
powerpc64-linux-musl-native.tgz                    14-Oct-2019 22:26            68722513
powerpc64-linux-musl-native.tgz.sig                14-Oct-2019 22:26                 566
powerpc64le-linux-musl-cross.tgz                   14-Oct-2019 22:26            88345332
powerpc64le-linux-musl-cross.tgz.sig               14-Oct-2019 22:26                 566
powerpc64le-linux-musl-native.tgz                  14-Oct-2019 22:26            69508042
powerpc64le-linux-musl-native.tgz.sig              14-Oct-2019 22:26                 566
powerpcle-linux-musl-cross.tgz                     14-Oct-2019 22:26            84094837
powerpcle-linux-musl-cross.tgz.sig                 14-Oct-2019 22:26                 566
powerpcle-linux-musl-native.tgz                    14-Oct-2019 22:26            67050467
powerpcle-linux-musl-native.tgz.sig                14-Oct-2019 22:26                 566
powerpcle-linux-muslsf-cross.tgz                   14-Oct-2019 22:26            84410863
powerpcle-linux-muslsf-cross.tgz.sig               14-Oct-2019 22:26                 566
powerpcle-linux-muslsf-native.tgz                  14-Oct-2019 22:26            67407905
powerpcle-linux-muslsf-native.tgz.sig              14-Oct-2019 22:26                 566
riscv64-linux-musl-cross.tgz                       14-Oct-2019 22:26            89715719
riscv64-linux-musl-cross.tgz.sig                   14-Oct-2019 22:26                 566
riscv64-linux-musl-native.tgz                      14-Oct-2019 22:26            57799042
riscv64-linux-musl-native.tgz.sig                  14-Oct-2019 22:26                 566
s390x-linux-musl-cross.tgz                         14-Oct-2019 22:26            83728571
s390x-linux-musl-cross.tgz.sig                     14-Oct-2019 22:26                 566
s390x-linux-musl-native.tgz                        14-Oct-2019 22:26            57987599
s390x-linux-musl-native.tgz.sig                    14-Oct-2019 22:26                 566
sh2-linux-musl-cross.tgz                           14-Oct-2019 22:26            74613381
sh2-linux-musl-cross.tgz.sig                       14-Oct-2019 22:26                 566
sh2-linux-musl-native.tgz                          14-Oct-2019 22:26            59158357
sh2-linux-musl-native.tgz.sig                      14-Oct-2019 22:26                 566
sh2-linux-muslfdpic-cross.tgz                      14-Oct-2019 22:26            74927145
sh2-linux-muslfdpic-cross.tgz.sig                  14-Oct-2019 22:26                 566
sh2-linux-muslfdpic-native.tgz                     14-Oct-2019 22:26            65809925
sh2-linux-muslfdpic-native.tgz.sig                 14-Oct-2019 22:26                 566
sh2eb-linux-musl-cross.tgz                         14-Oct-2019 22:26            75820638
sh2eb-linux-musl-cross.tgz.sig                     14-Oct-2019 22:26                 566
sh2eb-linux-musl-native.tgz                        14-Oct-2019 22:26            59666855
sh2eb-linux-musl-native.tgz.sig                    14-Oct-2019 22:26                 566
sh2eb-linux-muslfdpic-cross.tgz                    14-Oct-2019 22:26            76137645
sh2eb-linux-muslfdpic-cross.tgz.sig                14-Oct-2019 22:26                 566
sh2eb-linux-muslfdpic-native.tgz                   14-Oct-2019 22:26            66795236
sh2eb-linux-muslfdpic-native.tgz.sig               14-Oct-2019 22:26                 566
sh4-linux-musl-cross.tgz                           14-Oct-2019 22:26            74635849
sh4-linux-musl-cross.tgz.sig                       14-Oct-2019 22:26                 566
sh4-linux-musl-native.tgz                          14-Oct-2019 22:26            59090768
sh4-linux-musl-native.tgz.sig                      14-Oct-2019 22:26                 566
sh4eb-linux-musl-cross.tgz                         14-Oct-2019 22:26            75883205
sh4eb-linux-musl-cross.tgz.sig                     14-Oct-2019 22:26                 566
sh4eb-linux-musl-native.tgz                        14-Oct-2019 22:26            59554615
sh4eb-linux-musl-native.tgz.sig                    14-Oct-2019 22:26                 566
x86_64-linux-musl-cross.tgz                        14-Oct-2019 22:26            98294987
x86_64-linux-musl-cross.tgz.sig                    14-Oct-2019 22:26                 566
x86_64-linux-musl-native.tgz                       14-Oct-2019 22:26            66061833
x86_64-linux-musl-native.tgz.sig                   14-Oct-2019 22:26                 566
x86_64-linux-muslx32-cross.tgz                     14-Oct-2019 22:26            91776893
x86_64-linux-muslx32-cross.tgz.sig                 14-Oct-2019 22:26                 566
x86_64-linux-muslx32-native.tgz                    14-Oct-2019 22:26            65917998
x86_64-linux-muslx32-native.tgz.sig                14-Oct-2019 22:26                 566
x86_64-w64-mingw32-cross.tgz                       14-Oct-2019 22:26           109690482
x86_64-w64-mingw32-cross.tgz.sig                   14-Oct-2019 22:26                 566
x86_64-w64-mingw32-native.zip                      14-Oct-2019 22:26           102973742
x86_64-w64-mingw32-native.zip.sig                  14-Oct-2019 22:27                 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 x86_64-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.
[2]: Docker images based on the Alpine Linux image for size. Packaged with MacroMμ.
[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.


Changelog (highlights):