<div dir="auto"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Message: 2<br>
Date: Tue, <br>
Message: 3<br>
Date: Tue, 24 Sep 2019 19:08:49 +0200<br>
From: Fabiano Sidler via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" rel="noreferrer">llvm-dev@lists.llvm.org</a>><br>
To: <a href="mailto:llvm-dev@lists.llvm.org" target="_blank" rel="noreferrer">llvm-dev@lists.llvm.org</a><br>
Subject: Re: [llvm-dev] Building LLVM with LLVM with no dependence on<br>
        GCC<br>
Message-ID: <20190924170849.haiudl4vsibcppho@fria><br>
Content-Type: text/plain; charset=utf-8<br>
<br>
Hello? Anyone here with step-by-step instructions for getting a GCC-free<br>
(and possibly glibc-free) LLVM on Ubuntu?<br>
<br>
Greetings,<br>
Fabiano<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Glibc free on a glibc host is difficult. I periodically try this but am yet to be totally successful. You can look at Alpine Linux for a working example where everything is built against musl.</div><div dir="auto"><br></div><div dir="auto">The hazard I am blocked on is that clang uses third party code. Readline, zlib, probably others I've forgotten. Setting the cmake flags to build without them didn't work, so I think one has to build these libraries with the musl targeting toolchain and then build clang against them.</div><div dir="auto"><br></div><div dir="auto">Life is simpler if libcxx/cxxabi/unwind are all combined into a single archive. The cmake options to do that used to be broken, maybe that works in the new monorepo.</div><div dir="auto"><br></div><div dir="auto">I'd be interested to hear if you succeed.</div><div dir="auto"><br></div><div dir="auto"><br></div></div>