Originally Posted by mats_b_tegner
I would strongly suggest building/installing GCC 4.6.3 using configure --program-suffix=-4.6.3. If you downgrade your main GCC-packages you will break a lot of things.
I installed by --prefix=/new/dir/bin/to/gcc.
I finally got it working ;
1-Install gcc-4.4.7 to a different location
2-Install CUDA 5.0 to it's default location
3-Install Samples and SDK to your home directory
4-Add gcc-4.4.7 to your path (overwrite gcc-4.7.1)
5-Add LD_LIBRARY_PATH to your path
6-Add nvcc (/usr/local/cuda-5.0/bin) to your path
7-Compile (make) samples
Editing common.mk is not necessary, be sure to try gcc-4.4.7 not other versions.