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                                         03-Sep-2019 06:55               36580
aarch64-linux-musl-cross.tgz                       03-Sep-2019 06:53            84560071
aarch64-linux-musl-cross.tgz.sig                   03-Sep-2019 06:53                 565
aarch64-linux-musl-native.tgz                      03-Sep-2019 06:53            59643960
aarch64-linux-musl-native.tgz.sig                  03-Sep-2019 06:53                 566
aarch64_be-linux-musl-cross.tgz                    03-Sep-2019 06:53            86638642
aarch64_be-linux-musl-cross.tgz.sig                03-Sep-2019 06:53                 566
aarch64_be-linux-musl-native.tgz                   03-Sep-2019 06:53            60002181
aarch64_be-linux-musl-native.tgz.sig               03-Sep-2019 06:53                 566
arm-linux-musleabi-cross.tgz                       03-Sep-2019 06:53            83124689
arm-linux-musleabi-cross.tgz.sig                   03-Sep-2019 06:53                 566
arm-linux-musleabi-native.tgz                      03-Sep-2019 06:53            59658855
arm-linux-musleabi-native.tgz.sig                  03-Sep-2019 06:53                 566
arm-linux-musleabihf-cross.tgz                     03-Sep-2019 06:53            82978521
arm-linux-musleabihf-cross.tgz.sig                 03-Sep-2019 06:53                 566
arm-linux-musleabihf-native.tgz                    03-Sep-2019 06:53            59483634
arm-linux-musleabihf-native.tgz.sig                03-Sep-2019 06:53                 566
armeb-linux-musleabi-cross.tgz                     03-Sep-2019 06:53            84796336
armeb-linux-musleabi-cross.tgz.sig                 03-Sep-2019 06:53                 566
armeb-linux-musleabi-native.tgz                    03-Sep-2019 06:53            59800104
armeb-linux-musleabi-native.tgz.sig                03-Sep-2019 06:53                 566
armeb-linux-musleabihf-cross.tgz                   03-Sep-2019 06:53            84651146
armeb-linux-musleabihf-cross.tgz.sig               03-Sep-2019 06:53                 566
armeb-linux-musleabihf-native.tgz                  03-Sep-2019 06:53            59578065
armeb-linux-musleabihf-native.tgz.sig              03-Sep-2019 06:54                 566
armel-linux-musleabi-cross.tgz                     03-Sep-2019 06:54            83117570
armel-linux-musleabi-cross.tgz.sig                 03-Sep-2019 06:54                 566
armel-linux-musleabi-native.tgz                    03-Sep-2019 06:54            59663330
armel-linux-musleabi-native.tgz.sig                03-Sep-2019 06:54                 566
armel-linux-musleabihf-cross.tgz                   03-Sep-2019 06:54            82980108
armel-linux-musleabihf-cross.tgz.sig               03-Sep-2019 06:54                 566
armel-linux-musleabihf-native.tgz                  03-Sep-2019 06:54            59486834
armel-linux-musleabihf-native.tgz.sig              03-Sep-2019 06:54                 566
armv5l-linux-musleabihf-cross.tgz                  03-Sep-2019 06:54            82975641
armv5l-linux-musleabihf-cross.tgz.sig              03-Sep-2019 06:54                 566
armv5l-linux-musleabihf-native.tgz                 03-Sep-2019 06:54            59484225
armv5l-linux-musleabihf-native.tgz.sig             03-Sep-2019 06:54                 566
armv7l-linux-musleabihf-cross.tgz                  03-Sep-2019 06:54            82976010
armv7l-linux-musleabihf-cross.tgz.sig              03-Sep-2019 06:54                 566
armv7l-linux-musleabihf-native.tgz                 03-Sep-2019 06:54            59484051
armv7l-linux-musleabihf-native.tgz.sig             03-Sep-2019 06:54                 566
armv7m-linux-musleabi-cross.tgz                    03-Sep-2019 06:54            83145189
armv7m-linux-musleabi-cross.tgz.sig                03-Sep-2019 06:54                 566
armv7m-linux-musleabi-native.tgz                   03-Sep-2019 06:54            59664803
armv7m-linux-musleabi-native.tgz.sig               03-Sep-2019 06:54                 566
armv7r-linux-musleabihf-cross.tgz                  03-Sep-2019 06:54            82982870
armv7r-linux-musleabihf-cross.tgz.sig              03-Sep-2019 06:54                 566
armv7r-linux-musleabihf-native.tgz                 03-Sep-2019 06:54            59485886
armv7r-linux-musleabihf-native.tgz.sig             03-Sep-2019 06:54                 566
i486-linux-musl-cross.tgz                          03-Sep-2019 06:54            89016659
i486-linux-musl-cross.tgz.sig                      03-Sep-2019 06:54                 566
i486-linux-musl-native.tgz                         03-Sep-2019 06:54            66380679
i486-linux-musl-native.tgz.sig                     03-Sep-2019 06:54                 566
i686-linux-musl-cross.tgz                          03-Sep-2019 06:54            89552942
i686-linux-musl-cross.tgz.sig                      03-Sep-2019 06:54                 566
i686-linux-musl-native.tgz                         03-Sep-2019 06:54            66691445
i686-linux-musl-native.tgz.sig                     03-Sep-2019 06:54                 566
i686-w64-mingw32-cross.tgz                         03-Sep-2019 06:54            97858803
i686-w64-mingw32-cross.tgz.sig                     03-Sep-2019 06:54                 566
i686-w64-mingw32-native.zip                        03-Sep-2019 06:54            90235448
i686-w64-mingw32-native.zip.sig                    03-Sep-2019 06:54                 566
m68k-linux-musl-cross.tgz                          03-Sep-2019 06:54            73329738
m68k-linux-musl-cross.tgz.sig                      03-Sep-2019 06:54                 566
m68k-linux-musl-native.tgz                         03-Sep-2019 06:54            50891883
m68k-linux-musl-native.tgz.sig                     03-Sep-2019 06:54                 566
microblaze-linux-musl-cross.tgz                    03-Sep-2019 06:54            63226384
microblaze-linux-musl-cross.tgz.sig                03-Sep-2019 06:54                 566
microblaze-linux-musl-native.tgz                   03-Sep-2019 06:54            48871290
microblaze-linux-musl-native.tgz.sig               03-Sep-2019 06:54                 566
microblazeel-linux-musl-cross.tgz                  03-Sep-2019 06:54            62327511
microblazeel-linux-musl-cross.tgz.sig              03-Sep-2019 06:54                 566
microblazeel-linux-musl-native.tgz                 03-Sep-2019 06:54            48787656
microblazeel-linux-musl-native.tgz.sig             03-Sep-2019 06:54                 566
mips-linux-musl-cross.tgz                          03-Sep-2019 06:54            82798409
mips-linux-musl-cross.tgz.sig                      03-Sep-2019 06:54                 566
mips-linux-musl-native.tgz                         03-Sep-2019 06:54            66479897
mips-linux-musl-native.tgz.sig                     03-Sep-2019 06:54                 566
mips-linux-musln32sf-cross.tgz                     03-Sep-2019 06:54            83151028
mips-linux-musln32sf-cross.tgz.sig                 03-Sep-2019 06:54                 566
mips-linux-musln32sf-native.tgz                    03-Sep-2019 06:54            66953011
mips-linux-musln32sf-native.tgz.sig                03-Sep-2019 06:54                 566
mips-linux-muslsf-cross.tgz                        03-Sep-2019 06:54            83133275
mips-linux-muslsf-cross.tgz.sig                    03-Sep-2019 06:54                 566
mips-linux-muslsf-native.tgz                       03-Sep-2019 06:54            66956394
mips-linux-muslsf-native.tgz.sig                   03-Sep-2019 06:54                 566
mips64-linux-musl-cross.tgz                        03-Sep-2019 06:54            87852332
mips64-linux-musl-cross.tgz.sig                    03-Sep-2019 06:54                 566
mips64-linux-musl-native.tgz                       03-Sep-2019 06:54            66948506
mips64-linux-musl-native.tgz.sig                   03-Sep-2019 06:54                 566
mips64-linux-musln32-cross.tgz                     03-Sep-2019 06:54            84552945
mips64-linux-musln32-cross.tgz.sig                 03-Sep-2019 06:54                 566
mips64-linux-musln32-native.tgz                    03-Sep-2019 06:54            63541827
mips64-linux-musln32-native.tgz.sig                03-Sep-2019 06:54                 566
mips64-linux-musln32sf-cross.tgz                   03-Sep-2019 06:54            84757450
mips64-linux-musln32sf-cross.tgz.sig               03-Sep-2019 06:54                 566
mips64-linux-musln32sf-native.tgz                  03-Sep-2019 06:54            63672128
mips64-linux-musln32sf-native.tgz.sig              03-Sep-2019 06:54                 566
mips64el-linux-musl-cross.tgz                      03-Sep-2019 06:54            85729391
mips64el-linux-musl-cross.tgz.sig                  03-Sep-2019 06:54                 566
mips64el-linux-musl-native.tgz                     03-Sep-2019 06:54            66549157
mips64el-linux-musl-native.tgz.sig                 03-Sep-2019 06:54                 566
mips64el-linux-musln32-cross.tgz                   03-Sep-2019 06:54            83221196
mips64el-linux-musln32-cross.tgz.sig               03-Sep-2019 06:54                 566
mips64el-linux-musln32-native.tgz                  03-Sep-2019 06:54            63287853
mips64el-linux-musln32-native.tgz.sig              03-Sep-2019 06:54                 566
mips64el-linux-musln32sf-cross.tgz                 03-Sep-2019 06:54            83422043
mips64el-linux-musln32sf-cross.tgz.sig             03-Sep-2019 06:54                 566
mips64el-linux-musln32sf-native.tgz                03-Sep-2019 06:54            63400654
mips64el-linux-musln32sf-native.tgz.sig            03-Sep-2019 06:54                 566
mipsel-linux-musl-cross.tgz                        03-Sep-2019 06:54            81103668
mipsel-linux-musl-cross.tgz.sig                    03-Sep-2019 06:54                 566
mipsel-linux-musl-native.tgz                       03-Sep-2019 06:54            65922553
mipsel-linux-musl-native.tgz.sig                   03-Sep-2019 06:54                 566
mipsel-linux-musln32-cross.tgz                     03-Sep-2019 06:54            81128101
mipsel-linux-musln32-cross.tgz.sig                 03-Sep-2019 06:54                 566
mipsel-linux-musln32-native.tgz                    03-Sep-2019 06:54            65931441
mipsel-linux-musln32-native.tgz.sig                03-Sep-2019 06:54                 566
mipsel-linux-musln32sf-cross.tgz                   03-Sep-2019 06:54            81439636
mipsel-linux-musln32sf-cross.tgz.sig               03-Sep-2019 06:54                 566
mipsel-linux-musln32sf-native.tgz                  03-Sep-2019 06:54            66381618
mipsel-linux-musln32sf-native.tgz.sig              03-Sep-2019 06:54                 566
mipsel-linux-muslsf-cross.tgz                      03-Sep-2019 06:54            81443891
mipsel-linux-muslsf-cross.tgz.sig                  03-Sep-2019 06:54                 566
mipsel-linux-muslsf-native.tgz                     03-Sep-2019 06:54            66395103
mipsel-linux-muslsf-native.tgz.sig                 03-Sep-2019 06:54                 566
or1k-linux-musl-cross.tgz                          03-Sep-2019 06:54            74079748
or1k-linux-musl-cross.tgz.sig                      03-Sep-2019 06:54                 566
or1k-linux-musl-native.tgz                         03-Sep-2019 06:54            60499296
or1k-linux-musl-native.tgz.sig                     03-Sep-2019 06:54                 566
powerpc-linux-musl-cross.tgz                       03-Sep-2019 06:54            85327385
powerpc-linux-musl-cross.tgz.sig                   03-Sep-2019 06:54                 566
powerpc-linux-musl-native.tgz                      03-Sep-2019 06:54            66455374
powerpc-linux-musl-native.tgz.sig                  03-Sep-2019 06:54                 566
powerpc-linux-muslsf-cross.tgz                     03-Sep-2019 06:54            85633467
powerpc-linux-muslsf-cross.tgz.sig                 03-Sep-2019 06:54                 566
powerpc-linux-muslsf-native.tgz                    03-Sep-2019 06:54            66808866
powerpc-linux-muslsf-native.tgz.sig                03-Sep-2019 06:54                 566
powerpc64-linux-musl-cross.tgz                     03-Sep-2019 06:54            89419348
powerpc64-linux-musl-cross.tgz.sig                 03-Sep-2019 06:54                 566
powerpc64-linux-musl-native.tgz                    03-Sep-2019 06:54            68437675
powerpc64-linux-musl-native.tgz.sig                03-Sep-2019 06:54                 566
powerpc64le-linux-musl-cross.tgz                   03-Sep-2019 06:54            88084772
powerpc64le-linux-musl-cross.tgz.sig               03-Sep-2019 06:54                 566
powerpc64le-linux-musl-native.tgz                  03-Sep-2019 06:54            69241283
powerpc64le-linux-musl-native.tgz.sig              03-Sep-2019 06:54                 566
powerpcle-linux-musl-cross.tgz                     03-Sep-2019 06:54            83850730
powerpcle-linux-musl-cross.tgz.sig                 03-Sep-2019 06:54                 566
powerpcle-linux-musl-native.tgz                    03-Sep-2019 06:54            66853539
powerpcle-linux-musl-native.tgz.sig                03-Sep-2019 06:54                 566
powerpcle-linux-muslsf-cross.tgz                   03-Sep-2019 06:54            84157318
powerpcle-linux-muslsf-cross.tgz.sig               03-Sep-2019 06:54                 566
powerpcle-linux-muslsf-native.tgz                  03-Sep-2019 06:54            67205666
powerpcle-linux-muslsf-native.tgz.sig              03-Sep-2019 06:54                 566
riscv64-linux-musl-cross.tgz                       03-Sep-2019 06:54            89527548
riscv64-linux-musl-cross.tgz.sig                   03-Sep-2019 06:54                 566
riscv64-linux-musl-native.tgz                      03-Sep-2019 06:54            57633599
riscv64-linux-musl-native.tgz.sig                  03-Sep-2019 06:54                 566
s390x-linux-musl-cross.tgz                         03-Sep-2019 06:54            83569822
s390x-linux-musl-cross.tgz.sig                     03-Sep-2019 06:54                 566
s390x-linux-musl-native.tgz                        03-Sep-2019 06:54            57828527
s390x-linux-musl-native.tgz.sig                    03-Sep-2019 06:54                 566
sh2-linux-musl-cross.tgz                           03-Sep-2019 06:54            74434971
sh2-linux-musl-cross.tgz.sig                       03-Sep-2019 06:54                 566
sh2-linux-musl-native.tgz                          03-Sep-2019 06:54            58988582
sh2-linux-musl-native.tgz.sig                      03-Sep-2019 06:54                 566
sh2-linux-muslfdpic-cross.tgz                      03-Sep-2019 06:54            74769182
sh2-linux-muslfdpic-cross.tgz.sig                  03-Sep-2019 06:54                 566
sh2-linux-muslfdpic-native.tgz                     03-Sep-2019 06:54            65600918
sh2-linux-muslfdpic-native.tgz.sig                 03-Sep-2019 06:54                 566
sh2eb-linux-musl-cross.tgz                         03-Sep-2019 06:54            75647700
sh2eb-linux-musl-cross.tgz.sig                     03-Sep-2019 06:54                 566
sh2eb-linux-musl-native.tgz                        03-Sep-2019 06:54            59493414
sh2eb-linux-musl-native.tgz.sig                    03-Sep-2019 06:54                 566
sh2eb-linux-muslfdpic-cross.tgz                    03-Sep-2019 06:54            75972639
sh2eb-linux-muslfdpic-cross.tgz.sig                03-Sep-2019 06:54                 566
sh2eb-linux-muslfdpic-native.tgz                   03-Sep-2019 06:54            66593660
sh2eb-linux-muslfdpic-native.tgz.sig               03-Sep-2019 06:54                 566
sh4-linux-musl-cross.tgz                           03-Sep-2019 06:54            74461421
sh4-linux-musl-cross.tgz.sig                       03-Sep-2019 06:55                 566
sh4-linux-musl-native.tgz                          03-Sep-2019 06:55            58919193
sh4-linux-musl-native.tgz.sig                      03-Sep-2019 06:55                 566
sh4eb-linux-musl-cross.tgz                         03-Sep-2019 06:55            75687805
sh4eb-linux-musl-cross.tgz.sig                     03-Sep-2019 06:55                 566
sh4eb-linux-musl-native.tgz                        03-Sep-2019 06:55            59386965
sh4eb-linux-musl-native.tgz.sig                    03-Sep-2019 06:55                 566
x86_64-linux-musl-cross.tgz                        03-Sep-2019 06:55            98133972
x86_64-linux-musl-cross.tgz.sig                    03-Sep-2019 06:55                 566
x86_64-linux-musl-native.tgz                       03-Sep-2019 06:55            65878341
x86_64-linux-musl-native.tgz.sig                   03-Sep-2019 06:55                 566
x86_64-linux-muslx32-cross.tgz                     03-Sep-2019 06:55            91594445
x86_64-linux-muslx32-cross.tgz.sig                 03-Sep-2019 06:55                 566
x86_64-linux-muslx32-native.tgz                    03-Sep-2019 06:55            65739358
x86_64-linux-muslx32-native.tgz.sig                03-Sep-2019 06:55                 566
x86_64-w64-mingw32-cross.tgz                       03-Sep-2019 06:55           109493762
x86_64-w64-mingw32-cross.tgz.sig                   03-Sep-2019 06:55                 566
x86_64-w64-mingw32-native.zip                      03-Sep-2019 06:55           104663970
x86_64-w64-mingw32-native.zip.sig                  03-Sep-2019 06:55                 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):