scons sets incorrect library path #356

Closed
cdeil opened this Issue Mar 27, 2013 · 0 comments

Projects

None yet

1 participant

@cdeil
cdeil commented Mar 27, 2013

I'm on Mac OS X 10.8 with driver version 5.0.45 and get this error message:

$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
cu_build_function(["performance/targets/cpp_host_cuda_device_release/adjacent_difference.cu"], ["performance/adjacent_difference.test"])
nvcc -o performance/targets/cpp_host_cuda_device_release/adjacent_difference.o -c -gencode=arch=compute_10,\"code=sm_10,compute_10\" -Xcompiler -DTHRUST_HOST_SYSTEM=THRUST_HOST_SYSTEM_CPP -Xcompiler -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_CUDA -Xcompiler -O2 -Xcompiler -Wall -Xcompiler -m32 -I . -I /usr/local/cuda/include -I performance -I testing performance/targets/cpp_host_cuda_device_release/adjacent_difference.cu
gcc -o performance/targets/cpp_host_cuda_device_release/adjacent_difference -m32 performance/targets/cpp_host_cuda_device_release/adjacent_difference.o -L/usr/local/cuda/lib64 -lstdc++ -lcudart
ld: warning: directory not found for option '-L/usr/local/cuda/lib64'
ld: library not found for -lcudart
collect2: ld returned 1 exit status
scons: *** [performance/targets/cpp_host_cuda_device_release/adjacent_difference] Error 1
scons: building terminated because of errors.

The reason is that the CUDA libraries are in /usr/local/cuda/lib and not in /usr/local/cuda/lib64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment