Hi, I’ve just installed the CUDA toolkit and SDK for the first time, CUDA 3.0 on a Macbook Pro with a 9400M running 10.6.2.
I cd to /Developer/GPU Computing/C and type ‘make’.
It starts building things (with a bunch of warnings) and then fails while building deviceQueryDrv with message “ld: library not found for -lcuda”.
Searching /usr/local/cuda/lib, there is no libcuda.
In common.mk, I see that USEDRVAPI is the flag that determines this -lcuda argument; tried setting it to 0 in the deviceQueryDrv Makefile just for kicks, and that obviously didn’t work.
Any ideas?
Thanks!
Mike
Full make output below:
[codebox]a - obj/i386/release/bank_checker.cpp.o
a - obj/i386/release/cmd_arg_reader.cpp.o
a - obj/i386/release/cutil.cpp.o
a - obj/i386/release/stopwatch.cpp.o
a - obj/i386/release/stopwatch_linux.cpp.o
a - obj/i386/release/multithreading.cpp.o
a - obj/i386/release/paramgl.cpp.o
a - obj/i386/release/param.cpp.o
src/rendercheck_gl.cpp:58: warning: unused parameter ‘bQAReadback’
src/rendercheck_gl.cpp:58: warning: unused parameter ‘bUseFBO’
src/rendercheck_gl.cpp: In member function ‘virtual bool CheckRender::PGMvsPGM(const char*, const char*, float, float)’:
src/rendercheck_gl.cpp:148: warning: too many arguments for format
src/rendercheck_gl.cpp: In member function ‘virtual bool CheckRender::PPMvsPPM(const char*, const char*, float, float)’:
src/rendercheck_gl.cpp:194: warning: too many arguments for format
src/rendercheck_gl.cpp:187: warning: unused variable ‘src_data’
src/rendercheck_gl.cpp:187: warning: unused variable ‘ref_data’
src/rendercheck_gl.cpp: In member function ‘virtual bool CheckRender::compareBin2BinUint(const char*, const char*, unsigned int, float, float)’:
src/rendercheck_gl.cpp:230: warning: too few arguments for format
src/rendercheck_gl.cpp:232: warning: too many arguments for format
src/rendercheck_gl.cpp: In member function ‘virtual bool CheckBackBuffer::readback(GLuint, GLuint, GLuint)’:
src/rendercheck_gl.cpp:463: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘GLuint’
src/rendercheck_gl.cpp:467: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘GLuint’
src/rendercheck_gl.cpp: At global scope:
src/rendercheck_gl.cpp:522: warning: unused parameter ‘Bpp’
src/rendercheck_gl.cpp:549: warning: unused parameter ‘width’
src/rendercheck_gl.cpp:549: warning: unused parameter ‘height’
src/rendercheck_gl.cpp:549: warning: unused parameter ‘Bpp’
src/rendercheck_gl.cpp:564: warning: unused parameter ‘width’
src/rendercheck_gl.cpp:564: warning: unused parameter ‘height’
src/rendercheck_gl.cpp:564: warning: unused parameter ‘Bpp’
src/rendercheck_gl.cpp:706: warning: unused parameter ‘width’
src/rendercheck_gl.cpp:706: warning: unused parameter ‘height’
a - obj/i386/release/rendercheck_gl.cpp.o
./…/shared//inc/shrUtils.h:55: warning: ‘nGpuArchCoresPerSM’ defined but not used
./…/shared//inc/shrUtils.h:55: warning: ‘nGpuArchCoresPerSM’ defined but not used
a - obj/i386/release/shrUtils.cpp.o
a - obj/i386/release/rendercheckGL.cpp.o
a - obj/i386/release/cmd_arg_reader.cpp.o
make -C src/alignedTypes/
make -C src/asyncAPI/
asyncAPI.cu: In function ‘int main(int, char**)’:
asyncAPI.cu:115: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’
make -C src/bandwidthTest/
make -C src/bicubicTexture/
bicubicTexture.cpp:72:1: warning: “MAX” redefined
In file included from …/…/common/inc/cutil_inline.h:21,
from bicubicTexture.cpp:61:
…/…/common/inc/cutil_inline_drvapi.h:29:1: warning: this is the location of the previous definition
make -C src/binomialOptions/
make -C src/BlackScholes/
make -C src/boxFilter/
…/…/…/shared//inc/shrUtils.h:55: warning: ‘nGpuArchCoresPerSM’ defined but not used
make -C src/clock/
clock.cu: In function ‘int main(int, char**)’:
clock.cu:100: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’
make -C src/concurrentKernels/
make -C src/convolutionFFT2D/
main.cpp: In function ‘int calculateFFTsize(int)’:
main.cpp:50: warning: comparison between signed and unsigned integer expressions
make -C src/convolutionSeparable/
…/…/…/shared//inc/shrUtils.h:55: warning: ‘nGpuArchCoresPerSM’ defined but not used
make -C src/convolutionTexture/
main.cpp: In function ‘int main(int, char**)’:
main.cpp:127: warning: comparison between signed and unsigned integer expressions
make -C src/cppIntegration/
make -C src/dct8x8/
…/…/…/shared//inc/shrUtils.h:55: warning: ‘nGpuArchCoresPerSM’ defined but not used
…/…/…/shared//inc/shrUtils.h:55: warning: ‘nGpuArchCoresPerSM’ defined but not used
make -C src/deviceQuery/
deviceQuery.cpp: In function ‘int main(int, const char**)’:
deviceQuery.cpp:121: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘const char*’
deviceQuery.cpp:121: warning: too many arguments for format
make -C src/deviceQueryDrv/
deviceQueryDrv.cpp: In function ‘int main(int, char**)’:
deviceQueryDrv.cpp:44: warning: unused variable ‘err’
ld: library not found for -lcuda
collect2: ld returned 1 exit status
make[1]: *** […/…/bin/darwin/release/deviceQueryDrv] Error 1
make: *** [src/deviceQueryDrv/Makefile.ph_build] Error 2
zsh: exit 2 make
[/codebox]