ashwin / coursera-heterogeneous

Resources to work offline on the assignments of Heterogenous Parallel Programming course from Coursera.
71 stars 60 forks source link

problems compiling in Mac OS X mp1..mp3 #30

Closed jvianalopes closed 11 years ago

jvianalopes commented 11 years ago

I downloaded the coursera-heterogeneous from github I followed the instructions to compile in Mac OS X. I build the mp0 sucessfully but for the others I have the following error

clang: error: unsupported option '-dumpspecs' clang: error: no input files CMake Error at mp1_generated_mp1.cu.o.cmake:206 (message): Error generating /Users/jlopes/Documents/Coursera/coursera-heterogeneous/CMakeFiles/mp1.dir/src/Debug/mp1_generated_mp1.cu.o make: *\ [/Users/jlopes/Documents/Coursera/coursera-heterogeneous/CMakeFiles/mp1.dir/src/Debug/mp1_generated_mp1.cu.o] Error 1

I also tried to use the "Unix command line" approach The cmake step ran sucessfully The make mp0 compiled without problems The compilation of the others assignments gave the same error related with clang and the unsupported option "-dumpspecs"

Cheers João

iemejia commented 11 years ago

did you check this http://blog.cryptohaze.com/2012/12/nvcc-os-x-clang-and-dumpspecs.html ? what are your nvcc and cmake versions ? isn't it that issue ?

jvianalopes commented 11 years ago

Hi Ismael,

in fact the macports install cmake @2.8.10 I compiled and installed cmake 2.8.8 by hand in /usr/local and now I'm able to compile the different assignments

Thanks for all João

On Jan 16, 2013, at 2:41 PM, Ismael Mejia wrote:

did you check this http://blog.cryptohaze.com/2012/12/nvcc-os-x-clang-and-dumpspecs.html ? what are your nvcc and cmake versions ? isn't it that issue ?

— Reply to this email directly or view it on GitHub.

ashwin commented 11 years ago

@iemejia Thanks for helping out. If you think this might affect a large number of Mac users, please see if would like to update README.md.

@jvianalopes I am glad you shared your problem. Hopefully, this will help others who might face this problem too. I will close this issue now.