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 ( download, sources, docker, 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-musleabi
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.makc
[ Unstable: (RISC-V6=source/config.mak) ]
[ Landley's5: (6.4.0=source/config.mak) (7.3.0=source/config.mak) ]

Toolchains:

Toolchains support the following languages: C, C++, Fortran except where noteda.
They are cryptographically signed with the following key: 0xB1D0B4566FBBDB40

For non-x86_64 toolchains, click here. GCC major releases: ( 8, 9 ) Something else? Contact me.

Index of /

Index of /


../
SHA512SUMS                                         05-Mar-2019 01:27               16066
SHA512SUMS.sig                                     05-Mar-2019 01:27                 566
aarch64-linux-musleabi-cross.tgz                   05-Mar-2019 01:25            75775108
aarch64-linux-musleabi-cross.tgz.sig               05-Mar-2019 01:25                 566
aarch64-linux-musleabi-native.tgz                  05-Mar-2019 01:25            51964929
aarch64-linux-musleabi-native.tgz.sig              05-Mar-2019 01:25                 566
aarch64_be-linux-musl-cross.tgz                    05-Mar-2019 01:25            77763987
aarch64_be-linux-musl-cross.tgz.sig                05-Mar-2019 01:25                 566
aarch64_be-linux-musl-native.tgz                   05-Mar-2019 01:25            52274240
aarch64_be-linux-musl-native.tgz.sig               05-Mar-2019 01:25                 566
arm-linux-musleabi-cross.tgz                       05-Mar-2019 01:25            73945087
arm-linux-musleabi-cross.tgz.sig                   05-Mar-2019 01:25                 566
arm-linux-musleabi-native.tgz                      05-Mar-2019 01:25            52214620
arm-linux-musleabi-native.tgz.sig                  05-Mar-2019 01:25                 566
arm-linux-musleabihf-cross.tgz                     05-Mar-2019 01:25            73802841
arm-linux-musleabihf-cross.tgz.sig                 05-Mar-2019 01:25                 566
arm-linux-musleabihf-native.tgz                    05-Mar-2019 01:25            51990616
arm-linux-musleabihf-native.tgz.sig                05-Mar-2019 01:25                 566
armeb-linux-musleabi-cross.tgz                     05-Mar-2019 01:25            75551998
armeb-linux-musleabi-cross.tgz.sig                 05-Mar-2019 01:25                 566
armeb-linux-musleabi-native.tgz                    05-Mar-2019 01:25            52310460
armeb-linux-musleabi-native.tgz.sig                05-Mar-2019 01:25                 566
armeb-linux-musleabihf-cross.tgz                   05-Mar-2019 01:25            75416362
armeb-linux-musleabihf-cross.tgz.sig               05-Mar-2019 01:25                 566
armeb-linux-musleabihf-native.tgz                  05-Mar-2019 01:25            52092271
armeb-linux-musleabihf-native.tgz.sig              05-Mar-2019 01:25                 566
armel-linux-musleabi-cross.tgz                     05-Mar-2019 01:25            73949177
armel-linux-musleabi-cross.tgz.sig                 05-Mar-2019 01:25                 566
armel-linux-musleabi-native.tgz                    05-Mar-2019 01:25            52211743
armel-linux-musleabi-native.tgz.sig                05-Mar-2019 01:25                 566
armel-linux-musleabihf-cross.tgz                   05-Mar-2019 01:25            73815729
armel-linux-musleabihf-cross.tgz.sig               05-Mar-2019 01:25                 566
armel-linux-musleabihf-native.tgz                  05-Mar-2019 01:25            51995581
armel-linux-musleabihf-native.tgz.sig              05-Mar-2019 01:25                 566
armv5l-linux-musleabihf-cross.tgz                  05-Mar-2019 01:25            73805942
armv5l-linux-musleabihf-cross.tgz.sig              05-Mar-2019 01:25                 566
armv5l-linux-musleabihf-native.tgz                 05-Mar-2019 01:25            52004373
armv5l-linux-musleabihf-native.tgz.sig             05-Mar-2019 01:25                 566
armv7l-linux-musleabihf-cross.tgz                  05-Mar-2019 01:25            73809511
armv7l-linux-musleabihf-cross.tgz.sig              05-Mar-2019 01:25                 566
armv7l-linux-musleabihf-native.tgz                 05-Mar-2019 01:25            51983812
armv7l-linux-musleabihf-native.tgz.sig             05-Mar-2019 01:25                 566
armv7m-linux-musleabi-cross.tgz                    05-Mar-2019 01:25            73946692
armv7m-linux-musleabi-cross.tgz.sig                05-Mar-2019 01:25                 566
armv7m-linux-musleabi-native.tgz                   05-Mar-2019 01:25            52214472
armv7m-linux-musleabi-native.tgz.sig               05-Mar-2019 01:25                 566
armv7r-linux-musleabihf-cross.tgz                  05-Mar-2019 01:25            73809566
armv7r-linux-musleabihf-cross.tgz.sig              05-Mar-2019 01:25                 566
armv7r-linux-musleabihf-native.tgz                 05-Mar-2019 01:25            51998510
armv7r-linux-musleabihf-native.tgz.sig             05-Mar-2019 01:25                 566
i486-linux-musl-cross.tgz                          05-Mar-2019 01:25            77640480
i486-linux-musl-cross.tgz.sig                      05-Mar-2019 01:25                 566
i486-linux-musl-native.tgz                         05-Mar-2019 01:25            58037484
i486-linux-musl-native.tgz.sig                     05-Mar-2019 01:25                 566
i686-linux-musl-cross.tgz                          05-Mar-2019 01:25            77933971
i686-linux-musl-cross.tgz.sig                      05-Mar-2019 01:25                 566
i686-linux-musl-native.tgz                         05-Mar-2019 01:25            58146353
i686-linux-musl-native.tgz.sig                     05-Mar-2019 01:25                 566
i686-w64-mingw32-cross.tgz                         05-Mar-2019 01:25            83845649
i686-w64-mingw32-cross.tgz.sig                     05-Mar-2019 01:25                 566
i686-w64-mingw32-native.zip                        05-Mar-2019 01:25            83291708
i686-w64-mingw32-native.zip.sig                    05-Mar-2019 01:25                 566
m68k-linux-musl-cross.tgz                          05-Mar-2019 01:25            64464102
m68k-linux-musl-cross.tgz.sig                      05-Mar-2019 01:25                 566
m68k-linux-musl-native.tgz                         05-Mar-2019 01:25            43527461
m68k-linux-musl-native.tgz.sig                     05-Mar-2019 01:25                 566
microblaze-linux-musl-cross.tgz                    05-Mar-2019 01:25            54992557
microblaze-linux-musl-cross.tgz.sig                05-Mar-2019 01:25                 566
microblaze-linux-musl-native.tgz                   05-Mar-2019 01:25            41766404
microblaze-linux-musl-native.tgz.sig               05-Mar-2019 01:25                 566
microblazeel-linux-musl-cross.tgz                  05-Mar-2019 01:25            54146054
microblazeel-linux-musl-cross.tgz.sig              05-Mar-2019 01:25                 566
microblazeel-linux-musl-native.tgz                 05-Mar-2019 01:25            41690232
microblazeel-linux-musl-native.tgz.sig             05-Mar-2019 01:25                 566
mips-linux-musl-cross.tgz                          05-Mar-2019 01:25            73594390
mips-linux-musl-cross.tgz.sig                      05-Mar-2019 01:25                 566
mips-linux-musl-native.tgz                         05-Mar-2019 01:25            58760075
mips-linux-musl-native.tgz.sig                     05-Mar-2019 01:25                 566
mips-linux-musln32sf-cross.tgz                     05-Mar-2019 01:25            73894196
mips-linux-musln32sf-cross.tgz.sig                 05-Mar-2019 01:25                 566
mips-linux-musln32sf-native.tgz                    05-Mar-2019 01:25            59216833
mips-linux-musln32sf-native.tgz.sig                05-Mar-2019 01:25                 566
mips-linux-muslsf-cross.tgz                        05-Mar-2019 01:25            73887881
mips-linux-muslsf-cross.tgz.sig                    05-Mar-2019 01:25                 566
mips-linux-muslsf-native.tgz                       05-Mar-2019 01:25            59209605
mips-linux-muslsf-native.tgz.sig                   05-Mar-2019 01:25                 566
mips64-linux-musl-cross.tgz                        05-Mar-2019 01:25            78313385
mips64-linux-musl-cross.tgz.sig                    05-Mar-2019 01:25                 566
mips64-linux-musl-native.tgz                       05-Mar-2019 01:25            59368689
mips64-linux-musl-native.tgz.sig                   05-Mar-2019 01:25                 566
mips64-linux-musln32-cross.tgz                     05-Mar-2019 01:25            75283309
mips64-linux-musln32-cross.tgz.sig                 05-Mar-2019 01:25                 566
mips64-linux-musln32-native.tgz                    05-Mar-2019 01:25            56045219
mips64-linux-musln32-native.tgz.sig                05-Mar-2019 01:25                 566
mips64-linux-musln32sf-cross.tgz                   05-Mar-2019 01:25            75461572
mips64-linux-musln32sf-cross.tgz.sig               05-Mar-2019 01:25                 566
mips64-linux-musln32sf-native.tgz                  05-Mar-2019 01:25            56125964
mips64-linux-musln32sf-native.tgz.sig              05-Mar-2019 01:25                 566
mips64el-linux-musl-cross.tgz                      05-Mar-2019 01:25            76293044
mips64el-linux-musl-cross.tgz.sig                  05-Mar-2019 01:25                 566
mips64el-linux-musl-native.tgz                     05-Mar-2019 01:25            59105913
mips64el-linux-musl-native.tgz.sig                 05-Mar-2019 01:25                 566
mips64el-linux-musln32-cross.tgz                   05-Mar-2019 01:25            74030337
mips64el-linux-musln32-cross.tgz.sig               05-Mar-2019 01:25                 566
mips64el-linux-musln32-native.tgz                  05-Mar-2019 01:25            55898436
mips64el-linux-musln32-native.tgz.sig              05-Mar-2019 01:25                 566
mips64el-linux-musln32sf-cross.tgz                 05-Mar-2019 01:25            74203302
mips64el-linux-musln32sf-cross.tgz.sig             05-Mar-2019 01:25                 566
mips64el-linux-musln32sf-native.tgz                05-Mar-2019 01:25            55980533
mips64el-linux-musln32sf-native.tgz.sig            05-Mar-2019 01:25                 566
mipsel-linux-musl-cross.tgz                        05-Mar-2019 01:25            71988166
mipsel-linux-musl-cross.tgz.sig                    05-Mar-2019 01:25                 566
mipsel-linux-musl-native.tgz                       05-Mar-2019 01:25            58305503
mipsel-linux-musl-native.tgz.sig                   05-Mar-2019 01:25                 566
mipsel-linux-musln32-cross.tgz                     05-Mar-2019 01:25            71990743
mipsel-linux-musln32-cross.tgz.sig                 05-Mar-2019 01:25                 566
mipsel-linux-musln32-native.tgz                    05-Mar-2019 01:25            58305071
mipsel-linux-musln32-native.tgz.sig                05-Mar-2019 01:26                 566
mipsel-linux-musln32sf-cross.tgz                   05-Mar-2019 01:26            72267050
mipsel-linux-musln32sf-cross.tgz.sig               05-Mar-2019 01:26                 566
mipsel-linux-musln32sf-native.tgz                  05-Mar-2019 01:26            58752324
mipsel-linux-musln32sf-native.tgz.sig              05-Mar-2019 01:26                 566
mipsel-linux-muslsf-cross.tgz                      05-Mar-2019 01:26            72270036
mipsel-linux-muslsf-cross.tgz.sig                  05-Mar-2019 01:26                 566
mipsel-linux-muslsf-native.tgz                     05-Mar-2019 01:26            58752458
mipsel-linux-muslsf-native.tgz.sig                 05-Mar-2019 01:26                 566
or1k-linux-musl-cross.tgz                          05-Mar-2019 01:26            64709244
or1k-linux-musl-cross.tgz.sig                      05-Mar-2019 01:26                 566
or1k-linux-musl-native.tgz                         05-Mar-2019 01:26            49971306
or1k-linux-musl-native.tgz.sig                     05-Mar-2019 01:26                 566
powerpc-linux-musl-cross.tgz                       05-Mar-2019 01:26            76234769
powerpc-linux-musl-cross.tgz.sig                   05-Mar-2019 01:26                 566
powerpc-linux-musl-native.tgz                      05-Mar-2019 01:26            59118321
powerpc-linux-musl-native.tgz.sig                  05-Mar-2019 01:26                 566
powerpc-linux-muslsf-cross.tgz                     05-Mar-2019 01:26            76508170
powerpc-linux-muslsf-cross.tgz.sig                 05-Mar-2019 01:26                 566
powerpc-linux-muslsf-native.tgz                    05-Mar-2019 01:26            59468523
powerpc-linux-muslsf-native.tgz.sig                05-Mar-2019 01:26                 566
powerpc64-linux-musl-cross.tgz                     05-Mar-2019 01:26            80198262
powerpc64-linux-musl-cross.tgz.sig                 05-Mar-2019 01:26                 566
powerpc64-linux-musl-native.tgz                    05-Mar-2019 01:26            61237302
powerpc64-linux-musl-native.tgz.sig                05-Mar-2019 01:26                 566
powerpc64le-linux-musl-cross.tgz                   05-Mar-2019 01:26            77985569
powerpc64le-linux-musl-cross.tgz.sig               05-Mar-2019 01:26                 566
powerpc64le-linux-musl-native.tgz                  05-Mar-2019 01:26            61922737
powerpc64le-linux-musl-native.tgz.sig              05-Mar-2019 01:26                 566
powerpcle-linux-musl-cross.tgz                     05-Mar-2019 01:26            74867390
powerpcle-linux-musl-cross.tgz.sig                 05-Mar-2019 01:26                 566
powerpcle-linux-musl-native.tgz                    05-Mar-2019 01:26            59568093
powerpcle-linux-musl-native.tgz.sig                05-Mar-2019 01:26                 566
powerpcle-linux-muslsf-cross.tgz                   05-Mar-2019 01:26            75144934
powerpcle-linux-muslsf-cross.tgz.sig               05-Mar-2019 01:26                 566
powerpcle-linux-muslsf-native.tgz                  05-Mar-2019 01:26            59885082
powerpcle-linux-muslsf-native.tgz.sig              05-Mar-2019 01:26                 566
riscv32-linux-musl-cross.tgz                       05-Mar-2019 01:26            74698071
riscv32-linux-musl-cross.tgz.sig                   05-Mar-2019 01:26                 566
riscv32-linux-musl-native.tgz                      05-Mar-2019 01:26            48722365
riscv32-linux-musl-native.tgz.sig                  05-Mar-2019 01:26                 566
riscv64-linux-musl-cross.tgz                       05-Mar-2019 01:26            77805474
riscv64-linux-musl-cross.tgz.sig                   05-Mar-2019 01:26                 566
riscv64-linux-musl-native.tgz                      05-Mar-2019 01:26            47962714
riscv64-linux-musl-native.tgz.sig                  05-Mar-2019 01:26                 566
s390x-linux-musl-cross.tgz                         05-Mar-2019 01:26            74070469
s390x-linux-musl-cross.tgz.sig                     05-Mar-2019 01:26                 566
s390x-linux-musl-native.tgz                        05-Mar-2019 01:26            50065849
s390x-linux-musl-native.tgz.sig                    05-Mar-2019 01:26                 566
sh2-linux-musl-cross.tgz                           05-Mar-2019 01:26            64944903
sh2-linux-musl-cross.tgz.sig                       05-Mar-2019 01:26                 566
sh2-linux-musl-native.tgz                          05-Mar-2019 01:26            51211626
sh2-linux-musl-native.tgz.sig                      05-Mar-2019 01:26                 566
sh2-linux-muslfdpic-cross.tgz                      05-Mar-2019 01:26            65214732
sh2-linux-muslfdpic-cross.tgz.sig                  05-Mar-2019 01:26                 566
sh2-linux-muslfdpic-native.tgz                     05-Mar-2019 01:26            57537190
sh2-linux-muslfdpic-native.tgz.sig                 05-Mar-2019 01:26                 566
sh2eb-linux-musl-cross.tgz                         05-Mar-2019 01:26            66012861
sh2eb-linux-musl-cross.tgz.sig                     05-Mar-2019 01:26                 566
sh2eb-linux-musl-native.tgz                        05-Mar-2019 01:26            51673344
sh2eb-linux-musl-native.tgz.sig                    05-Mar-2019 01:26                 566
sh2eb-linux-muslfdpic-cross.tgz                    05-Mar-2019 01:26            65735414
sh2eb-linux-muslfdpic-cross.tgz.sig                05-Mar-2019 01:26                 566
sh2eb-linux-muslfdpic-native.tgz                   05-Mar-2019 01:26            58450639
sh2eb-linux-muslfdpic-native.tgz.sig               05-Mar-2019 01:26                 566
sh4-linux-musl-cross.tgz                           05-Mar-2019 01:26            65022963
sh4-linux-musl-cross.tgz.sig                       05-Mar-2019 01:26                 566
sh4-linux-musl-native.tgz                          05-Mar-2019 01:26            51183511
sh4-linux-musl-native.tgz.sig                      05-Mar-2019 01:26                 566
sh4eb-linux-musl-cross.tgz                         05-Mar-2019 01:26            66117146
sh4eb-linux-musl-cross.tgz.sig                     05-Mar-2019 01:26                 566
sh4eb-linux-musl-native.tgz                        05-Mar-2019 01:26            51630515
sh4eb-linux-musl-native.tgz.sig                    05-Mar-2019 01:26                 566
x86_64-linux-musl-cross.tgz                        05-Mar-2019 01:26            82253793
x86_64-linux-musl-cross.tgz.sig                    05-Mar-2019 01:26                 566
x86_64-linux-musl-native.tgz                       05-Mar-2019 01:26            57455094
x86_64-linux-musl-native.tgz.sig                   05-Mar-2019 01:26                 566
x86_64-linux-muslx32-cross.tgz                     05-Mar-2019 01:26            80095849
x86_64-linux-muslx32-cross.tgz.sig                 05-Mar-2019 01:26                 566
x86_64-linux-muslx32-native.tgz                    05-Mar-2019 01:26            57537057
x86_64-linux-muslx32-native.tgz.sig                05-Mar-2019 01:26                 566
x86_64-w64-mingw32-cross.tgz                       05-Mar-2019 01:26            95063630
x86_64-w64-mingw32-cross.tgz.sig                   05-Mar-2019 01:26                 566
x86_64-w64-mingw32-native.zip                      05-Mar-2019 01:26            97173186
x86_64-w64-mingw32-native.zip.sig                  05-Mar-2019 01:26                 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. Native MinGW toolchains build with binutils 2.32 but as.exe segfaults; 2.30 is the last version known to work.
  4. OpenRISC target: GCC 8 patched forward from gcc-8_2_0-release to 45d0f2 from here (thanks smaeul). GCC 9 includes it.

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.
[2]: Based on the Alpine Linux image for size. Packaged with MacroMμ.
[3]: Validate them against my public key.
[4]: Rob Landley has i686-hosted toolchains here. I have others here.
[5]: RISC-V support is experimental. Pending review and merge.
[6]: Clang/LLVM is on the TODO list. Contributions welcome. Look at ELLCC in the interim.