Date: Tuesday, May 18, 2021 @ 21:19:45
  Author: svenstaro
Revision: 936300

upgpkg: cuda 11.3.0-2: Switch to gcc10 for compatibility

cuda isn't yet compatible with gcc 11

Modified:
  cuda/trunk/PKGBUILD

----------+
 PKGBUILD |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2021-05-18 21:00:27 UTC (rev 936299)
+++ PKGBUILD    2021-05-18 21:19:45 UTC (rev 936300)
@@ -4,12 +4,12 @@
 pkgbase=cuda
 pkgver=11.3.0
 _driverver=465.19.01
-pkgrel=1
+pkgrel=2
 pkgdesc="NVIDIA's GPU programming toolkit"
 arch=('x86_64')
 url="https://developer.nvidia.com/cuda-zone";
 license=('custom:NVIDIA')
-depends=('gcc' 'gcc-libs' 'opencl-nvidia' 'nvidia-utils' 'python')
+depends=('gcc10' 'gcc10-libs' 'opencl-nvidia' 'nvidia-utils' 'python')
 options=(!strip staticlibs)
 install=cuda.install
 
source=(https://developer.download.nvidia.com/compute/cuda/${pkgver}/local_installers/cuda_${pkgver}_${_driverver}_linux.run
@@ -109,8 +109,8 @@
 
   # Define compilers for CUDA to use.
   # This allows us to use older versions of GCC if we have to.
-  ln -s /usr/bin/gcc "${_prepdir}/opt/cuda/bin/gcc"
-  ln -s /usr/bin/g++ "${_prepdir}/opt/cuda/bin/g++"
+  ln -s /usr/bin/gcc-10 "${_prepdir}/opt/cuda/bin/gcc"
+  ln -s /usr/bin/g++-10 "${_prepdir}/opt/cuda/bin/g++"
 
   # Install profile and ld.so.config files
   install -Dm755 "${srcdir}/cuda.sh" "${_prepdir}/etc/profile.d/cuda.sh"

Reply via email to