debug in device emulation mode

Hello, when I try to compile the Fortran CUDA sample in device emulation mode with -G option
(debug mode), I got the following error:

nvcc -c -G -deviceemu Cuda_function.cu
ptxas /tmp/tmpxft_00006544_00000000-8.ptx, line 182; fatal : Parsing error near ‘.’: syntax error
ptxas fatal : Ptx assembly aborted due to errors
make: *** [Cuda_function.o] Error 255

If I remove the -G option the program compiles (and runs) fine.
I have the following set up.
NVIDIA toolkit: NVIDIA_CUDA_Toolkit_1.1_rhel4.5_x86_64

uname -a:
Linux zodiac.iac.rm.cnr.it 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:39:22 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux

gcc -v:
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: …/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.1 20061011 (Red Hat 4.1.1-30)

Is this a know problem or I am missing something?
Any help is really appreciated. Thanks in advance!
Massimo

You need to use:
nvcc -c -g -deviceemu Cuda_function.cu

The flag “-G” will be need for the real GPU debugging (coming soon).

Great news! ;)