<div dir="ltr">Hell, Brian, I found a way to install Gcc 5.3 on CentOS 6 without the need to building it from source. You may try it on CentOS 6.0<div>That's makes clang/llvm won't depends on the newer version of glibc 2.14</div><div>The instruction:</div><div><br></div><div><div>vim /etc/yum.repos.d/llvm.repo</div></div><div><br></div><div>The content:</div><div>```</div><div><div>[sclo]</div><div>name=SCLO</div><div>baseurl=<a href="http://mirror.centos.org/centos/6/sclo/x86_64/rh/">http://mirror.centos.org/centos/6/sclo/x86_64/rh/</a></div><div>gpgcheck=0</div><div>enabled=1<br></div></div><div>```</div><div>Installation step:</div><div>```</div><div><div>yum clean all</div></div><div><div>yum list</div></div><div>echo y | yum install devtoolset-4<br></div><div>```</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 29, 2016 at 1:15 AM, Brian Cain <span dir="ltr"><<a href="mailto:brian.cain@gmail.com" target="_blank">brian.cain@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"><div class="gmail_extra"><div class="gmail_quote"><span class="">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></span><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><span class="HOEnZb"><font color="#888888"><div><br></div><div>-Brian</div></font></span></div>
</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"> 此致<br>礼<br>罗勇刚<br>Yours<br> sincerely,<br>Yonggang Luo<br></div>
</div>