Hello community, here is the log from the commit of package llvm4 for openSUSE:Factory checked in at 2018-06-20 15:29:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/llvm4 (Old) and /work/SRC/openSUSE:Factory/.llvm4.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "llvm4" Wed Jun 20 15:29:27 2018 rev:19 rq:617496 version:4.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/llvm4/llvm4.changes 2018-05-19 15:42:45.513985990 +0200 +++ /work/SRC/openSUSE:Factory/.llvm4.new/llvm4.changes 2018-06-20 15:30:56.394984073 +0200 @@ -1,0 +2,6 @@ +Mon Jun 18 11:13:00 UTC 2018 - [email protected] + +- llvm-build-tests-with-rtti.patch + * Fixes build failure with gcc 8. (bnc#1087136) + +------------------------------------------------------------------- New: ---- llvm-build-tests-with-rtti.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ llvm4.spec ++++++ --- /var/tmp/diff_new_pack.bU6f4Q/_old 2018-06-20 15:31:00.114849113 +0200 +++ /var/tmp/diff_new_pack.bU6f4Q/_new 2018-06-20 15:31:00.118848968 +0200 @@ -102,6 +102,7 @@ Patch24: libcxx-fix-python3-syntax-error.patch Patch25: n_clang_allow_BUILD_SHARED_LIBRARY.patch Patch26: libcxx.glibc2.27.diff +Patch27: llvm-build-tests-with-rtti.patch BuildRequires: binutils-devel >= 2.21.90 BuildRequires: binutils-gold BuildRequires: cmake @@ -536,6 +537,7 @@ %patch22 -p1 %patch23 -p1 %patch25 -p1 +%patch27 -p1 pushd cfe-%{version}.src %patch20 -p1 ++++++ llvm-build-tests-with-rtti.patch ++++++ References: bnc#1087136 LLVM is built with RTTI, so the tests should too. Mixing the two can lead to crashes. Index: llvm-6.0.0.src/cmake/modules/AddLLVM.cmake =================================================================== --- llvm-6.0.0.src.orig/cmake/modules/AddLLVM.cmake +++ llvm-6.0.0.src/cmake/modules/AddLLVM.cmake @@ -1093,8 +1093,6 @@ function(add_unittest test_suite test_na list(APPEND LLVM_COMPILE_FLAGS "-Wno-gnu-zero-variadic-macro-arguments") endif() - set(LLVM_REQUIRES_RTTI OFF) - list(APPEND LLVM_LINK_COMPONENTS Support) # gtest needs it for raw_ostream add_llvm_executable(${test_name} IGNORE_EXTERNALIZE_DEBUGINFO NO_INSTALL_RPATH ${ARGN}) set(outdir ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR})
