Accepting request 1130160 from devel:gcc
- Update to gcc-13 branch head, 741743c028dc00f27b9c8b1d5, git8109 * Includes fix for building mariadb on i686. [bsc#1217667] * Remove pr111411.patch contained in the update. - Avoid update-alternatives dependency for accelerator crosses. - Package tool links to llvm in cross-amdgcn-gcc13 rather than in cross-amdgcn-newlib13-devel since that also has the dependence. - Depend on llvmVER instead of llvm with VER equal to %product_libs_llvm_ver where available and adjust tool discovery accordingly. This should also properly trigger re-builds when the patchlevel version of llvmVER changes, possibly changing the binary names we link to. [bsc#1217450] OBS-URL: https://build.opensuse.org/request/show/1130160 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gcc13?expand=0&rev=18
This commit is contained in:
commit
304a220de8
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -108,7 +108,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -135,7 +135,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -248,14 +247,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -306,9 +306,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -356,7 +358,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -460,11 +461,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -884,11 +885,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -989,6 +990,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1058,11 +1067,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -108,7 +108,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -135,7 +135,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -248,14 +247,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -306,9 +306,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -356,7 +358,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -460,11 +461,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -884,11 +885,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -989,6 +990,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1058,11 +1067,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -108,7 +108,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -135,7 +135,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -248,14 +247,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -306,9 +306,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -356,7 +358,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -460,11 +461,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -884,11 +885,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -989,6 +990,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1058,11 +1067,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -108,7 +108,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -135,7 +135,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -248,14 +247,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -306,9 +306,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -356,7 +358,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -460,11 +461,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -884,11 +885,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -989,6 +990,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1058,11 +1067,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -108,7 +108,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -135,7 +135,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -248,14 +247,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -306,9 +306,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -356,7 +358,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -460,11 +461,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -884,11 +885,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -989,6 +990,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1058,11 +1067,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -107,7 +107,7 @@ Name: %{pkgname}
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -134,7 +134,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -247,14 +246,15 @@ ExclusiveArch:
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
@ -305,9 +305,11 @@ Conflicts: cross-%{cross_arch}-gcc13
|
|||||||
Requires: libstdc++6-devel-gcc13
|
Requires: libstdc++6-devel-gcc13
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(preun):update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -355,7 +357,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -459,11 +460,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -883,11 +884,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -988,6 +989,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -1057,11 +1066,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib13-devel
|
%files -n cross-amdgcn-newlib13-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -155,14 +155,15 @@ ExclusiveArch: x86_64
|
|||||||
# amdgcn uses the llvm assembler and linker
|
# amdgcn uses the llvm assembler and linker
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
BuildRequires: llvm13
|
BuildRequires: llvm13
|
||||||
|
%define product_libs_llvm_ver 13
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1550
|
||||||
Requires: llvm13
|
Requires: llvm13
|
||||||
%else
|
%else
|
||||||
Requires: llvm
|
Requires: llvm%{product_libs_llvm_ver}
|
||||||
%endif
|
%endif
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
@ -213,9 +214,11 @@ Conflicts: cross-%{cross_arch}-gcc@base_ver@
|
|||||||
Requires: libstdc++6-devel-gcc@base_ver@
|
Requires: libstdc++6-devel-gcc@base_ver@
|
||||||
%endif
|
%endif
|
||||||
AutoReqProv: off
|
AutoReqProv: off
|
||||||
|
%if 0%{!?gcc_accel:1}
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun): update-alternatives
|
Requires(preun): update-alternatives
|
||||||
|
%endif
|
||||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -338,11 +341,11 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
|
|||||||
# follow alternatives symlinks to the hardcoded version requirement
|
# follow alternatives symlinks to the hardcoded version requirement
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
|
||||||
ln -s `readlink -f /usr/bin/llvm-ar` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
|
||||||
ln -s `readlink -f /usr/bin/llvm-mc` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
|
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 $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
|
||||||
ln -s `readlink -f /usr/bin/llvm-nm` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
|
||||||
ln -s `readlink -f /usr/bin/llvm-ranlib` $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
|
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
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
@ -443,6 +446,14 @@ fi
|
|||||||
%dir %{libsubdir}
|
%dir %{libsubdir}
|
||||||
%dir %{libsubdir}/accel
|
%dir %{libsubdir}/accel
|
||||||
%{libsubdir}/accel/%{gcc_target_arch}
|
%{libsubdir}/accel/%{gcc_target_arch}
|
||||||
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
|
%{_prefix}/%{gcc_target_arch}/bin
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ar
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-as
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ld
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-nm
|
||||||
|
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
|
||||||
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
|
||||||
@ -512,11 +523,7 @@ fi
|
|||||||
%files -n cross-amdgcn-newlib@base_ver@-devel
|
%files -n cross-amdgcn-newlib@base_ver@-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_prefix}/%{gcc_target_arch}
|
%{_prefix}/%{gcc_target_arch}
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ar
|
%exclude %{_prefix}/%{gcc_target_arch}/bin
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-as
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ld
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-nm
|
|
||||||
%{_prefix}/bin/amdgcn-amdhsa-ranlib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog -n cross-%{pkgname}-gcc@base_ver@
|
%changelog -n cross-%{pkgname}-gcc@base_ver@
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:d88599566679c89f6acc49f728f55bff3819c079e39990562b459983839c3998
|
|
||||||
size 87217780
|
|
3
gcc-13.2.1+git8109.tar.xz
Normal file
3
gcc-13.2.1+git8109.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2eaa9d9bd128fa6483a2fd81406f9dee1db13550854d88dd759dc02087f667ed
|
||||||
|
size 87258924
|
12
gcc.spec.in
12
gcc.spec.in
@ -204,7 +204,7 @@
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 1
|
Release: 1
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -386,7 +386,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -1352,7 +1351,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -1456,11 +1454,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
@ -221,7 +221,7 @@
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -402,7 +402,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -543,7 +542,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -647,11 +645,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 30 11:43:17 UTC 2023 - Richard Biener <rguenther@suse.com>
|
||||||
|
|
||||||
|
- Update to gcc-13 branch head, 741743c028dc00f27b9c8b1d5, git8109
|
||||||
|
* Includes fix for building mariadb on i686. [bsc#1217667]
|
||||||
|
* Remove pr111411.patch contained in the update.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 24 08:49:50 UTC 2023 - Richard Biener <rguenther@suse.com>
|
||||||
|
|
||||||
|
- Avoid update-alternatives dependency for accelerator crosses.
|
||||||
|
- Package tool links to llvm in cross-amdgcn-gcc13 rather than in
|
||||||
|
cross-amdgcn-newlib13-devel since that also has the dependence.
|
||||||
|
- Depend on llvmVER instead of llvm with VER equal to
|
||||||
|
%product_libs_llvm_ver where available and adjust tool discovery
|
||||||
|
accordingly. This should also properly trigger re-builds when
|
||||||
|
the patchlevel version of llvmVER changes, possibly changing
|
||||||
|
the binary names we link to. [bsc#1217450]
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 7 12:57:49 UTC 2023 - Richard Biener <rguenther@suse.com>
|
Tue Nov 7 12:57:49 UTC 2023 - Richard Biener <rguenther@suse.com>
|
||||||
|
|
||||||
|
12
gcc13.spec
12
gcc13.spec
@ -200,7 +200,7 @@
|
|||||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||||
|
|
||||||
URL: https://gcc.gnu.org/
|
URL: https://gcc.gnu.org/
|
||||||
Version: 13.2.1+git7813
|
Version: 13.2.1+git8109
|
||||||
Release: 0
|
Release: 0
|
||||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||||
@ -381,7 +381,6 @@ Patch18: gcc10-amdgcn-llvm-as.patch
|
|||||||
Patch19: gcc11-gdwarf-4-default.patch
|
Patch19: gcc11-gdwarf-4-default.patch
|
||||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
|
||||||
Patch21: gdcflags.patch
|
Patch21: gdcflags.patch
|
||||||
Patch22: pr111411.patch
|
|
||||||
Patch23: gcc13-bsc1216664.patch
|
Patch23: gcc13-bsc1216664.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
@ -2360,7 +2359,6 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
@ -2464,11 +2462,11 @@ export _POSIX2_VERSION=199209
|
|||||||
|
|
||||||
%if "%{TARGET_ARCH}" == "amdgcn"
|
%if "%{TARGET_ARCH}" == "amdgcn"
|
||||||
mkdir -p target-tools/bin
|
mkdir -p target-tools/bin
|
||||||
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
|
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
|
||||||
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
|
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
|
||||||
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
|
||||||
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
|
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
|
||||||
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
|
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
|
||||||
export PATH="`pwd`/target-tools/bin:$PATH"
|
export PATH="`pwd`/target-tools/bin:$PATH"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
119
pr111411.patch
119
pr111411.patch
@ -1,119 +0,0 @@
|
|||||||
From 74f99f1adc696f446115f36974a3f94f66294a53 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Richard Sandiford <richard.sandiford@arm.com>
|
|
||||||
Date: Wed, 20 Sep 2023 11:13:20 +0100
|
|
||||||
Subject: [PATCH] aarch64: Fix loose ldpstp check [PR111411]
|
|
||||||
|
|
||||||
aarch64_operands_ok_for_ldpstp contained the code:
|
|
||||||
|
|
||||||
/* One of the memory accesses must be a mempair operand.
|
|
||||||
If it is not the first one, they need to be swapped by the
|
|
||||||
peephole. */
|
|
||||||
if (!aarch64_mem_pair_operand (mem_1, GET_MODE (mem_1))
|
|
||||||
&& !aarch64_mem_pair_operand (mem_2, GET_MODE (mem_2)))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
But the requirement isn't just that one of the accesses must be a
|
|
||||||
valid mempair operand. It's that the lower access must be, since
|
|
||||||
that's the access that will be used for the instruction operand.
|
|
||||||
|
|
||||||
gcc/
|
|
||||||
PR target/111411
|
|
||||||
* config/aarch64/aarch64.cc (aarch64_operands_ok_for_ldpstp): Require
|
|
||||||
the lower memory access to a mem-pair operand.
|
|
||||||
|
|
||||||
gcc/testsuite/
|
|
||||||
PR target/111411
|
|
||||||
* gcc.dg/rtl/aarch64/pr111411.c: New test.
|
|
||||||
|
|
||||||
(cherry picked from commit 2d38f45bcca62ca0c7afef4b579f82c5c2a01610)
|
|
||||||
---
|
|
||||||
gcc/config/aarch64/aarch64.cc | 8 ++-
|
|
||||||
gcc/testsuite/gcc.dg/rtl/aarch64/pr111411.c | 57 +++++++++++++++++++++
|
|
||||||
2 files changed, 60 insertions(+), 5 deletions(-)
|
|
||||||
create mode 100644 gcc/testsuite/gcc.dg/rtl/aarch64/pr111411.c
|
|
||||||
|
|
||||||
diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc
|
|
||||||
index 96c3f48fdc4..a979accd90a 100644
|
|
||||||
--- a/gcc/config/aarch64/aarch64.cc
|
|
||||||
+++ b/gcc/config/aarch64/aarch64.cc
|
|
||||||
@@ -26031,11 +26031,9 @@ aarch64_operands_ok_for_ldpstp (rtx *operands, bool load,
|
|
||||||
gcc_assert (known_eq (GET_MODE_SIZE (GET_MODE (mem_1)),
|
|
||||||
GET_MODE_SIZE (GET_MODE (mem_2))));
|
|
||||||
|
|
||||||
- /* One of the memory accesses must be a mempair operand.
|
|
||||||
- If it is not the first one, they need to be swapped by the
|
|
||||||
- peephole. */
|
|
||||||
- if (!aarch64_mem_pair_operand (mem_1, GET_MODE (mem_1))
|
|
||||||
- && !aarch64_mem_pair_operand (mem_2, GET_MODE (mem_2)))
|
|
||||||
+ /* The lower memory access must be a mem-pair operand. */
|
|
||||||
+ rtx lower_mem = reversed ? mem_2 : mem_1;
|
|
||||||
+ if (!aarch64_mem_pair_operand (lower_mem, GET_MODE (lower_mem)))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
if (REG_P (reg_1) && FP_REGNUM_P (REGNO (reg_1)))
|
|
||||||
diff --git a/gcc/testsuite/gcc.dg/rtl/aarch64/pr111411.c b/gcc/testsuite/gcc.dg/rtl/aarch64/pr111411.c
|
|
||||||
new file mode 100644
|
|
||||||
index 00000000000..ad07e9c6c89
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/gcc/testsuite/gcc.dg/rtl/aarch64/pr111411.c
|
|
||||||
@@ -0,0 +1,57 @@
|
|
||||||
+/* { dg-do compile { target aarch64*-*-* } } */
|
|
||||||
+/* { dg-require-effective-target lp64 } */
|
|
||||||
+/* { dg-options "-O -fdisable-rtl-postreload -fpeephole2 -fno-schedule-fusion" } */
|
|
||||||
+
|
|
||||||
+extern int data[];
|
|
||||||
+
|
|
||||||
+void __RTL (startwith ("ira")) foo (void *ptr)
|
|
||||||
+{
|
|
||||||
+ (function "foo"
|
|
||||||
+ (param "ptr"
|
|
||||||
+ (DECL_RTL (reg/v:DI <0> [ ptr ]))
|
|
||||||
+ (DECL_RTL_INCOMING (reg/v:DI x0 [ ptr ]))
|
|
||||||
+ ) ;; param "ptr"
|
|
||||||
+ (insn-chain
|
|
||||||
+ (block 2
|
|
||||||
+ (edge-from entry (flags "FALLTHRU"))
|
|
||||||
+ (cnote 3 [bb 2] NOTE_INSN_BASIC_BLOCK)
|
|
||||||
+ (insn 4 (set (reg:DI <0>) (reg:DI x0)))
|
|
||||||
+ (insn 5 (set (reg:DI <1>)
|
|
||||||
+ (plus:DI (reg:DI <0>) (const_int 768))))
|
|
||||||
+ (insn 6 (set (mem:SI (plus:DI (reg:DI <0>)
|
|
||||||
+ (const_int 508)) [1 &data+508 S4 A4])
|
|
||||||
+ (const_int 0)))
|
|
||||||
+ (insn 7 (set (mem:SI (plus:DI (reg:DI <1>)
|
|
||||||
+ (const_int -256)) [1 &data+512 S4 A4])
|
|
||||||
+ (const_int 0)))
|
|
||||||
+ (edge-to exit (flags "FALLTHRU"))
|
|
||||||
+ ) ;; block 2
|
|
||||||
+ ) ;; insn-chain
|
|
||||||
+ ) ;; function
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+void __RTL (startwith ("ira")) bar (void *ptr)
|
|
||||||
+{
|
|
||||||
+ (function "bar"
|
|
||||||
+ (param "ptr"
|
|
||||||
+ (DECL_RTL (reg/v:DI <0> [ ptr ]))
|
|
||||||
+ (DECL_RTL_INCOMING (reg/v:DI x0 [ ptr ]))
|
|
||||||
+ ) ;; param "ptr"
|
|
||||||
+ (insn-chain
|
|
||||||
+ (block 2
|
|
||||||
+ (edge-from entry (flags "FALLTHRU"))
|
|
||||||
+ (cnote 3 [bb 2] NOTE_INSN_BASIC_BLOCK)
|
|
||||||
+ (insn 4 (set (reg:DI <0>) (reg:DI x0)))
|
|
||||||
+ (insn 5 (set (reg:DI <1>)
|
|
||||||
+ (plus:DI (reg:DI <0>) (const_int 768))))
|
|
||||||
+ (insn 6 (set (mem:SI (plus:DI (reg:DI <1>)
|
|
||||||
+ (const_int -256)) [1 &data+512 S4 A4])
|
|
||||||
+ (const_int 0)))
|
|
||||||
+ (insn 7 (set (mem:SI (plus:DI (reg:DI <0>)
|
|
||||||
+ (const_int 508)) [1 &data+508 S4 A4])
|
|
||||||
+ (const_int 0)))
|
|
||||||
+ (edge-to exit (flags "FALLTHRU"))
|
|
||||||
+ ) ;; block 2
|
|
||||||
+ ) ;; insn-chain
|
|
||||||
+ ) ;; function
|
|
||||||
+}
|
|
||||||
--
|
|
||||||
2.39.3
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user