commit llvm10 for openSUSE:Factory

2020-11-02 Thread root
Hello community,

here is the log from the commit of package llvm10 for openSUSE:Factory checked 
in at 2020-11-02 09:41:04

Comparing /work/SRC/openSUSE:Factory/llvm10 (Old)
 and  /work/SRC/openSUSE:Factory/.llvm10.new.3463 (New)


Package is "llvm10"

Mon Nov  2 09:41:04 2020 rev:7 rq:843889 version:10.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm10/llvm10.changes2020-10-03 
18:53:24.437337225 +0200
+++ /work/SRC/openSUSE:Factory/.llvm10.new.3463/llvm10.changes  2020-11-02 
09:41:26.905670667 +0100
@@ -1,0 +2,8 @@
+Mon Oct 19 21:57:00 UTC 2020 - Aaron Puchert 
+
+- Don't build clang-tools, libc++ and python3-clang anymore,
+  because they come from llvm11 now (boo#1168935).
+- Remove version requirement from clang-tools dependency.
+- Give riscv64 jobs a bit more disk space.
+
+---



Other differences:
--
++ llvm10.spec ++
--- /var/tmp/diff_new_pack.mji3Wl/_old  2020-11-02 09:41:28.041671757 +0100
+++ /var/tmp/diff_new_pack.mji3Wl/_new  2020-11-02 09:41:28.045671761 +0100
@@ -25,11 +25,7 @@
 %define _uaver  1001
 %define _socxx  1
 
-%ifarch x86_64 aarch64 %arm
-%bcond_without libcxx
-%else
 %bcond_with libcxx
-%endif
 
 %ifarch aarch64 ppc64 ppc64le %{ix86} x86_64
 %bcond_without openmp
@@ -64,7 +60,7 @@
 %bcond_with ffi
 %bcond_with oprofile
 %bcond_with valgrind
-%bcond_without clang_scripts
+%bcond_with clang_scripts
 %bcond_without polly
 %bcond_without lld
 
@@ -286,7 +282,10 @@
 Group:  Development/Libraries/C and C++
 Requires:   %{name}-devel = %{version}
 Requires:   clang%{_sonum} = %{version}
-Requires:   clang-tools = %{version}
+# This is just a pro-forma requirement so that CMake doesn't complain about
+# missing binaries. We don't care if it's the same version, and we have to
+# allow different versions to keep older versions of clangX-devel installable.
+Requires:   clang-tools
 Conflicts:  cmake(Clang)
 
 %description -n clang%{_sonum}-devel

++ _constraints ++
--- /var/tmp/diff_new_pack.mji3Wl/_old  2020-11-02 09:41:28.081671796 +0100
+++ /var/tmp/diff_new_pack.mji3Wl/_new  2020-11-02 09:41:28.081671796 +0100
@@ -57,7 +57,7 @@
 
 
   
-50
+52
   
   
 1




commit llvm10 for openSUSE:Factory

2020-10-03 Thread root
Hello community,

here is the log from the commit of package llvm10 for openSUSE:Factory checked 
in at 2020-10-03 18:53:13

Comparing /work/SRC/openSUSE:Factory/llvm10 (Old)
 and  /work/SRC/openSUSE:Factory/.llvm10.new.4249 (New)


Package is "llvm10"

Sat Oct  3 18:53:13 2020 rev:6 rq:838295 version:10.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm10/llvm10.changes2020-08-03 
14:12:18.084313494 +0200
+++ /work/SRC/openSUSE:Factory/.llvm10.new.4249/llvm10.changes  2020-10-03 
18:53:24.437337225 +0200
@@ -1,0 +2,6 @@
+Mon Sep 28 07:04:16 UTC 2020 - Tom de Vries 
+
+- Fix dsymutil crash on ELF file. (bsc#1176964)
+  * llvm-fix-a-copy-and-paste-error-that-would-cause-a-crash.patch
+
+---

New:

  llvm-fix-a-copy-and-paste-error-that-would-cause-a-crash.patch



Other differences:
--
++ llvm10.spec ++
--- /var/tmp/diff_new_pack.TJa0Yc/_old  2020-10-03 18:53:26.825340327 +0200
+++ /var/tmp/diff_new_pack.TJa0Yc/_new  2020-10-03 18:53:26.829340332 +0200
@@ -134,6 +134,8 @@
 Patch26:lld-default-sha1.patch
 # PATCH-FIX-UPSTREAM fix-atomics-test.patch -- Fix Clang test for arches 
without native atomics.
 Patch27:fix-atomics-test.patch
+# PATCH-FIX-UPSTREAM 
llvm-fix-a-copy-and-paste-error-that-would-cause-a-crash.patch -- Fix dsymutil 
crash on ELF file.
+Patch28:llvm-fix-a-copy-and-paste-error-that-would-cause-a-crash.patch
 BuildRequires:  binutils-devel >= 2.21.90
 BuildRequires:  cmake
 BuildRequires:  fdupes
@@ -555,6 +557,7 @@
 %patch22 -p1
 %patch24 -p1
 %patch25 -p1
+%patch28 -p2
 
 pushd clang-%{_version}.src
 %patch2 -p1

++ llvm-fix-a-copy-and-paste-error-that-would-cause-a-crash.patch ++
Fix a copy and paste error that would cause a crash.

Summary: The wrong variable was being checked for an error, which mean a 
llvm::Error went unchecked and crashes dsymutil. Discovered this when trying to 
feed an ELF file to "dsymutil --update" and running into the crash.

Reviewers: aprantl, JDevlieghere

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D75777

---
 llvm/tools/dsymutil/MachODebugMapParser.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/tools/dsymutil/MachODebugMapParser.cpp 
b/llvm/tools/dsymutil/MachODebugMapParser.cpp
index 83703fb13f0a..a9d6c876860c 100644
--- a/llvm/tools/dsymutil/MachODebugMapParser.cpp
+++ b/llvm/tools/dsymutil/MachODebugMapParser.cpp
@@ -383,7 +383,7 @@ ErrorOr>> 
MachODebugMapParser::parse() {
 
   auto Objects = ObjectEntry->getObjectsAs();
   if (!Objects) {
-return errorToErrorCode(ObjectEntry.takeError());
+return errorToErrorCode(Objects.takeError());
   }
 
   std::vector> Results;



commit llvm10 for openSUSE:Factory

2020-08-03 Thread root
Hello community,

here is the log from the commit of package llvm10 for openSUSE:Factory checked 
in at 2020-08-03 14:12:12

Comparing /work/SRC/openSUSE:Factory/llvm10 (Old)
 and  /work/SRC/openSUSE:Factory/.llvm10.new.3592 (New)


Package is "llvm10"

Mon Aug  3 14:12:12 2020 rev:5 rq:823638 version:10.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm10/llvm10.changes2020-07-29 
17:15:05.024291184 +0200
+++ /work/SRC/openSUSE:Factory/.llvm10.new.3592/llvm10.changes  2020-08-03 
14:12:18.084313494 +0200
@@ -1,0 +2,5 @@
+Thu Jul 30 21:20:08 UTC 2020 - Aaron Puchert 
+
+- Add ld.lld as an alternative for ld. (boo#1174656)
+
+---



Other differences:
--
++ llvm10.spec ++
--- /var/tmp/diff_new_pack.U4hmk9/_old  2020-08-03 14:12:20.664316081 +0200
+++ /var/tmp/diff_new_pack.U4hmk9/_new  2020-08-03 14:12:20.668316085 +0200
@@ -1274,11 +1274,15 @@
--slave %{_bindir}/ld64.lld ld64.lld %{_bindir}/ld64.lld-%{_relver} \
--slave %{_bindir}/lld-link lld-link %{_bindir}/lld-link-%{_relver} \
--slave %{_bindir}/wasm-ld wasm-ld %{_bindir}/wasm-ld-%{_relver}
+%{_sbindir}/update-alternatives --install %{_bindir}/ld ld %{_bindir}/ld.lld 1
 
 %postun -n lld%{_sonum}
 if [ ! -f %{_bindir}/lld-%{_relver} ] ; then
 %{_sbindir}/update-alternatives --remove lld %{_bindir}/lld-%{_relver}
 fi
+if [ ! -f %{_bindir}/lld ] ; then
+%{_sbindir}/update-alternatives --remove ld %{_bindir}/ld.lld
+fi
 %endif
 
 %if %{with lldb}




commit llvm10 for openSUSE:Factory

2020-07-29 Thread root
Hello community,

here is the log from the commit of package llvm10 for openSUSE:Factory checked 
in at 2020-07-29 17:14:24

Comparing /work/SRC/openSUSE:Factory/llvm10 (Old)
 and  /work/SRC/openSUSE:Factory/.llvm10.new.3592 (New)


Package is "llvm10"

Wed Jul 29 17:14:24 2020 rev:4 rq:822551 version:10.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm10/llvm10.changes2020-07-16 
12:08:19.582350420 +0200
+++ /work/SRC/openSUSE:Factory/.llvm10.new.3592/llvm10.changes  2020-07-29 
17:15:05.024291184 +0200
@@ -1,0 +2,22 @@
+Wed Jul 22 21:54:01 UTC 2020 - Aaron Puchert 
+
+- Update to version 10.0.1.
+  * This release contains bug-fixes for the LLVM 10.0.0 release.
+This release is API and ABI compatible with 10.0.0.
+- Rebase llvm-do-not-install-static-libraries.patch.
+- Replace ValueLattice-Add-new-state-for-undef-constants.patch,
+  which landed upstream in a modified version, by
+  restore-llvm10-abi.patch that resets the ABI to our 10.0.0.
+- Rewrite lld-default-sha1.patch to be version-independent.
+- Set flags consistently, so that we don't lose -DNDEBUG on 32-bit
+  architectures. Also we don't need the opt flags twice. This leads
+  to a significant reduction in binary sizes on 32-bit arches.
+- Make it easier to package release candidates.
+- Enable most tests on 32-bit ARM, but not for libcxx.
+- Add fix-atomics-test.patch for architectures where native atomics
+  are not available.
+- Lower build constraints for riscv64 a bit to allow building on
+  more workers.
+- Allow more compile jobs in stage 2.
+
+---
@@ -18,0 +41,6 @@
+  * For details, see the release notes:
+- https://releases.llvm.org/10.0.0/docs/ReleaseNotes.html
+- https://releases.llvm.org/10.0.0/tools/clang/docs/ReleaseNotes.html
+- 
https://releases.llvm.org/10.0.0/tools/clang/tools/extra/docs/ReleaseNotes.html
+- https://releases.llvm.org/10.0.0/projects/libcxx/docs/ReleaseNotes.html
+- https://releases.llvm.org/10.0.0/tools/lld/docs/ReleaseNotes.html

Old:

  ValueLattice-Add-new-state-for-undef-constants.patch
  clang-10.0.0.src.tar.xz
  clang-docs-10.0.0.src.tar.xz
  clang-tools-extra-10.0.0.src.tar.xz
  compiler-rt-10.0.0.src.tar.xz
  libcxx-10.0.0.src.tar.xz
  libcxxabi-10.0.0.src.tar.xz
  lld-10.0.0.src.tar.xz
  lldb-10.0.0.src.tar.xz
  llvm-10.0.0.src.tar.xz
  llvm-docs-10.0.0.src.tar.xz
  openmp-10.0.0.src.tar.xz
  polly-10.0.0.src.tar.xz

New:

  clang-10.0.1.src.tar.xz
  clang-docs-10.0.1.src.tar.xz
  clang-tools-extra-10.0.1.src.tar.xz
  compiler-rt-10.0.1.src.tar.xz
  fix-atomics-test.patch
  libcxx-10.0.1.src.tar.xz
  libcxxabi-10.0.1.src.tar.xz
  lld-10.0.1.src.tar.xz
  lldb-10.0.1.src.tar.xz
  llvm-10.0.1.src.tar.xz
  llvm-docs-10.0.1.src.tar.xz
  openmp-10.0.1.src.tar.xz
  polly-10.0.1.src.tar.xz
  restore-llvm10-abi.patch



Other differences:
--
++ llvm10.spec ++
--- /var/tmp/diff_new_pack.sKFGzU/_old  2020-07-29 17:15:18.200302659 +0200
+++ /var/tmp/diff_new_pack.sKFGzU/_new  2020-07-29 17:15:18.200302659 +0200
@@ -16,11 +16,13 @@
 #
 
 
-%define _relver 10.0.0
+%define _relver 10.0.1
+%define _version %_relver%{?_rc:rc%_rc}
+%define _tagver %_relver%{?_rc:-rc%_rc}
 %define _minor  10.0
 %define _sonum  10
 # Integer version used by update-alternatives
-%define _uaver  1000
+%define _uaver  1001
 %define _socxx  1
 
 %ifarch x86_64 aarch64 %arm
@@ -78,26 +80,26 @@
 fi
 
 Name:   llvm10
-Version:10.0.0
+Version:%_relver%{?_rc:~rc%_rc}
 Release:0
 Summary:Low Level Virtual Machine
 License:Apache-2.0 WITH LLVM-exception OR NCSA
 Group:  Development/Languages/Other
 URL:https://www.llvm.org/
 # NOTE: please see README.packaging in the llvm package for details on how to 
update this package
-Source0:
https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/llvm-%{version}.src.tar.xz
-Source1:
https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-%{version}.src.tar.xz
-Source2:
https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-tools-extra-%{version}.src.tar.xz
-Source3:
https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/compiler-rt-%{version}.src.tar.xz
-Source4:
https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/libcxx-%{version}.src.tar.xz
-Source5:
https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/libcxxabi-%{version}.src.tar.xz
-Source6:
https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/openmp-%{version}.src.tar.xz
-Source7:
https://github.com/llvm/llvm-project/releases

commit llvm10 for openSUSE:Factory

2020-07-16 Thread root
Hello community,

here is the log from the commit of package llvm10 for openSUSE:Factory checked 
in at 2020-07-16 12:07:53

Comparing /work/SRC/openSUSE:Factory/llvm10 (Old)
 and  /work/SRC/openSUSE:Factory/.llvm10.new.3592 (New)


Package is "llvm10"

Thu Jul 16 12:07:53 2020 rev:3 rq:820759 version:10.0.0

Changes:

--- /work/SRC/openSUSE:Factory/llvm10/llvm10.changes2020-06-25 
16:47:00.372889427 +0200
+++ /work/SRC/openSUSE:Factory/.llvm10.new.3592/llvm10.changes  2020-07-16 
12:08:19.582350420 +0200
@@ -1,0 +2,8 @@
+Sun Jul 12 11:49:47 UTC 2020 - Aaron Puchert 
+
+- Factor out computation of the number of jobs into a macro.
+- Choose mem_per_compile_job dependent on build stage, let stage 1
+  on x86_64 use more memory.
+- More generous memory allocation on riscv64.
+
+---



Other differences:
--
++ llvm10.spec ++
--- /var/tmp/diff_new_pack.mVtx7T/_old  2020-07-16 12:08:23.250354128 +0200
+++ /var/tmp/diff_new_pack.mVtx7T/_new  2020-07-16 12:08:23.254354133 +0200
@@ -66,6 +66,17 @@
 %bcond_without polly
 %bcond_without lld
 
+# set_jobs type memory
+# Set max__jobs so that every job of the given type has at least the
+# given amount of memory.
+%define set_jobs() \
+max_%{1}_jobs="%{?jobs:%{jobs}}" \
+if test -n "$max_%{1}_jobs" -a "$max_%{1}_jobs" -gt 1 ; then \
+max_jobs="$(($avail_mem / %2))" \
+test "$max_%{1}_jobs" -gt "$max_jobs" && max_%{1}_jobs="$max_jobs" && 
echo "Warning: Reducing number of %{1} jobs to $max_jobs because of memory 
limits" \
+test "$max_%{1}_jobs" -le 0 && max_%{1}_jobs=1 && echo "Warning: Not 
%{1}ing in parallel at all because of memory limits" \
+fi
+
 Name:   llvm10
 Version:10.0.0
 Release:0
@@ -641,33 +652,29 @@
 TARGETS_TO_BUILD="host;BPF"
 %endif
 
-# do not eat all memory
 mem_per_compile_job=90
 %ifarch i586 ppc armv6hl armv7hl
+# 32-bit arches need less memory than 64-bit arches.
 mem_per_compile_job=60
 %endif
-%ifarch x86_64
-mem_per_compile_job=80
+%ifarch riscv64
+# RISCV needs more because of emulation overhead.
+mem_per_compile_job=100
+%endif
+
+mem_per_link_job=300
+%ifarch riscv64
+# Give RISCV link jobs more memory.
+mem_per_link_job=400
 %endif
 
-max_link_jobs="%{?jobs:%{jobs}}"
-max_compile_jobs="%{?jobs:%{jobs}}"
 echo "Available memory:"
 cat /proc/meminfo
 echo "System limits:"
 ulimit -a
 avail_mem=$(awk '/MemAvailable/ { print $2 }' /proc/meminfo)
-if test -n "$max_link_jobs" -a "$max_link_jobs" -gt 1 ; then
-mem_per_link_job=300
-max_jobs="$(($avail_mem / $mem_per_link_job))"
-test "$max_link_jobs" -gt "$max_jobs" && max_link_jobs="$max_jobs" && echo 
"Warning: Reducing number of link jobs to $max_jobs because of memory limits"
-test "$max_link_jobs" -le 0 && max_link_jobs=1 && echo "Warning: Not 
linking in parallel at all because of memory limits"
-fi
-if test -n "$max_compile_jobs" -a "$max_compile_jobs" -gt 1 ; then
-max_jobs="$(($avail_mem / $mem_per_compile_job))"
-test "$max_compile_jobs" -gt "$max_jobs" && max_compile_jobs="$max_jobs" 
&& echo "Warning: Reducing number of compile jobs to $max_jobs because of 
memory limits"
-test "$max_compile_jobs" -le 0 && max_compile_jobs=1 && echo "Warning: Not 
compiling in parallel at all because of memory limits"
-fi
+%set_jobs link $mem_per_link_job
+%set_jobs compile $mem_per_compile_job
 
 %define __builder ninja
 %define __builddir stage1
@@ -715,6 +722,13 @@
 # This reduces the total amount of disk space used during build. (bnc#1074625)
 find ./stage1 \( -name '*.o' -or -name '*.a' \) -delete
 
+# Clang uses a bit less memory.
+%ifarch x86_64
+mem_per_compile_job=80
+%endif
+
+%set_jobs compile $mem_per_compile_job
+
 %define __builddir build
 export PATH=${PWD}/stage1/bin:$PATH
 export CC=${PWD}/stage1/bin/clang




commit llvm10 for openSUSE:Factory

2020-06-25 Thread root
Hello community,

here is the log from the commit of package llvm10 for openSUSE:Factory checked 
in at 2020-06-25 16:46:38

Comparing /work/SRC/openSUSE:Factory/llvm10 (Old)
 and  /work/SRC/openSUSE:Factory/.llvm10.new.3060 (New)


Package is "llvm10"

Thu Jun 25 16:46:38 2020 rev:2 rq:816546 version:10.0.0

Changes:

--- /work/SRC/openSUSE:Factory/llvm10/llvm10.changes2020-04-07 
10:27:11.462220718 +0200
+++ /work/SRC/openSUSE:Factory/.llvm10.new.3060/llvm10.changes  2020-06-25 
16:47:00.372889427 +0200
@@ -1,0 +2,6 @@
+Tue Jun 23 07:18:55 UTC 2020 - Ismail Dönmez 
+
+- Add lld-default-sha1.patch to make lld generate SHA1 build-ids by
+  default, otherwise our tools cannot process the debuginfo.
+
+---

New:

  lld-default-sha1.patch



Other differences:
--
++ llvm10.spec ++
--- /var/tmp/diff_new_pack.1YuPDB/_old  2020-06-25 16:47:01.732894204 +0200
+++ /var/tmp/diff_new_pack.1YuPDB/_new  2020-06-25 16:47:01.736894219 +0200
@@ -115,6 +115,8 @@
 Patch24:opt-viewer-Find-style-css-in-usr-share.patch
 # Proposed fix for https://bugs.llvm.org/show_bug.cgi?id=45272.
 Patch25:ValueLattice-Add-new-state-for-undef-constants.patch
+# PATCH-FIX-OPENSUSE lld-default-sha1.patch
+Patch26:lld-default-sha1.patch
 BuildRequires:  binutils-devel >= 2.21.90
 BuildRequires:  cmake
 BuildRequires:  fdupes
@@ -536,6 +538,7 @@
 %patch22 -p1
 %patch24 -p1
 %patch25 -p2
+%patch26 -p1
 
 pushd clang-%{version}.src
 %patch2 -p1

++ lld-default-sha1.patch ++
Index: llvm-10.0.0.src/lld-10.0.0.src/ELF/Driver.cpp
===
--- llvm-10.0.0.src.orig/lld-10.0.0.src/ELF/Driver.cpp
+++ llvm-10.0.0.src/lld-10.0.0.src/ELF/Driver.cpp
@@ -693,7 +693,7 @@ getBuildId(opt::InputArgList &args) {
 return {BuildIdKind::None, {}};
 
   if (arg->getOption().getID() == OPT_build_id)
-return {BuildIdKind::Fast, {}};
+return {BuildIdKind::Sha1, {}};
 
   StringRef s = arg->getValue();
   if (s == "fast")