From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13784 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dave Butler Newsgroups: gmane.linux.lib.musl.general Subject: Re: Updated documentation on cross building LLVM for Musl Date: Wed, 13 Feb 2019 13:18:40 -0600 Message-ID: References: <45c155b8-52cb-5d6b-2daa-12c4f22a55c2@adelielinux.org> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000747a340581cb691a" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="263404"; mail-complaints-to="usenet@blaine.gmane.org" To: musl@lists.openwall.com Original-X-From: musl-return-13800-gllmg-musl=m.gmane.org@lists.openwall.com Wed Feb 13 20:32:14 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 1gu0GU-0016Ls-Ap for gllmg-musl@m.gmane.org; Wed, 13 Feb 2019 20:32:14 +0100 Original-Received: (qmail 19582 invoked by uid 550); 13 Feb 2019 19:32:09 -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 5685 invoked from network); 13 Feb 2019 19:19:04 -0000 X-Auth-ID: daveb@tanagerproductions.com X-Sender-Id: daveb@tanagerproductions.com X-Gm-Message-State: AHQUAuaXnHpasPE18mAguSD9Uny6UzSPbQpetbv+lWuvnptBdDkh5zWa vZN/fmAWPadmvJLn5ORTaHPbBZOR01sWPdnl3U0= X-Google-Smtp-Source: AHgI3IaoY1H074OdbhTDPI0yNvaWyMKK/x6Sg3Qd8KILypHNoCEkuOy1NKeTWLf6xm+b6qB8POTwUjiLmhp7gE35cLM= X-Received: by 2002:aa7:dacd:: with SMTP id x13mr1692462eds.24.1550085531129; Wed, 13 Feb 2019 11:18:51 -0800 (PST) In-Reply-To: <45c155b8-52cb-5d6b-2daa-12c4f22a55c2@adelielinux.org> X-Gmail-Original-Message-ID: Xref: news.gmane.org gmane.linux.lib.musl.general:13784 Archived-At: --000000000000747a340581cb691a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Feb 13, 2019 at 1:13 PM A. Wilcox wrote: > On 02/13/19 12:59, Croepha wrote: > > > > 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 > > > > > > Beginning of document: > > # LLVM seems to work great on Musl, there only seems some build errors > # when trying to build the sanitizers. So sanitizers have been enabled. > > You probably mean "disabled". > > Yes!, thanks for pointing that out, fixed now > Thanks for this. Does LLVM have things like ar(1), as(1), nm(1) and > friends as well? So you really don't need binutils? > > Yes, LLVM's versions of those files are llvm-ar, llvm-as, and llvm-nm, bu= t you can just make simlinks to as, as and nm I was able to build a few things with that toolchain without GNU binutils, haven't found any deal-breaking limitations so far... > Best, > --arw > > -- > A. Wilcox (awilfox) > Project Lead, Ad=C3=A9lie Linux > https://www.adelielinux.org > > --000000000000747a340581cb691a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable



On Wed, Feb 13, 2019= at 1:13 PM A. Wilcox <awilfo= x@adelielinux.org> wrote:
On 02/13/19 12:59, Croepha wrote:
>
> I spent some time figuring out how to get Clang and related tools to > build against musl starting from a Glib system.=C2=A0 The result is a<= br> > GNU-less (no libgcc, libstdc++, and GNU LD, AR...) toolchain. I figure= d
> I'd share in the hopes that someone else may find it useful...
>
> Note:=C2=A0 Clang and friends works as expected, but I couldn't ge= t 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
>
>

Beginning of document:

# LLVM seems to work great on Musl, there only seems some build errors
# when trying to build the sanitizers.=C2=A0 So sanitizers have been enable= d.

You probably mean "disabled".

Yes!, thanks for pointing that out, fixed now
=C2=A0
Thanks for this.=C2=A0 Does LLVM have things like ar(1), as(1), nm(1) and friends as well?=C2=A0 So you really don't need binutils?

Yes, LLVM's versions of those files are llvm-ar, = llvm-as, and llvm-nm, but you can just make simlinks to as, as and nm
=

I was able to build a few things with that toolchain wi= thout GNU binutils, haven't found any deal-breaking limitations so far.= ..

=C2=A0
Best,
--arw

--
A. Wilcox (awilfox)
Project Lead, Ad=C3=A9lie Linux
https://www.adelielinux.org

--000000000000747a340581cb691a--