I just got a little GPU to start tinkering with porting my application to CUDA, and I’m ran into some trouble building the SDK examples. Some build fine, but matrixMulDrv fails:
In file included from /usr/include/features.h:352,
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
make: *** [data/matrixMul_kernel.cubin] Error 255
The problem appears to be that x86_64 is not defined, which sets __WORDSIZE=32 and gives the error, because it should look for stubs-64.h. This in turn appears to be because common.mk hardcodes -m32 in the cubin compile lines. Changing this to -m64 allows the compile to continue, but this should probably be detected.