<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Apr 8, 2014, at 9:59, Derrick Johnson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I’m trying to create a non-gcc toolchain (i.e., no libstdc++ or gcc involved).  I began here: <a href="http://clang.llvm.org/get_started.html">http://clang.llvm.org/get_started.html</a><div><br></div><div>I successfully built Clang with these steps.  Next up is libcxx, so I went here: <a href="http://libcxx.llvm.org/">http://libcxx.llvm.org</a></div><div><br></div><div>It seems that if I want to build a non-gcc toolchain, I should follow the directions listed here:<br><h2 style="padding-top: 0.5em; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Arial, Verdana, Helvetica, sans-serif; background-color: rgb(255, 255, 255); position: static; z-index: auto; "><font color="#009051">"Build on Linux using CMake and libc++abi.</font></h2><div><font color="#009051"><span style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', Arial, Verdana, Helvetica, sans-serif; font-size: small; line-height: 19px; background-color: rgb(255, 255, 255);">You will need to keep the source tree of </span><a href="http://libcxxabi.llvm.org/" style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', Arial, Verdana, Helvetica, sans-serif; font-size: small; line-height: 19px; background-color: rgb(255, 255, 255);">libc++abi</a><span style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', Arial, Verdana, Helvetica, sans-serif; font-size: small; line-height: 19px; background-color: rgb(255, 255, 255);"> available on your build machine <u>and your copy of the libc++abi shared library</u> must be placed where your linker will find it."</span></font></div><div><span style="color: rgb(34, 34, 34); font-family: 'Lucida Grande', 'Lucida Sans Unicode', Arial, Verdana, Helvetica, sans-serif; font-size: small; line-height: 19px; background-color: rgb(255, 255, 255);"><br></span></div><div><span style="color: rgb(34, 34, 34); font-family: 'Lucida Grande', 'Lucida Sans Unicode', Arial, Verdana, Helvetica, sans-serif; font-size: small; line-height: 19px; background-color: rgb(255, 255, 255);">OK, so I went to the libcxxabi page here: </span><a href="http://libcxxabi.llvm.org/">http://libcxxabi.llvm.org</a></div><div><br></div><div><font color="#222222" face="Lucida Grande, Lucida Sans Unicode, Arial, Verdana, Helvetica, sans-serif" size="2"><span style="line-height: 19px;">I see no </span></font>instructions how to build libcxxabi… There does seem to be a “buildit” inside of libcxxabi/lib, but what envvars / parameters should I feed it?  For example, do I need to set the triple?</div></div></div></blockquote><div><br></div><div>Use libcxxrt. While libc++abi is theoretically possible, it's really aimed at MacOS which has a separate libunwind, which means you would need to find and build a libunwind for Linux too.</div><div><br></div><div>libcxxrt is easier. Also, I recently submitted a patch that should make usage of the resulting libc++ easier. You might want to grab it (mail thread is called "Fixing common linking issues in Linux" or something like that) and apply it to your libc++ tree.</div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><div><br></div><div>Again, I have already built Clang 3.5 successfully using GCC, so I’m wondering also if I need to build libcxxabi and/or libcxx using Clang or GCC?</div></div></div></blockquote></div><br><div>You should build these things with Clang. In theory it shouldn't matter, but I recommend Clang, because you will link them with your Clang-built actual code.</div><div><br></div><div>Sebastian</div><div><br></div></body></html>