Problem building OpenCV on Macbook Pro running Mavericks (OSX 10.9) and CUDA driver version 5.5.28. I'm running into the same problem compiling CUDA samples using Nsight and I'm having trouble finding where the '-dumpspecs' flag is being set. Evidently the new version of the CUDA compiler no longer accepts the -dumpspecs flag or the new version or the make has added the -dumpspecs flag and it doesn't work on Mavericks. If you have any insights into what has actually happened I'd love to hear about it.
[ 22%] Building NVCC (Device) object modules/core/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_matrix_operations.cu.o clang: error: unsupported option '-dumpspecs' clang: error: no input files CMake Error at cuda_compile_generated_matrix_operations.cu.o.cmake:208 (message): Error generating /Users/jennifer/Documents/development/OpenCV/opencv-2.4.6.1/release/modules/core/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_matrix_operations.cu.o
make[2]: * [modules/core/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_matrix_operations.cu.o] Error 1 make[1]: * [modules/core/CMakeFiles/opencv_core.dir/all] Error 2