Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1263021 Details for
Bug 1432172
Run llvm test-suite during the %check phase
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to enable llvm test-suite
0001-Run-llvm-test-suite-after-building.patch (text/plain), 5.11 KB, created by
Tom Stellard
on 2017-03-14 17:14:04 UTC
(
hide
)
Description:
Patch to enable llvm test-suite
Filename:
MIME Type:
Creator:
Tom Stellard
Created:
2017-03-14 17:14:04 UTC
Size:
5.11 KB
patch
obsolete
>From e13012474e3b5584b9385012eb06643021654aa9 Mon Sep 17 00:00:00 2001 >From: Tom Stellard <tstellar@redhat.com> >Date: Wed, 22 Feb 2017 16:24:21 +0000 >Subject: [PATCH] Run llvm test-suite after building > >--- > .gitignore | 1 + > ...ually-add-faltivec-for-UnitTests-Vector-A.patch | 30 +++++++++++++++ > clang.spec | 45 +++++++++++++++++++++- > sources | 2 +- > 4 files changed, 76 insertions(+), 2 deletions(-) > create mode 100644 0001-PowerPC-Actually-add-faltivec-for-UnitTests-Vector-A.patch > >diff --git a/.gitignore b/.gitignore >index 657d5f7..f38da5e 100644 >--- a/.gitignore >+++ b/.gitignore >@@ -4,3 +4,4 @@ > /cfe-3.8.0rc3.src.tar.xz > /cfe-3.8.0.src.tar.xz > /cfe-3.9.0.src.tar.xz >+/test-suite-3.9.0.src.tar.xz >diff --git a/0001-PowerPC-Actually-add-faltivec-for-UnitTests-Vector-A.patch b/0001-PowerPC-Actually-add-faltivec-for-UnitTests-Vector-A.patch >new file mode 100644 >index 0000000..c6a1565 >--- /dev/null >+++ b/0001-PowerPC-Actually-add-faltivec-for-UnitTests-Vector-A.patch >@@ -0,0 +1,30 @@ >+From 20e0be9a94d472abe1b9d4b2a251f51782b68c57 Mon Sep 17 00:00:00 2001 >+From: Hal Finkel <hfinkel@anl.gov> >+Date: Fri, 2 Sep 2016 18:17:00 +0000 >+Subject: [PATCH] [PowerPC] Actually add -faltivec for UnitTests/Vector/Altivec >+ >+We need to add -faltivec, to enable Altivec language extensions, to compile the >+test suite unit tests in SingleSource/UnitTests/Vector/Altivec. That should be >+all that is necessary to the CMake configuration, as -faltivec also implies >+-maltivec. >+ >+git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@280514 91177308-0d34-0410-b5e6-96231b3b80d8 >+--- >+ SingleSource/UnitTests/Vector/Altivec/CMakeLists.txt | 4 +--- >+ 1 file changed, 1 insertion(+), 3 deletions(-) >+ >+diff --git a/SingleSource/UnitTests/Vector/Altivec/CMakeLists.txt b/SingleSource/UnitTests/Vector/Altivec/CMakeLists.txt >+index 26a341e..d7f131b 100644 >+--- a/SingleSource/UnitTests/Vector/Altivec/CMakeLists.txt >++++ b/SingleSource/UnitTests/Vector/Altivec/CMakeLists.txt >+@@ -1,6 +1,4 @@ >+ set(FP_TOLERANCE 0.002) >+ list(APPEND LDFLAGS -lm) >+-list(APPEND TARGET_FLAGS -maltivec) >+-list(APPEND TEST_TARGET_FLAGS -maltivec) >+-list(APPEND LCCFLAGS -maltivec) >++list(APPEND CFLAGS -faltivec) >+ llvm_singlesource() >+-- >+2.9.3 >+ >diff --git a/clang.spec b/clang.spec >index fae0d72..cccca33 100644 >--- a/clang.spec >+++ b/clang.spec >@@ -1,20 +1,40 @@ >+%if 0%{?fedora} >+%global with_python3 1 >+%endif >+ > Name: clang > Version: 3.9.0 >-Release: 4%{?dist} >+Release: 5%{?dist} > Summary: A C language family front-end for LLVM > > License: NCSA > URL: http://llvm.org > Source0: http://llvm.org/releases/%{version}/cfe-%{version}.src.tar.xz >+Source1: http://llvm.org/releases/%{version}/test-suite-%{version}.src.tar.xz > > Source100: clang-config.h > >+Patch0: 0001-PowerPC-Actually-add-faltivec-for-UnitTests-Vector-A.patch >+ > BuildRequires: cmake > BuildRequires: llvm-devel = %{version} > BuildRequires: libxml2-devel > BuildRequires: llvm-static = %{version} > BuildRequires: perl-generators > BuildRequires: ncurses-devel >+ >+%if 0%{?with_python3} >+BuildRequires: python3-lit >+%else >+BuildRequires: python2-lit >+%endif >+ >+# Required for test suite. >+BuildRequires: zlib-devel >+BuildRequires: tcl >+BuildRequires: python-virtualenv >+BuildRequires: libstdc++-static >+ > Requires: %{name}-libs%{?_isa} = %{version}-%{release} > > # clang requires gcc, clang++ requires libstdc++-devel >@@ -64,7 +84,17 @@ programs. The standalone tool is invoked from the command-line, and is > intended to run in tandem with a build of a project or code base. > > %prep >+%setup -T -q -b 1 -n test-suite-%{version}.src >+%patch0 -p1 -b .test-suite-altivec >+ >+# This test is broken on 32-bit x86 >+# http://bugs.llvm.org/show_bug.cgi?id=32258 >+%ifarch i686 >+rm SingleSource/UnitTests/ms_struct-bitfield-1.c >+%endif >+ > %setup -q -n cfe-%{version}.src >+ > %build > mkdir -p _build > cd _build >@@ -112,6 +142,16 @@ rm -vf %{buildroot}%{_datadir}/clang/clang-format-diff.py* > #cd _build > #make check-all > >+cd %{_builddir}/test-suite-%{version}.src >+mkdir -p _build >+cd _build >+ >+# FIXME: Using the cmake macro adds -Werror=format-security to the C/CXX flags, >+# which causes the test suite to fail to build. >+cmake .. -DCMAKE_C_COMPILER=%{_builddir}/cfe-%{version}.src/_build/bin/clang \ >+ -DCMAKE_CXX_COMPILER=%{_builddir}/cfe-%{version}.src/_build/bin/clang++ >+make %{?_smp_mflags} check >+ > %files > %{_libdir}/clang/ > %{_bindir}/clang* >@@ -138,6 +178,9 @@ rm -vf %{buildroot}%{_datadir}/clang/clang-format-diff.py* > %{_mandir}/man1/scan-build.1.* > > %changelog >+* Fri Mar 10 2017 Tom Stellard <tstellar@redhat.com> - 3.9.0-5 >+- Run llvm test-suite >+ > * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.0-4 > - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild > >diff --git a/sources b/sources >index 7c90836..15826bb 100644 >--- a/sources >+++ b/sources >@@ -1 +1 @@ >-29e1d86bee422ab5345f5e9fb808d2dc cfe-3.9.0.src.tar.xz >+SHA512 (test-suite-3.9.0.src.tar.xz) = 3acb87c60a6e21392c302c02d8ec55209e5522ece9f92758c01d71129e6ca3326f27622a541327f9863f196f4b8c844f5e49d523196a5829acdc57f0e36acdf5 >-- >2.9.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1432172
:
1263021
|
1268712