Need help. Can't compile Cuda SDK Can't compile SDK in Arch Linux x64, GCC 4.5.1

Hey, thanks for the info Schnouki. I’ll be sure to give your repo and gcc 4.4 a go.

Hey, thanks for the info Schnouki. I’ll be sure to give your repo and gcc 4.4 a go.

So after fooling around with this for several days, I have gotten this to more or less work. Here is what I did, mostly following the steps outlined on the linux documentation.

  1. Install correct drivers and cuda itself, following the instructions exactly on CUDA Toolkit Documentation

  2. sudo apt-get install gcc-4.4 g+±4.4

  3. sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 50 --slave /usr/bin/g++ g++ /usr/bin/g+±4.4
    sudo update-alternatives --set gcc /usr/bin/gcc-4.4

  4. I still had to use make -k because some of the runtime libraries wouldn’t link at runtime for make, but most of the stuff built

These commands (3) basically change the symlinks that are invoked when gcc is called. You will know it worked if when you type gcc -v it says 4.4.

I hope this helps some people.