Created attachment 965490 [details] Patch Clang's ToolChains.cpp in tools/clang/lib/Driver tries to detect the distribution it runs on. Current code detects RHEL6 nut not CentOS 6, RHEL7 isn't tested for at all. Also, Scientific Linux is never tested for. This leads to the omission of the following flags at link time on C6/SL6 and on EL7 in general: --build-id --hash-style=gnu --no-add-needed These flags are handed to the linker on said systems by both the system compiler and all devtoolset compilers. Clang wants to reproduce this bevahiour but fails because of insufficient distribution detection. Attached patch (for both epel6 and 7) fixes this.
Corrected patch: - Take the system compiler as reference: Only el7 emmits --no-add-needed - Don't treat /etc/lsb-release as Ubuntu only, el6 has this file too.
Created attachment 966034 [details] Corrected Patch
llvm-3.4.2-6.el7 has been submitted as an update for Fedora EPEL 7. https://admin.fedoraproject.org/updates/llvm-3.4.2-6.el7
Package llvm-3.4.2-6.el7: * should fix your issue, * was pushed to the Fedora EPEL 7 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing llvm-3.4.2-6.el7' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-0561/llvm-3.4.2-6.el7 then log in and leave karma (feedback).
llvm-3.4.2-6.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.