I've got problem with emerge nvidia-cuda-sdk. Process hangs on "make[1]: Leaving directory `/var/tmp/portage/dev-util/nvidia-cuda-sdk-5.0.35-r1/work/sdk/6_Advanced/segmentationTreeThrust'", with no errors. htop shows no processor occupancy, I have to Ctrl+C to quit emerge, because this state can last forever. I've tried CFLAGS="-mtune=generic -O2 -pipe" CXXFLAGS="-mtune=generic -O2 -pipe" with no effect.
emerge --info '=dev-util/nvidia-cuda-sdk-5.0.35-r1'

I've got problem with emerge nvidia-cuda-sdk. Process hangs on "make[1]: Leaving directory `/var/tmp/portage/dev-util/nvidia-cuda-sdk-5.0.35-r1/work/sdk/6_Advanced/segmentationTreeThrust'", with no errors. htop shows no processor occupancy, I have to Ctrl+C to quit emerge, because this state can last forever. I've tried CFLAGS="-mtune=generic -O2 -pipe" CXXFLAGS="-mtune=generic -O2 -pipe" with no effect.
emerge --info '=dev-util/nvidia-cuda-sdk-5.0.35-r1'
...
and hangs here.

Plz help

It was caused by bug 474716 while compiling SimpleMPI example. I've just commited a workaround. Next time please file a bug at https://bugs.gentoo.org/
Cheers,
Kacper