Author Topic: musl Toolchains sites  (Read 66 times)

scsijon

  • Jr. Member
  • **
  • Posts: 95
    • View Profile
musl Toolchains sites
« on: March 20, 2019, 02:51:53 PM »
I came across this >

These are C/C++ toolchains used to produce binaries that are linked against the musl libc. The toolchain binaries are static, so they will work on any system and in any location.

Don't download a cross-toolchain and a native toolchain for the same architecture into the same directory! The archives have the same name, which is based on the gcc triplet for the target architecture. (The gcc convention does not encode the host architecture into the name.) Make sure to always handle cross-toolchains and native toolchains separately, to avoid confusion.

The toolchains do not include Linux kernel headers. If you need kernel headers and do not have a pre-built set, download a kernel, configure it for your target architecture, then run make headers_install, then move every header in ./usr/include to the toolchain's ./include subdirectory. You will get an error related to the scsi subdirectory; you don't need to care unless you're actually working with SCSI in userspace.

The latest toolchains are built with:

    gcc 8.3.0
    binutils 2.32
    musl 1.1.21
    gmp 6.1.2
    mpc 1.1.0
    mpfr 4.0.1

https://skarnet.org/toolchains/,

may be worth looking at.

And of course there is always this favorite https://github.com/richfelker/musl-cross-make
« Last Edit: March 20, 2019, 03:03:23 PM by scsijon »