No Sample Codes Compilation

Hi Guys,

Ok, this issue has already been reported, but proposed solutions did not work with my system.

I have a MPB 2010, with a 330M, running SL 10.6.8, CUDA Drivers 4.0.17, GCC 4.2.1 and the latest SDK and Samples (downloaded today from Cuda Zone).

I got this error during compilation of Sample Codes:

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

a - obj/i386/release/rendercheck_gl.cpp.o

src/shrUtils.cpp: In function ‘int shrLogV(int, int, const char*, char*)’:

src/shrUtils.cpp:375: warning: format not a string literal and no format arguments

src/shrUtils.cpp:379: warning: format not a string literal and no format arguments

src/shrUtils.cpp:382: warning: format not a string literal and no format arguments

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/ 

ld: in ../../lib/libcutil_i386.a, archive has no table of contents

collect2: ld returned 1 exit status

make[1]: *** [../../bin/darwin/release/alignedTypes] Error 1

make: *** [src/alignedTypes/Makefile.ph_build] Error 2

I tried ran ranlibs on libcutil_i386.a, did not work (same error).

I also tried to compile for 64bits arch, ( make x86_64=1), I got the same:

make -C src/alignedTypes/ 

ld: in ../../../shared//lib/libshrutil_x86_64.a, archive has no table of contents

collect2: ld returned 1 exit status

make[1]: *** [../../bin/darwin/release/alignedTypes] Error 1

make: *** [src/alignedTypes/Makefile.ph_build] Error 2

cassini:C$ cd lib/

cassini:lib$ make x86_64=1

make: *** No targets specified and no makefile found.  Stop.

cassini:lib$ ranlib libcutil_x86_64.a

cassini:lib$ cd ..

cassini:C$ make x86_64=1

make -C src/alignedTypes/ 

ld: in ../../../shared//lib/libshrutil_x86_64.a, archive has no table of contents

collect2: ld returned 1 exit status

make[1]: *** [../../bin/darwin/release/alignedTypes] Error 1

make: *** [src/alignedTypes/Makefile.ph_build] Error 2

I tried to delete and reinstall everything twice, I got the same.

What’s wrong here? Any Idea?

thanks for any feedback.

-A.