I don't know how it happened, but recent Ubuntu builds have broken -dev packages, which contain same libraries as non-dev packages.
dpkg: error processing archive /var/cache/apt/archives/libllvm3.5_1%3a3.5~svn207603-1~exp1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/llvm-3.5/lib/libLLVM-3.5.so', which is also in package llvm-3.5-dev 1:3.5~svn207603-1~exp1
dpkg: error processing archive /var/cache/apt/archives/clang-3.5_1%3a3.5~svn207603-1~exp1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/llvm-3.5/lib/clang/3.5.0/lib/linux/libclang_rt.tsan-x86_64.a', which is also in package libclang-common-3.5-dev 1:3.5~svn207339-1~exp1
I don't know where to file a bug or who's maintainer, but it would be great to fix that.
I am sorry, now there is an error with libclang vs libclang-dev:
dpkg: error processing archive /var/cache/apt/archives/libclang-3.5-dev_1%3a3.5~svn207969-1~exp1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/llvm-3.5/lib/libclang.so.1', which is also in package libclang1-3.5:amd64 1:3.5~svn207930-1~exp1
It seems that latest libllvm3.5 packages are built with too recent libstdc++ version which makes impossible to install any of llvm Ubuntu builds on <13.10
The following packages have unmet dependencies:
libllvm3.5 : Depends: libstdc++6 (>= 4.8) but 4.7.2-2ubuntu1 is to be installed
Can you please have a look? We still have guys have that haven't upgrade to latest LTS.
We have instructions there for building a modern version of gcc. It’s really easy to build it these days. Install into something local like $HOME/gcc/install and then pass appropriate -L and -Wl,-rpath flags to the LLVM build. I do this on 12.04 and it works fine.
I think we can narrow it down to the 12.10 which is used by one of the professors here @ my univ. There are no 12.10 gcc-4.8 builds unfortunately, take a look:
Guess this has to be noted somewhere, or maybe Ubuntu builds should stick to only supported Ubuntu versions, which makes 12.04, 13.10 & 14.04 I believe. Anyway we gonna upgrade all our workstations to 14.04 soon.