sys-devel/llvm: Temporarily refuse to build w/ GCC-7 due to hangs
authorMichał Górny <mgorny@gentoo.org>
Sat, 10 Mar 2018 14:04:52 +0000 (15:04 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 10 Mar 2018 14:05:46 +0000 (15:05 +0100)
Bug: https://bugs.gentoo.org/649880

sys-devel/llvm/llvm-6.0.0.ebuild

index e474af58c92d7cb6216d52c0828f28cc4e9f3c80..f38524606bb8da7e2a4195d2d0458564940b4817 100644 (file)
@@ -75,6 +75,15 @@ S=${WORKDIR}/${P/_/}.src
 # least intrusive of all
 CMAKE_BUILD_TYPE=RelWithDebInfo
 
+pkg_pretend() {
+       if tc-is-gcc && [[ $(gcc-major-version) -ge 7 ]]; then
+               eerror "GCC 7 is known to cause mis-compilation that causes the build to hang."
+               eerror "Please use an older version to build LLVM until a good solution is found."
+               eerror "Bug report: https://bugs.gentoo.org/649880"
+               die "GCC-7+ is not supported"
+       fi
+}
+
 src_prepare() {
        # Fix llvm-config for shared linking and sane flags
        # https://bugs.gentoo.org/show_bug.cgi?id=565358