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 (http://llvm.org/bugs/show_bug.cgi?id=13506 and https://bugs.launchpad.net/raspbian/+bug/1031890 ).
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?
Clang compiler on Raspbian
3 posts
- Posts: 1
- Joined: Wed Aug 01, 2012 8:36 pm
I just googled for the best c++11 supporting compiler and found clang listed with perhaps the most implemented features at https://wiki.apache.org/stdcxx/C%2B%2B0xCompilerSupport.
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.
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: 6
- Joined: Mon Aug 06, 2012 7:53 pm
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: http://llvm.org/docs/HowToBuildOnARM.html#how-to-build-on-arm
There's also this: http://llvm.org/docs/HowToBuildOnARM.html#how-to-build-on-arm
- Posts: 2
- Joined: Wed Dec 19, 2012 12:38 am