Hello community, here is the log from the commit of package autofdo for openSUSE:Factory checked in at 2020-12-03 18:43:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/autofdo (Old) and /work/SRC/openSUSE:Factory/.autofdo.new.5913 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "autofdo" Thu Dec 3 18:43:04 2020 rev:7 rq:852858 version:0.18 Changes: -------- --- /work/SRC/openSUSE:Factory/autofdo/autofdo.changes 2020-12-02 13:59:14.617865770 +0100 +++ /work/SRC/openSUSE:Factory/.autofdo.new.5913/autofdo.changes 2020-12-03 18:44:02.422261645 +0100 @@ -1,0 +2,5 @@ +Thu Dec 3 07:55:20 UTC 2020 - Martin Liška <[email protected]> + +- Add llvm11-fix.patch in order to fix build with LLVM11. + +------------------------------------------------------------------- New: ---- llvm11-fix.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ autofdo.spec ++++++ --- /var/tmp/diff_new_pack.d93faO/_old 2020-12-03 18:44:03.234262718 +0100 +++ /var/tmp/diff_new_pack.d93faO/_new 2020-12-03 18:44:03.238262723 +0100 @@ -23,14 +23,15 @@ License: Apache-2.0 URL: https://github.com/google/autofdo Source: https://github.com/google/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +Patch0: llvm11-fix.patch BuildRequires: automake BuildRequires: gcc-c++ BuildRequires: libopenssl-devel BuildRequires: libunwind-devel BuildRequires: zlib-devel %if 0%{?suse_version} > 1320 -BuildRequires: clang10-devel -BuildRequires: llvm10-devel +BuildRequires: clang-devel +BuildRequires: llvm-devel %endif %description @@ -44,7 +45,7 @@ LLVM and vice-versa. %prep -%setup -q +%autosetup -p1 %build autoreconf -fiv ++++++ llvm11-fix.patch ++++++ From a6471bffb0ce44524854b4237a3bcd671ad31674 Mon Sep 17 00:00:00 2001 From: Ruijie Fang <[email protected]> Date: Sun, 21 Jun 2020 00:04:42 -0400 Subject: [PATCH] Fix build error for LLVM11 --- llvm_profile_writer.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm_profile_writer.cc b/llvm_profile_writer.cc index 1431e9f..8845cab 100644 --- a/llvm_profile_writer.cc +++ b/llvm_profile_writer.cc @@ -94,7 +94,8 @@ void LLVMProfileBuilder::VisitCallsite(const Callsite &callsite) { inline_stack_.pop_back(); } auto &caller_profile = *(inline_stack_.back()); - auto CalleeName = GetNameRef(Symbol::Name(callsite.second)); + auto CalleeName = + std::__cxx11::basic_string<char>(GetNameRef(Symbol::Name(callsite.second)).str()); auto &callee_profile = caller_profile.functionSamplesAt(llvm::sampleprof::LineLocation( line, discriminator))[CalleeName]; _______________________________________________ openSUSE Commits mailing list -- [email protected] To unsubscribe, email [email protected] List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/[email protected]
