Hello community, here is the log from the commit of package llvm6 for openSUSE:Factory checked in at 2018-04-17 11:12:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/llvm6 (Old) and /work/SRC/openSUSE:Factory/.llvm6.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "llvm6" Tue Apr 17 11:12:49 2018 rev:3 rq:595685 version:6.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/llvm6/llvm6.changes 2018-04-07 20:53:31.566058542 +0200 +++ /work/SRC/openSUSE:Factory/.llvm6.new/llvm6.changes 2018-04-17 11:12:59.091163887 +0200 @@ -1,0 +2,6 @@ +Wed Apr 11 09:18:29 UTC 2018 - m...@suse.com + +- llvm-build-tests-with-rtti.patch + * Fixes build failure with gcc 8. (bnc#1087136) + +------------------------------------------------------------------- New: ---- llvm-build-tests-with-rtti.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ llvm6.spec ++++++ --- /var/tmp/diff_new_pack.U7tLqt/_old 2018-04-17 11:13:02.183018871 +0200 +++ /var/tmp/diff_new_pack.U7tLqt/_new 2018-04-17 11:13:02.187018683 +0200 @@ -97,6 +97,7 @@ Patch15: opt-viewer-Do-not-require-python-2.patch Patch16: n_clang_allow_BUILD_SHARED_LIBRARY.patch Patch17: polly-cmake-Trust-pkg-config-in-FindJsoncpp.patch +Patch18: llvm-build-tests-with-rtti.patch BuildRequires: binutils-devel >= 2.21.90 BuildRequires: binutils-gold BuildRequires: cmake @@ -514,6 +515,7 @@ %patch13 -p1 %patch14 -p1 %patch15 -p1 +%patch18 -p1 pushd cfe-%{version}.src %patch1 -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})