#101 LLVM 12.0.1
Merged a year ago by tstellar. Opened a year ago by tstellar.
rpms/ tstellar/llvm f34-12.0.1  into  f34

file modified
+2
@@ -94,3 +94,5 @@ 

  /llvm-12.0.0rc1.src.tar.xz.sig

  /llvm-12.0.0.src.tar.xz

  /llvm-12.0.0.src.tar.xz.sig

+ /llvm-12.0.1.src.tar.xz

+ /llvm-12.0.1.src.tar.xz.sig

file modified
+5 -64
@@ -14,7 +14,7 @@ 

  %global llvm_srcdir llvm-%{version}%{?rc_ver:rc%{rc_ver}}.src

  %global maj_ver 12

  %global min_ver 0

- %global patch_ver 0

+ %global patch_ver 1

  

  %if %{with compat_build}

  %global pkg_name llvm%{maj_ver}
@@ -48,7 +48,7 @@ 

  

  Name:		%{pkg_name}

  Version:	%{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}

- Release:	2%{?dist}

+ Release:	1%{?dist}

  Summary:	The Low Level Virtual Machine

  

  License:	NCSA
@@ -159,14 +159,6 @@ 

  Summary:	LLVM regression tests

  Requires:	%{name}%{?_isa} = %{version}-%{release}

  Requires:	%{name}-libs%{?_isa} = %{version}-%{release}

- Requires:	python3-lit

- # The regression tests need gold.

- Requires:	binutils

- # This is for llvm-config

- Requires:	%{name}-devel%{?_isa} = %{version}-%{release}

- # Bugpoint tests require gcc

- Requires:	gcc

- Requires:	findutils

  

  Provides:	llvm-test(major) = %{maj_ver}

  
@@ -327,50 +319,6 @@ 

  cp utils/update_cc_test_checks.py %{install_srcdir}/utils/

  cp -R utils/UpdateTestChecks %{install_srcdir}/utils/

  

- # One of the lit tests references this file

- install -d %{install_srcdir}/docs/CommandGuide/

- install -m 0644 docs/CommandGuide/dsymutil.rst %{install_srcdir}/docs/CommandGuide/

- 

- # Generate lit config files.  Strip off the last lines that initiates the

- # test run, so we can customize the configuration.

- head -n -2 %{_vpath_builddir}/test/lit.site.cfg.py >> %{lit_cfg}

- head -n -2 %{_vpath_builddir}/test/Unit/lit.site.cfg.py >> %{lit_unit_cfg}

- 

- # Install custom fedora config file

- cp %{SOURCE4} %{buildroot}%{lit_fedora_cfg}

- 

- # Patch lit config files to load custom fedora config:

- for f in %{lit_cfg} %{lit_unit_cfg}; do

-   echo "lit_config.load_config(config, '%{lit_fedora_cfg}')" >> $f

- done

- 

- install -d %{buildroot}%{_libexecdir}/tests/llvm

- install -m 0755 %{SOURCE3} %{buildroot}%{_libexecdir}/tests/llvm

- 

- # Install lit tests.  We need to put these in a tarball otherwise rpm will complain

- # about some of the test inputs having the wrong object file format.

- install -d %{buildroot}%{_datadir}/llvm/

- 

- # The various tar options are there to make sur the archive is the same on 32 and 64 bit arch, i.e.

- # the archive creation is reproducible. Move arch-specific content out of the tarball

- mv %{lit_cfg} %{install_srcdir}/%{_arch}.site.cfg.py

- mv %{lit_unit_cfg} %{install_srcdir}/%{_arch}.Unit.site.cfg.py

- tar --sort=name --mtime='UTC 2020-01-01' -c test/ | gzip -n > %{install_srcdir}/test.tar.gz

- 

- # Install the unit test binaries

- mkdir -p %{build_llvm_libdir}

- cp -R %{_vpath_builddir}/unittests %{build_llvm_libdir}/

- rm -rf `find %{build_llvm_libdir} -iname 'cmake*'`

- 

- # Install libraries used for testing

- install -m 0755 %{build_libdir}/BugpointPasses.so %{buildroot}%{_libdir}

- install -m 0755 %{build_libdir}/LLVMHello.so %{buildroot}%{_libdir}

- 

- # Install test inputs for PDB tests

- echo "%{_datadir}/llvm/src/unittests/DebugInfo/PDB" > %{build_llvm_libdir}/unittests/DebugInfo/PDB/llvm.srcdir.txt

- mkdir -p %{buildroot}%{_datadir}/llvm/src/unittests/DebugInfo/PDB/

- cp -R unittests/DebugInfo/PDB/Inputs %{buildroot}%{_datadir}/llvm/src/unittests/DebugInfo/PDB/

- 

  %if %{with gold}

  # Add symlink to lto plugin in the binutils plugin directory.

  %{__mkdir_p} %{buildroot}%{_libdir}/bfd-plugins/
@@ -535,22 +483,12 @@ 

  

  %files test

  %license LICENSE.TXT

- %{_libexecdir}/tests/llvm/

- %{llvm_libdir}/unittests/

- %{_datadir}/llvm/src/unittests

- %{_datadir}/llvm/src/test.tar.gz

- %{_datadir}/llvm/src/%{_arch}.site.cfg.py

- %{_datadir}/llvm/src/%{_arch}.Unit.site.cfg.py

