'make' command not working

Hi, I am completely new to CUDA but i downloaded the getting started on MAC OS guide found here

http://developer.nvidia.com/object/cuda_3_0_downloads.html

after following all the instructions on how to install all the CUDA drivers and software, I am stuck on the step where it says “You should compile them all by changing to /Developer/GPU Computing/C and typing make.”

The terminal spits out the following error message. Any help about how to solve this problem would be much appreciated!

make -C src/3DFD/
ld: warning: in obj/i386/release/3dfd.cu.o, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /usr/local/cuda/lib/libcudart.dylib, file was built for i386 which is not the architecture being linked (x86_64)
Undefined symbols:
“_main”, referenced from:
start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** […/…/bin/darwin/release/3dfd] Error 1
make: *** [src/3DFD/Makefile.ph_build] Error 2
wpa063029:C mohammed$ make
make -C src/3DFD/
ld: warning: in obj/i386/release/3dfd.cu.o, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /usr/local/cuda/lib/libcudart.dylib, file was built for i386 which is not the architecture being linked (x86_64)
Undefined symbols:
“_main”, referenced from:
start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** […/…/bin/darwin/release/3dfd] Error 1
make: *** [src/3DFD/Makefile.ph_build] Error 2

I’m not sure, but it sounds like the particular library file:

/usr/local/cuda/lib/libcudart.dylib

was built/compiled for 32-bit (i386). I’m not 100% sure however. What you can do is delete your previous installation and re-install:

Delete previous CUDA Installations:

rm -rf /usr/local/cuda/
rm -rf /Developer/GPU\ Computing/

Re-Install everything again:

  1. Driver
  2. Toolkit
  3. SDK

If you want, before re-installing, you can run (from /Developer/GPU\ Computing/C/:

make clobber
make

and see what happens …

I’m not sure, but it sounds like the particular library file:

/usr/local/cuda/lib/libcudart.dylib

was built/compiled for 32-bit (i386). I’m not 100% sure however. What you can do is delete your previous installation and re-install:

Delete previous CUDA Installations:

rm -rf /usr/local/cuda/
rm -rf /Developer/GPU\ Computing/

Re-Install everything again:

  1. Driver
  2. Toolkit
  3. SDK

If you want, before re-installing, you can run (from /Developer/GPU\ Computing/C/:

make clobber
make

and see what happens …