Some additional information after mail discussion with Sylvestre. Here is an example log of the problem when rebuilding libclc package with llvm 3.5, after adding libedit-dev to libclc as a workaround but still with missing libz-dev: https://launchpadlibrarian.net/182793059/buildlog_ubuntu-utopic-i386.libclc_0~ <https://launchpadlibrarian.net/182793059/buildlog_ubuntu-utopic-i386.libclc_0~git20140820.1830.7bd485~gd~u_FAILEDTOBUILD.txt.gz> git20140820.1830.7bd485 <https://launchpadlibrarian.net/182793059/buildlog_ubuntu-utopic-i386.libclc_0~git20140820.1830.7bd485~gd~u_FAILEDTOBUILD.txt.gz> ~ <https://launchpadlibrarian.net/182793059/buildlog_ubuntu-utopic-i386.libclc_0~git20140820.1830.7bd485~gd~u_FAILEDTOBUILD.txt.gz> gd <https://launchpadlibrarian.net/182793059/buildlog_ubuntu-utopic-i386.libclc_0~git20140820.1830.7bd485~gd~u_FAILEDTOBUILD.txt.gz> ~ <https://launchpadlibrarian.net/182793059/buildlog_ubuntu-utopic-i386.libclc_0~git20140820.1830.7bd485~gd~u_FAILEDTOBUILD.txt.gz> u_FAILEDTOBUILD.txt.gz <https://launchpadlibrarian.net/182793059/buildlog_ubuntu-utopic-i386.libclc_0~git20140820.1830.7bd485~gd~u_FAILEDTOBUILD.txt.gz>
Actually I am not sure if the two dependencies have to be added to llvm-3.5-dev or to a different binary package. For example mesa builds fine with current llvm-3.5-dev, so I think they should be added to clang-3.5, which is used by libclc but not mesa. I added them to libclc just as a workaround to be able to build it.