From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13782 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Croepha Newsgroups: gmane.linux.lib.musl.general Subject: Updated documentation on cross building LLVM for Musl Date: Wed, 13 Feb 2019 12:59:33 -0600 Message-ID: Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000001b97ac0581cb25bb" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="103147"; mail-complaints-to="usenet@blaine.gmane.org" To: musl@lists.openwall.com Original-X-From: musl-return-13798-gllmg-musl=m.gmane.org@lists.openwall.com Wed Feb 13 20:00:03 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1gtzlH-000Qa6-Cx for gllmg-musl@m.gmane.org; Wed, 13 Feb 2019 19:59:59 +0100 Original-Received: (qmail 13572 invoked by uid 550); 13 Feb 2019 18:59:56 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 13513 invoked from network); 13 Feb 2019 18:59:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=5u9NRu5YA4WRwckOeWlNdxmEZM5+6beaYLd72BZCwzs=; b=RfaQG3pWPDen1AneWhs/PqTW7mXGAFMSwHog4MlOdL5TUIt/4EAX9ywfie8Tdj8tKi WIifg5IXydc2c5l1AUcmqWj3uYSfwZM1uPjBbN8hif3iGUsfc27p9BfuTLtEzb8MZ5G+ jY5o8OtzMu2FlUuJkKpqbXfKS90E3ipEAYdvtsMBpEDvA+YF8T6sFYgP1WTuPI/m1JF1 VGTdqEnVdUwhcJ69R0myieThwnrGZIPNg8M4a0l1cX3vUINZIwajlw2Tys4Q54wNUxhw VLXhfwbzK56q0jezZf1RJ2bqTN5BrWL0BFjlZaQKEMRgMPyEKu4M2E07Zd0d39Nd2eRl AeNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=5u9NRu5YA4WRwckOeWlNdxmEZM5+6beaYLd72BZCwzs=; b=g7GIaGMmHFF3Oh17Vp32zUHXorHNAi2VPg/168vthaJVCDAKFxUjVcrGdEG73rRHp5 9mUi+j77WRO8Es9HRK17HUX9DNKbC294iQE+JbV1yqPC/8+w36Ut22bIW5r9MU/d4gdH u7DPdAzuNBsWcArhtl/wHOO2Iiky/uPwoX9MnWczNqtn0poQC2RBhNvu7l5CdTTWliT1 IdUz+mbRFOVapwCEcNZfwKg3kRfGqL3TePXbcJOxe6iYt8Dh2wGt4X17jiEAXO0FcQVG LByB/n7lLMHlbbMjeaWlP/+wpHsODy8HPP4LZqKmU2rJYUQugIC2uhkbaTf7I8Awi4H+ qjKA== X-Gm-Message-State: AHQUAuY4QymdaESyIakY9tjUmoscZc25OKzmStWaBSJVFR3EqOuGz2F8 NkbBWGFGZSjqjQGj8gskAyXeaqriB32X6dNp93o9oKt7 X-Google-Smtp-Source: AHgI3IaIPAzhzDOhDiIWKlN9Orpk4p83QH6ZY26zBHxHkmbjFo5YhAQjMUeoQ3EpjLHRgReT+J4c2SuvlH/GxmXuu/0= X-Received: by 2002:aa7:dacd:: with SMTP id x13mr1633181eds.24.1550084384461; Wed, 13 Feb 2019 10:59:44 -0800 (PST) Xref: news.gmane.org gmane.linux.lib.musl.general:13782 Archived-At: --0000000000001b97ac0581cb25bb Content-Type: text/plain; charset="UTF-8" I spent some time figuring out how to get Clang and related tools to build against musl starting from a Glib system. The result is a GNU-less (no libgcc, libstdc++, and GNU LD, AR...) toolchain. I figured I'd share in the hopes that someone else may find it useful... Note: Clang and friends works as expected, but I couldn't get the sanitizers to build against Musl, so that is the only limitation that I am aware of... Full doc here: https://gist.github.com/croepha/cdaf30638109b1a949f35aa215a7c86d --Dave --0000000000001b97ac0581cb25bb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

I spent some time fig= uring out how to get Clang and related tools to build against musl starting= from a Glib system.=C2=A0 The result is a GNU-less (no libgcc, libstdc++, = and GNU LD, AR...) toolchain. I figured I'd share in the hopes that som= eone else may find it useful...

Note:=C2=A0 Clang = and friends works as expected, but I couldn't get the sanitizers to bui= ld against Musl, so that is the only limitation that I am aware of...
=


--Dave


--0000000000001b97ac0581cb25bb--