This project provides packaged binaries containing:
- Clang and Clang libraries for OS X and Linux (x86 and x86-64 distributions)
- GCC libraries (e.g. libstdc++) for Linux only
The packages provide a C++11 toolchain, and they provide the Clang libraries needed for the SourceWeb indexer.
Binaries from the current version 1 release were built on x86 and x86-64 Ubuntu 10.04 and OS X 10.8. The Linux binaries should work on most currently supported Linux distributions, which have libc and libstdc++ libraries no older than those in Ubuntu 10.04. This includes:
- Debian 6.0.
- Ubuntu 10.04 and up.
- Fedora 16 and up.
- OpenSUSE 12.1 and up.
- CentOS 6.x.
The packages will not work on CentOS 5.x, which uses libstdc++-4.2.
On OS X, the Clang libraries were built for libc++, not libstdc++. They should work on OS 10.8, might work on 10.7, but will not work with 10.6, which does not have libc++.
|Package||x86 Linux||x86-64 Linux||x86-64 OS X|
Linux usage note
On Linux, extract a clang package and a gcc-libs package into the same directory.
--strip-components=1 to tar is helpful for doing this. e.g.:
mkdir clang-3.2-gcc-libs-4.6.3-1 cd clang-3.2-gcc-libs-4.6.3-1 tar --strip-components=1 -xf ../clang-3.2-1-x86-linux.tar.bz2 tar --strip-components=1 -xf ../gcc-libs-4.6.3-1-x86-linux.tar.bz2
Note that at run-time, the binaries produced by this package may need a
libstdc++ newer than the one on the host system. Either use
to point at the packaged libstdc++, or compile with
-Wl,-R<path> to embed an
RPATH into the binary.