|
|
a36037 |
%ifarch s390 s390x
|
|
|
a36037 |
# only limited set of libs available on s390(x) and the existing ones (stats, ubsan) don't provide debuginfo
|
|
|
a36037 |
%global debug_package %{nil}
|
|
|
a36037 |
%endif
|
|
|
a36037 |
|
|
|
f64358 |
#%%global rc_ver 6
|
|
|
f64358 |
%global baserelease 2
|
|
|
a36037 |
|
|
|
a36037 |
%global crt_srcdir compiler-rt-%{version}%{?rc_ver:rc%{rc_ver}}.src
|
|
|
a36037 |
|
|
|
f64358 |
# see https://sourceware.org/bugzilla/show_bug.cgi?id=25271
|
|
|
f64358 |
%global optflags %(echo %{optflags} -D_DEFAULT_SOURCE)
|
|
|
f64358 |
|
|
|
f64358 |
# see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93615
|
|
|
f64358 |
%global optflags %(echo %{optflags} -Dasm=__asm__)
|
|
|
f64358 |
|
|
|
a36037 |
Name: compiler-rt
|
|
|
f64358 |
Version: 10.0.0
|
|
|
b7c93b |
Release: %{baserelease}%{?rc_ver:.rc%{rc_ver}}%{?dist}
|
|
|
a36037 |
Summary: LLVM "compiler-rt" runtime libraries
|
|
|
a36037 |
|
|
|
a36037 |
License: NCSA or MIT
|
|
|
a36037 |
URL: http://llvm.org
|
|
|
f64358 |
%if 0%{?rc_ver:1}
|
|
|
f64358 |
Source0: https://prereleases.llvm.org/%{version}/rc%{rc_ver}/%{crt_srcdir}.tar.xz
|
|
|
f64358 |
Source1: https://prereleases.llvm.org/%{version}/rc%{rc_ver}/%{crt_srcdir}.tar.xz.sig
|
|
|
f64358 |
%else
|
|
|
f64358 |
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{crt_srcdir}.tar.xz
|
|
|
f64358 |
Source3: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{crt_srcdir}.tar.xz.sig
|
|
|
f64358 |
%endif
|
|
|
f64358 |
Source2: https://prereleases.llvm.org/%{version}/hans-gpg-key.asc
|
|
|
a36037 |
|
|
|
a36037 |
Patch0: 0001-PATCH-std-thread-copy.patch
|
|
|
f64358 |
Patch1: 0001-Fix-strict-aliasing-warning-in-msan.cpp.patch
|
|
|
b7c93b |
|
|
|
b7c93b |
# RHEL-specific patches
|
|
|
b7c93b |
Patch100: 0001-Drop-fno-stack-protector-from-the-compiler-flags.patch
|
|
|
a36037 |
|
|
|
a36037 |
BuildRequires: gcc
|
|
|
a36037 |
BuildRequires: gcc-c++
|
|
|
a36037 |
BuildRequires: cmake
|
|
|
a36037 |
BuildRequires: python3
|
|
|
a36037 |
# We need python3-devel for pathfix.py.
|
|
|
a36037 |
BuildRequires: python3-devel
|
|
|
a36037 |
BuildRequires: llvm-devel = %{version}
|
|
|
a36037 |
BuildRequires: llvm-static = %{version}
|
|
|
a36037 |
|
|
|
a36037 |
%description
|
|
|
a36037 |
The compiler-rt project is a part of the LLVM project. It provides
|
|
|
a36037 |
implementation of the low-level target-specific hooks required by
|
|
|
a36037 |
code generation, sanitizer runtimes and profiling library for code
|
|
|
a36037 |
instrumentation, and Blocks C language extension.
|
|
|
a36037 |
|
|
|
a36037 |
%prep
|
|
|
a36037 |
%autosetup -n %{crt_srcdir} -p1
|
|
|
a36037 |
|
|
|
f64358 |
pathfix.py -i %{__python3} -pn lib/hwasan/scripts/hwasan_symbolize
|
|
|
a36037 |
|
|
|
a36037 |
%build
|
|
|
a36037 |
mkdir -p _build
|
|
|
a36037 |
cd _build
|
|
|
a36037 |
%cmake .. \
|
|
|
a36037 |
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
a36037 |
-DLLVM_CONFIG_PATH:FILEPATH=%{_bindir}/llvm-config-%{__isa_bits} \
|
|
|
a36037 |
\
|
|
|
a36037 |
%if 0%{?__isa_bits} == 64
|
|
|
a36037 |
-DLLVM_LIBDIR_SUFFIX=64 \
|
|
|
a36037 |
%else
|
|
|
a36037 |
-DLLVM_LIBDIR_SUFFIX= \
|
|
|
a36037 |
%endif
|
|
|
a36037 |
-DCOMPILER_RT_INCLUDE_TESTS:BOOL=OFF # could be on?
|
|
|
a36037 |
|
|
|
a36037 |
make %{?_smp_mflags}
|
|
|
a36037 |
|
|
|
a36037 |
%install
|
|
|
a36037 |
cd _build
|
|
|
a36037 |
make install DESTDIR=%{buildroot}
|
|
|
a36037 |
|
|
|
f64358 |
# move blacklist/abilist files to where clang expect them
|
|
|
f64358 |
mkdir -p %{buildroot}%{_libdir}/clang/%{version}/share
|
|
|
f64358 |
mv -v %{buildroot}%{_datadir}/*list.txt %{buildroot}%{_libdir}/clang/%{version}/share/
|
|
|
a36037 |
|
|
|
a36037 |
# move sanitizer libs to better place
|
|
|
a36037 |
%global libclang_rt_installdir lib/linux
|
|
|
f64358 |
mkdir -p %{buildroot}%{_libdir}/clang/%{version}/lib
|
|
|
b7c93b |
mv -v %{buildroot}%{_prefix}/%{libclang_rt_installdir}/*clang_rt* %{buildroot}%{_libdir}/clang/%{version}/lib
|
|
|
a36037 |
mkdir -p %{buildroot}%{_libdir}/clang/%{version}/lib/linux/
|
|
|
a36037 |
pushd %{buildroot}%{_libdir}/clang/%{version}/lib
|
|
|
b7c93b |
for i in *.a *.so
|
|
|
b7c93b |
do
|
|
|
a36037 |
ln -s ../$i linux/$i
|
|
|
a36037 |
done
|
|
|
b7c93b |
popd
|
|
|
b7c93b |
|
|
|
b7c93b |
# multilib support: also create symlink from lib to lib64
|
|
|
b7c93b |
# fixes rhbz#1678240
|
|
|
b7c93b |
%ifarch %{ix86}
|
|
|
b7c93b |
%post
|
|
|
b7c93b |
if test "`uname -m`" = x86_64
|
|
|
b7c93b |
then
|
|
|
b7c93b |
cd %{_libdir}/clang/%{version}/lib
|
|
|
b7c93b |
mkdir -p ../../../../lib64/clang/%{version}/lib
|
|
|
b7c93b |
for i in *.a *.so
|
|
|
b7c93b |
do
|
|
|
b7c93b |
ln -s ../../../../%{_lib}/clang/%{version}/lib/$i ../../../../lib64/clang/%{version}/lib/$i
|
|
|
b7c93b |
done
|
|
|
b7c93b |
fi
|
|
|
b7c93b |
|
|
|
b7c93b |
%preun
|
|
|
b7c93b |
|
|
|
b7c93b |
if test "`uname -m`" = x86_64
|
|
|
b7c93b |
then
|
|
|
b7c93b |
cd %{_libdir}/clang/%{version}/lib
|
|
|
b7c93b |
for i in *.a *.so
|
|
|
b7c93b |
do
|
|
|
b7c93b |
rm ../../../../lib64/clang/%{version}/lib/$i
|
|
|
b7c93b |
done
|
|
|
b7c93b |
rmdir -p ../../../../lib64/clang/%{version}/lib 2>/dev/null 1>/dev/null || :
|
|
|
b7c93b |
fi
|
|
|
b7c93b |
|
|
|
b7c93b |
%endif
|
|
|
a36037 |
|
|
|
a36037 |
%check
|
|
|
a36037 |
#make check-all -C _build
|
|
|
a36037 |
|
|
|
a36037 |
%files
|
|
|
a36037 |
%{_includedir}/*
|
|
|
a36037 |
%{_libdir}/clang/%{version}
|
|
|
f64358 |
%ifarch x86_64 aarch64
|
|
|
f64358 |
%{_bindir}/hwasan_symbolize
|
|
|
f64358 |
%endif
|
|
|
a36037 |
|
|
|
a36037 |
%changelog
|
|
|
f64358 |
* Mon Jun 15 2020 sguelton@redhat.com - 10.0.0-2
|
|
|
f64358 |
- Fix msan compilation warnings, see rhbz#1841165
|
|
|
f64358 |
|
|
|
f64358 |
* Wed Apr 8 2020 sguelton@redhat.com - 10.0.0-1
|
|
|
f64358 |
- 10.0.0 final
|
|
|
f64358 |
|
|
|
f64358 |
* Mon Jan 06 2020 Tom Stellard <tstellar@redhat.com> - 9.0.1-2
|
|
|
f64358 |
- Update fno-stack-protector patch to apply with -p2
|
|
|
f64358 |
|
|
|
f64358 |
* Fri Dec 20 2019 Tom Stellard <tstellar@redhat.com> - 9.0.1-1
|
|
|
f64358 |
- 9.0.1 Release
|
|
|
f64358 |
|
|
|
b7c93b |
* Fri Sep 27 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-1
|
|
|
b7c93b |
- 9.0.0 Release
|
|
|
b7c93b |
|
|
|
b7c93b |
* Thu Aug 1 2019 sguelton@redhat.com - 8.0.1-1
|
|
|
b7c93b |
- 8.0.1 release
|
|
|
b7c93b |
|
|
|
b7c93b |
* Thu Jul 4 2019 sguelton@redhat.com - 8.0.1-0.2.rc2
|
|
|
b7c93b |
- Fix rhbz#1678240
|
|
|
b7c93b |
|
|
|
b7c93b |
* Thu Jun 13 2019 sguelton@redhat.com - 8.0.1-0.1.rc2
|
|
|
b7c93b |
- 8.0.1rc2 Release
|
|
|
b7c93b |
|
|
|
a36037 |
* Wed Apr 17 2019 sguelton@redhat.com - 8.0.0-1
|
|
|
a36037 |
- 8.0.0 Release
|
|
|
a36037 |
|
|
|
a36037 |
* Fri Dec 14 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-1
|
|
|
a36037 |
- 7.0.1 Release
|
|
|
a36037 |
|
|
|
a36037 |
* Mon Dec 10 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-0.1.rc3
|
|
|
a36037 |
- 7.0.1-rc3 Release
|
|
|
a36037 |
|
|
|
a36037 |
* Tue Nov 27 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-1
|
|
|
a36037 |
- 7.0.0 Release
|
|
|
a36037 |
|
|
|
a36037 |
* Tue Oct 02 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-5
|
|
|
a36037 |
- Use python3 for build scripts
|
|
|
a36037 |
|
|
|
a36037 |
* Mon Oct 01 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-4
|
|
|
a36037 |
- Drop scl macros
|
|
|
a36037 |
|
|
|
a36037 |
* Thu Sep 06 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-3
|
|
|
a36037 |
- Drop -fno-stack-protector flag
|
|
|
a36037 |
|
|
|
a36037 |
* Thu Sep 06 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-2
|
|
|
a36037 |
- Explicitly BuildRequire: /usr/bin/python3
|
|
|
a36037 |
|
|
|
a36037 |
* Wed Jul 11 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-1
|
|
|
a36037 |
- 6.0.1 Release
|
|
|
a36037 |
|
|
|
a36037 |
* Tue Jan 09 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-1
|
|
|
a36037 |
- 5.0.1 Release
|
|
|
a36037 |
|
|
|
a36037 |
* Wed Jun 07 2017 Tom Stellard <tstellar@redhat.com> - 4.0.1-1
|
|
|
a36037 |
- 4.0.1 Release
|
|
|
a36037 |
|
|
|
a36037 |
* Wed Jun 07 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-3
|
|
|
a36037 |
- Build for llvm-toolset-7 rename
|
|
|
a36037 |
|
|
|
a36037 |
* Thu May 18 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-2
|
|
|
a36037 |
- Fix disabling debug on s390(x)
|
|
|
a36037 |
|
|
|
a36037 |
* Tue Mar 14 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-1
|
|
|
a36037 |
- compiler-rt 4.0.0 Final Release
|
|
|
a36037 |
|
|
|
a36037 |
* Thu Mar 02 2017 Dave Airlie <airlied@redhat.com> - 3.9.1-1
|
|
|
a36037 |
- compiler-rt 3.9.1
|
|
|
a36037 |
|
|
|
a36037 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.0-4
|
|
|
a36037 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
a36037 |
|
|
|
a36037 |
* Mon Nov 21 2016 Dan HorĂ¡k <dan[at]danny.cz> - 3.9.0-3
|
|
|
a36037 |
- disable debuginfo on s390(x)
|
|
|
a36037 |
|
|
|
a36037 |
* Wed Nov 02 2016 Dave Airlie <airlied@redhat.com> - 3.9.0-2
|
|
|
a36037 |
- build for new arches.
|
|
|
a36037 |
|
|
|
a36037 |
* Wed Oct 26 2016 Dave Airlie <airlied@redhat.com> - 3.9.0-1
|
|
|
a36037 |
- compiler-rt 3.9.0 final release
|
|
|
a36037 |
|
|
|
a36037 |
* Mon May 2 2016 Tom Callaway <spot@fedoraproject.org> 3.8.0-2
|
|
|
a36037 |
- make symlinks to where the linker thinks these libs are
|
|
|
a36037 |
|
|
|
a36037 |
* Thu Mar 10 2016 Dave Airlie <airlied@redhat.com> 3.8.0-1
|
|
|
a36037 |
- compiler-rt 3.8.0 final release
|
|
|
a36037 |
|
|
|
a36037 |
* Thu Mar 03 2016 Dave Airlie <airlied@redhat.com> 3.8.0-0.2
|
|
|
a36037 |
- compiler-rt 3.8.0rc3
|
|
|
a36037 |
|
|
|
a36037 |
* Thu Feb 18 2016 Dave Airlie <airlied@redhat.com> - 3.8.0-0.1
|
|
|
a36037 |
- compiler-rt 3.8.0rc2
|
|
|
a36037 |
|
|
|
a36037 |
* Fri Feb 05 2016 Dave Airlie <airlied@redhat.com> 3.7.1-3
|
|
|
a36037 |
- fix compiler-rt paths - from rwindz0@gmail.com - #1304605
|
|
|
a36037 |
|
|
|
a36037 |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.1-2
|
|
|
a36037 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
a36037 |
|
|
|
a36037 |
* Tue Oct 06 2015 Jan Vcelak <jvcelak@fedoraproject.org> 3.7.0-100
|
|
|
a36037 |
- initial version using cmake build system
|