Clang Compiler support in Cent OS 5.8

Issues related to software problems.
Post Reply
lyf4sci
Posts: 7
Joined: 2014/12/23 04:22:16

Clang Compiler support in Cent OS 5.8

Post by lyf4sci » 2015/07/07 10:28:52

Hi Experts,

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

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Clang Compiler support in Cent OS 5.8

Post by TrevorH » 2015/07/07 11:41:57

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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

chemal
Posts: 776
Joined: 2013/12/08 19:44:49

Re: Clang Compiler support in Cent OS 5.8

Post by chemal » 2015/07/07 16:48:38

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.

lyf4sci
Posts: 7
Joined: 2014/12/23 04:22:16

Re: Clang Compiler support in Cent OS 5.8

Post by lyf4sci » 2015/07/08 09:59:16

Hi Chemal,

How sure in case of Cent oS 5.11 ?

chemal
Posts: 776
Joined: 2013/12/08 19:44:49

Re: Clang Compiler support in Cent OS 5.8

Post by chemal » 2015/07/08 21:59:03

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.

User avatar
ryegöng
Posts: 1
Joined: 2015/08/17 16:37:19

Re: Clang Compiler support in Cent OS 5.8

Post by ryegöng » 2015/08/17 16:43:25

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."
Ryegöng

chemal
Posts: 776
Joined: 2013/12/08 19:44:49

Re: Clang Compiler support in Cent OS 5.8

Post by chemal » 2015/08/17 23:41:07

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.

scaprile
Posts: 2
Joined: 2016/06/27 18:08:26

Re: Clang Compiler support in Cent OS 5.8

Post by scaprile » 2016/06/27 18:34:18

@chemal
Hi, perhaps it is too late, but perhaps not. Can I have those binaries ?
Cheers.

chemal
Posts: 776
Joined: 2013/12/08 19:44:49

Re: Clang Compiler support in Cent OS 5.8

Post by chemal » 2016/06/29 14:06:13

As written above: If you give me an upload address, ...

chemal
Posts: 776
Joined: 2013/12/08 19:44:49

Re: Clang Compiler support in Cent OS 5.8

Post by chemal » 2016/07/19 17:47:30

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.

Post Reply