forked from pool/gcc14
- Up requirement to llvm15 when building GCN offload compiler, needed
for gfx1100 support. - Remove obsolete gcc11-amdgcn-disable-hot-cold-partitioning.patch and gcc10-amdgcn-llvm-as.patch patches. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc14?expand=0&rev=14
This commit is contained in:
@@ -131,9 +131,7 @@ Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch16: gcc9-reproducible-builds.patch
|
||||
Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
@@ -243,21 +241,15 @@ ExclusiveArch: x86_64
|
||||
%define nvptx_newlib 1
|
||||
%endif
|
||||
%if "%{cross_arch}" == "amdgcn"
|
||||
# amdgcn uses the llvm assembler and linker
|
||||
%if %{suse_version} < 1550
|
||||
BuildRequires: llvm13
|
||||
%define product_libs_llvm_ver 13
|
||||
%else
|
||||
# amdgcn uses the llvm assembler and linker, needs at least llvm 15
|
||||
%if 0%{?product_libs_llvm_ver} < 15
|
||||
%define product_libs_llvm_ver 15
|
||||
%endif
|
||||
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||
%endif
|
||||
BuildRequires: lld
|
||||
%if %{suse_version} < 1550
|
||||
Requires: llvm13
|
||||
%else
|
||||
Requires: llvm%{product_libs_llvm_ver}
|
||||
%endif
|
||||
BuildRequires: lld%{product_libs_llvm_ver}
|
||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||
Requires: lld
|
||||
Requires: lld%{product_libs_llvm_ver}
|
||||
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
|
||||
# technically also SLE12 SP5 but do not bother there
|
||||
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
|
||||
@@ -346,11 +338,6 @@ ln -s newlib-4.4.0.20231231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
%patch20 -p1
|
||||
%endif
|
||||
# In SLE15 and earlier default to dwarf4, not dwarf5
|
||||
%if %{suse_version} < 1550
|
||||
%patch19 -p1
|
||||
@@ -892,7 +879,7 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
||||
ln -s /usr/bin/lld $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||
ln -s /usr/bin/lld-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||
|
Reference in New Issue
Block a user