<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jun 28, 2016 at 11:50 AM, 罗勇刚(Yonggang Luo) <span dir="ltr"><<a href="mailto:luoyonggang@gmail.com" target="_blank">luoyonggang@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">So CentOS before 6.7 is not an option after all?<div>Is that possible to use clang on CentOS 6.6 and before?</div><div><br></div></div></blockquote><div><br></div><div>Not with these binaries, unless you can update your libc/libstdc++.  In the general sense -- yes, it's possible if you build from source.  There's a couple of potential approaches: build against libc++, build against newer libstdc++.  If you're more adventurous you could also try building with ellcc.  That one requires patches but will yield a statically linked binary.</div><div><br></div><div>I built clang trunk/tip a few weeks ago on CentOS 6.0.  But I first built the gcc6 suite, then used it to build clang.  I believe clang 3.4.2 is the latest version that supports the older libstdc++.  I ran into challenges with using clang so I stuck with gcc6.  The resulting binaries depend on the gcc6 libraries so I can't really use this procedure to make a new official release for centos.  If it's helpful I can publish the steps I used, but really just followed the build instructions.</div><div><br></div><div>-Brian</div></div>
</div></div>