- 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/package/show/devel:gcc/gcc13?expand=0&rev=78
This commit is contained in:
parent
500bda96e6
commit
ed887cbd3a
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -248,14 +248,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 +307,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
|
||||||
|
|
||||||
@ -460,11 +463,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 +887,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 +992,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 +1069,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -248,14 +248,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 +307,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
|
||||||
|
|
||||||
@ -460,11 +463,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 +887,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 +992,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 +1069,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -248,14 +248,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 +307,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
|
||||||
|
|
||||||
@ -460,11 +463,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 +887,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 +992,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 +1069,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -248,14 +248,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 +307,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
|
||||||
|
|
||||||
@ -460,11 +463,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 +887,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 +992,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 +1069,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -248,14 +248,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 +307,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
|
||||||
|
|
||||||
@ -460,11 +463,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 +887,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 +992,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 +1069,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -247,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
|
||||||
@ -305,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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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
|
||||||
|
@ -247,14 +247,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 +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
|
||||||
|
|
||||||
@ -459,11 +462,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 +886,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 +991,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 +1068,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@
|
||||||
|
@ -1456,11 +1456,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
|
||||||
|
|
||||||
|
@ -647,11 +647,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,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
@ -2464,11 +2464,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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user