Hello community,

here is the log from the commit of package llvm5 for openSUSE:Factory checked 
in at 2018-04-17 11:15:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/llvm5 (Old)
 and      /work/SRC/openSUSE:Factory/.llvm5.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "llvm5"

Tue Apr 17 11:15:56 2018 rev:8 rq:595686 version:5.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/llvm5/llvm5.changes      2018-03-26 
12:01:25.194373524 +0200
+++ /work/SRC/openSUSE:Factory/.llvm5.new/llvm5.changes 2018-04-17 
11:16:00.966634836 +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:
------------------
++++++ llvm5.spec ++++++
--- /var/tmp/diff_new_pack.jzWEs1/_old  2018-04-17 11:16:02.982540316 +0200
+++ /var/tmp/diff_new_pack.jzWEs1/_new  2018-04-17 11:16:02.986540128 +0200
@@ -95,6 +95,7 @@
 Patch14:        llvm-do-not-install-static-libraries.patch
 Patch15:        opt-viewer-Do-not-require-python-2.patch
 Patch16:        n_clang_allow_BUILD_SHARED_LIBRARY.patch
+Patch17:        llvm-build-tests-with-rtti.patch
 BuildRequires:  binutils-devel >= 2.21.90
 BuildRequires:  binutils-gold
 BuildRequires:  cmake
@@ -502,6 +503,7 @@
 %patch14 -p1
 %patch15 -p1
 %patch16 -p1
+%patch17 -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})

Reply via email to