Hello,
I was trying to install CUDA on my machine but receive an error already on attempting to compile the examples.
I’m on Ubuntu 18.04 with a GTX 1050 Ti, gcc version 8.40. and CUDA version 11.0 (clean install).
Output from cat /proc/driver/nvidia/version is
NVRM version: NVIDIA UNIX x86_64 Kernel Module 450.51.06 Sun Jul 19 20:02:54 UTC 2020
GCC version: gcc version 8.4.0 (Ubuntu 8.4.0-1ubuntu1~18.04)
On running make in the samples directory it fails and the last lines of output are:
/home/myname/anaconda3/bin/…/lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/…/…/…/…/x86_64-conda_cos6-linux-gnu/bin/ld: vectorAddDrv.o:(.data.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]+0x0): undefined reference to `__gxx_personality_v0’
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:380: vectorAddDrv] Error 1
make[1]: Leaving directory ‘/home/myname/NVIDIA_CUDA-11.0_Samples/0_Simple/vectorAddDrv’
make: *** [Makefile:51: 0_Simple/vectorAddDrv/Makefile.ph_build] Error 2
Does anyone have any ideas what the problem could be? Since I only want to use programs that depend on CUDA, I just need to get it working.