clang-omp / clang

clang with OpenMP 3.1 and some elements of OpenMP 4.0 support
clang-omp.github.com
Other
91 stars 15 forks source link

Compilation error on OS X Mavericks #20

Closed mankalas closed 10 years ago

mankalas commented 10 years ago

Hello again,

Still using this page (http://clang.llvm.org/get_started.html) to compile clang, NOT using CMake this time, I ran into this compilation error:

llvm[3]: Compiling MSP430SelectionDAGInfo.cpp for Debug+Asserts build Included from /Users/myself/tmp/llvm/lib/Target/NVPTX/NVPTX.td:19: /Users/myself/tmp/llvm/lib/Target/NVPTX/NVPTXInstrInfo.td:160:1: error: def 'do_SQRTF32_APPROX' already defined def do_SQRTF32_APPROX : Predicate<"do_SQRTF32_PREC==0">; ^ make[3]: * [/Users/vincentboucheny/tmp/build/lib/Target/NVPTX/Debug+Asserts/NVPTXGenAsmWriter.inc.tmp] Error 1 make[2]: * [NVPTX/.makeall] Error 2 make[2]: *\ Waiting for unfinished jobs....

If I comment the lines 160 and 161 of the problematic file, the compilation completes successfully.

alexey-bataev commented 10 years ago

Hi, update and try again.

mankalas commented 10 years ago

Fixed it. Thank you.