hello, this maybe a simple question but I just don’t know how to deal with it.
Compiling matrixMulDrv sample project failed under Ubuntu 8.04 64bit:
make[1]: Entering directory /home/yliu/Workspace/CUDA/sdk/projects/matrixMulDrv' In file included from /usr/include/features.h:354, from /home/yliu/Workspace/CUDA/cuda/bin/../include/host_config.h:53, from /home/yliu/Workspace/CUDA/cuda/bin/../include/cuda_runtime.h:45, from <command-line>:0: /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory make[1]: *** [data/matrixMul_kernel.cubin] Error 255 make[1]: Leaving directory /home/yliu/Workspace/CUDA/sdk/projects/matrixMulDrv’
make: *** [projects/matrixMulDrv/Makefile.ph_build] Error 2
Besides the fact that Ubuntu-8.04 isn’t supported, it looks like you’re missing the 32bit compatibility glibc (which is where gnu/stubs-32.h comes from) package.
I guess on 64bit machine the macro __WORDSIZE should have value 64. But when compiling, stubs-32.h is required, which means __WORDSIZE is 32. That’s why I feel confused. I am wondering where can I pass in some parameters to let system know __WORDSIZE should have value 64. I used to do coding under windows and just started working on linux, so please don’t angry with my possible simple/stupid questions. :">
By the way, I am using gcc 4.2.3. And “uname -m” command returns x86_64.