Page 1 of 1

Clang Compiler support in Cent OS 5.8

Posted: 2015/07/07 10:28:52
by lyf4sci
Hi Experts,

Is there Clang compiler support available along with GCC in the Cent OS 5.8 ?

Re: Clang Compiler support in Cent OS 5.8

Posted: 2015/07/07 11:41:57
by TrevorH
CentOS 5.8 itself is old, unsupported and needs updating. The current version is 5.11 and is a simple yum update away. There are numerous security vulnerabilities fixed between the two and no-one should run 5.8.

I don't see clang in any well known yum repository for CentOS 5.

Re: Clang Compiler support in Cent OS 5.8

Posted: 2015/07/07 16:48:38
by chemal
I have some locally produced el5 rpms for llvm and clang 3.4.2 over here. They require devtoolset-2 (from CERN) and python26 (epel) to be installed. No idea if they will work with 5.8. Probably yes, but maybe no.

Re: Clang Compiler support in Cent OS 5.8

Posted: 2015/07/08 09:59:16
by lyf4sci
Hi Chemal,

How sure in case of Cent oS 5.11 ?

Re: Clang Compiler support in Cent OS 5.8

Posted: 2015/07/08 21:59:03
by chemal
As I said, I have locally built el5 rpms for llvm and clang 3.4.2. They have been build on 5.11, they are used on 5.11, and they have the above-mentioned dependencies. The source rpm is derived from epel (minus the sanitizers and lldb, which don't build/work, and ocaml bindings which I don't need). Otherwise, I'm am not aware of any official repo that has llvm/clang rpms for el5. If you're interested I can share mine with you. No support, no guaranties beyond works fine for me, no yum repo, just plain rpms.

Re: Clang Compiler support in Cent OS 5.8

Posted: 2015/08/17 16:43:25
by ryegöng
Hey chemal, care to share you RPM SPEC file that use used to build CLANG for centos 5? I'm attempting a similar exercise and am getting some linker errors that may be why disabled "the sanitizers and lldb."

Re: Clang Compiler support in Cent OS 5.8

Posted: 2015/08/17 23:41:07
by chemal
The spec file alone will not be enough, there are also additional patches and other stuff I already forgot. If you give me an upload address, I'll send you the complete source rpm and (if you like) the rpms, too.

Re: Clang Compiler support in Cent OS 5.8

Posted: 2016/06/27 18:34:18
by scaprile
@chemal
Hi, perhaps it is too late, but perhaps not. Can I have those binaries ?
Cheers.

Re: Clang Compiler support in Cent OS 5.8

Posted: 2016/06/29 14:06:13
by chemal
As written above: If you give me an upload address, ...

Re: Clang Compiler support in Cent OS 5.8

Posted: 2016/07/19 17:47:30
by chemal
It has come to my attention that there is a copr at

https://copr.fedorainfracloud.org/coprs ... vm_381_el5.

You can try that to pimp your venerable el5 system.