- %{_datadir}/llvm/lit.fedora.cfg.py

- %{_datadir}/llvm/src/docs/CommandGuide/dsymutil.rst

  %{_bindir}/not

  %{_bindir}/count

  %{_bindir}/yaml-bench

  %{_bindir}/lli-child-target

  %{_bindir}/llvm-isel-fuzzer

  %{_bindir}/llvm-opt-fuzzer

- %{_libdir}/BugpointPasses.so

- %{_libdir}/LLVMHello.so

  

  %files googletest

  %license LICENSE.TXT
@@ -560,6 +498,9 @@ 

  %endif

  

  %changelog

+ * Mon Jul 26 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1-1

+ - 12.0.1 Release

+ 

  * Mon May 17 2021 sguelton@redhat.com - 12.0.0-2

  - Fix handling of llvm-config

  

file modified
+2 -2
@@ -1,2 +1,2 @@ 

- SHA512 (llvm-12.0.0.src.tar.xz) = ec17153ef774a1e08085763bda7d0dfce6802fbaa17e89831695ce1b2eb015a6c2aebfaa9fe7985a83b9c51bd75d40bb4f1fc706dc16d4c0dc2b2722a1d8a24e

- SHA512 (llvm-12.0.0.src.tar.xz.sig) = c8d55589e86a29a6c19a8adecb54ce0e7b3398fb9d2263ecba9ac02be88a160915b88c3f9f595d6cb807c82f1ed7648dd5c90c334407f624aacfb02386e7014c

+ SHA512 (llvm-12.0.1.src.tar.xz) = ff674afb4c8eea699a4756f1bb463f15098a7fa354c733de83c024f8f0cf238cd5f19ae3ec446831c7109235e293e2bf31d8562567ede163c8ec53af7306ba0f

+ SHA512 (llvm-12.0.1.src.tar.xz.sig) = 4c2904e13f1a51b624eed8f74fbf132ae1289f8e17d59b46bda78cd896a904f2bb53642fda7cef543905f17c3c9e2a65d5f97cd270b0182281518036d0fe1595

@@ -0,0 +1,5 @@ 

+ set -exo pipefail

+ 

+ echo "void lto_function(){}" | clang -flto -O2 -c -x c -o foo.o -

+ ar crs foo.a foo.o

+ readelf -c foo.a | grep lto_function

@@ -0,0 +1,38 @@ 

+ #!/bin/bash

+ 

+ usage() {

+     echo "usage `basename $0` [OPTIONS]"

+     echo "  --threads NUM       The number of threads to use for running tests."

+ }

+ 

+ thread_args=""

+ repo_url=https://github.com/opencollab/llvm-toolchain-integration-test-suite

+ 

+ while [ $# -gt 0 ]; do

+     case $1 in

+         --threads)

+             shift

+             threads="$1"

+             ;;

+         * )

+             echo "unknown option: $1"

+             echo ""

+             usage

+             exit 1

+             ;;

+     esac

+     shift

+ done

+ 

+ if [ -n "$threads" ]; then

+   thread_args="-j$threads"

+ fi

+ 

+ set -xe

+ 

+ cd $(mktemp -d -p /var/tmp)

+ git clone $repo_url

+ cd llvm-toolchain-integration-test-suite

+ mkdir _build && cd _build

+ cmake .. -GNinja

+ ninja $thread_args check

@@ -1,16 +0,0 @@ 

- #!/bin/bash

- 

- set -ex

- 

- cmd='/usr/libexec/tests/llvm/run-lit-tests --threads 1'

- if [ `id -u` -eq 0 ]; then

-   # lit tests can't be run as root, so we need to run as a different user

-   user='llvm-regression-tests'

-   if ! id -u $user; then

-     useradd $user

-   fi

-   su $user -c "$cmd"

-   cmd="su $user -c $cmd"

- else

-   exec $cmd

- fi

file modified
+23 -7
@@ -4,16 +4,27 @@ 

      tags:

        - classic

      required_packages:

-       - llvm-test

        - rust

        - cargo

-       - clang

        - binutils

-     repositories:

-       - repo: "https://src.fedoraproject.org/tests/llvm.git"

-         dest: "llvm"

+       # the requirements below are for the integration suite

+       - cmake

+       - llvm-devel

+       - clang

+       - clang-analyzer

+       - clang-tools-extra

+       - compiler-rt

+       - ninja-build

+       - libcxx-devel

+       - libomp-devel

+       - python-lit

+       - lld

+       - lldb

+       - git

+       - make

+       - libstdc++-static

+       - clang-devel

      tests:

-       - regression-tests

        - rust-sanity:

            dir: ./

            run: cargo new hello && cd hello && cargo run
@@ -31,4 +42,9 @@ 

        # FIXME: This fails, because the CI system has a hard-coded timeout of 4

        # hours.

        #- build-compat

-       - llvm/binutils-plugin-ar

+       - binutils-plugin-ar

+       # make sure llvm-config symlink is properly setup

+       - llvm-config:

+           dir: ./

+           run: llvm-config --version

+       - integration-test-suite

no initial comment

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

6 new commits added

  • 12.0.1 Release
  • Stop installing lit tests
  • Extra dependencies for integration test suite
  • Use integration test suite instead of regression test suite
  • Minimal CI test for llvm-config
  • Import tests from tests/llvm repository
a year ago

Build succeeded.

Pull-Request has been merged by tstellar

a year ago