Posts: 3
Joined: Wed Aug 01, 2012 8:36 pm

Clang compiler on Raspbian

Wed Aug 01, 2012 8:43 pm

I want to use the clang C++ compiler on Raspbian. This is blocked by a bug preventing compiled programs from linking. The bug is either in clang, or the raspbian compilation thereof, but probably clang ( and ).

I can install the 3.0 release via apt-get install clang llvm
This release is somewhat old; 3.1 is released, and 3.2 is in development.
I want to be able to run 3.1 or the latest development version - but I want to avoid a long, on device build process of llvm + clang from source. I don't have easy access to a cross-compiler to build clang/llvm.

Question: is there a pre-built 3.1 debian/rasbpian package, possibly in an unstable or testing package collection? If so, how would I install that?

Posts: 6
Joined: Mon Aug 06, 2012 7:53 pm

Re: Clang compiler on Raspbian

Mon Aug 06, 2012 8:24 pm

I just googled for the best c++11 supporting compiler and found clang listed with perhaps the most implemented features at

So +1, I'd also be interested to get clang 3.1 on the raspberry pi.

Problem is, I'm newbie to both C++11 and Linux, so I'm not much of a help perhaps.

Nevertheless I'll give it a try and let you know how far I get.

Bye, Olaf.

Posts: 12
Joined: Wed Dec 19, 2012 12:38 am

Re: Clang compiler on Raspbian

Tue Dec 25, 2012 2:38 am

Have you gotten anywhere with clang? Have you tried 3.2? I want to use LLVM in a language I'm writing, and I'd like it to execute on my Raspberry Pi, so I'm going to try to build that. It would be awesome to have clang on there, too.

There's also this: ... ild-on-arm

Return to “Raspbian”