paul263
July 17th, 2016, 07:35 PM
Hello everyone,
After letting my 64 bit Ubuntu 16.04 run some 'important updates', I discovered that a newer version of gcc has been installed and this led CUDA not to work anymore. Now, when I use CUDA, I get the following error message
#error -- unsupported GNU version! gcc versions later than 5.3 are not supported!
And after typing in a terminal console
gcc --version
I get
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.1) 5.4.0 20160609
which explains why it doesn't work anymore. After some research, I learned that a solution could be to run the following
apt-get remove gcc g++
apt-get install gcc-(version-number) g++-(version-number)
But this trick only works for gcc versions < 5 where we could type the commands with a precise version number (ex. 3.4, 4.7, ...) whereas for versions > 5, this commands only works for version-number = 5 (and this installs the latest version available = 5.4).
Therefore, I would really need to downgrade gcc from 5.4 to 5.3 but I don't know which other method I could use. Would you have any ideas about that?
Thanks a lot in advance,
Paul
After letting my 64 bit Ubuntu 16.04 run some 'important updates', I discovered that a newer version of gcc has been installed and this led CUDA not to work anymore. Now, when I use CUDA, I get the following error message
#error -- unsupported GNU version! gcc versions later than 5.3 are not supported!
And after typing in a terminal console
gcc --version
I get
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.1) 5.4.0 20160609
which explains why it doesn't work anymore. After some research, I learned that a solution could be to run the following
apt-get remove gcc g++
apt-get install gcc-(version-number) g++-(version-number)
But this trick only works for gcc versions < 5 where we could type the commands with a precise version number (ex. 3.4, 4.7, ...) whereas for versions > 5, this commands only works for version-number = 5 (and this installs the latest version available = 5.4).
Therefore, I would really need to downgrade gcc from 5.4 to 5.3 but I don't know which other method I could use. Would you have any ideas about that?
Thanks a lot in advance,
Paul