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

Clang-omp building issue #70

Open tanvir047 opened 9 years ago

tanvir047 commented 9 years ago

Hi,

I am trying to build clang with omp and facing an unusual error :

llvm[6]: Compiling ApplyReplacements.cpp for Debug+Asserts build /Users/tanvir/llvm/tools/clang/tools/extra/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp:237:26: error: no matching constructor for initialization of 'llvm::raw_fd_ostream' llvm::raw_fd_ostream FileStream(FileName, EC, llvm::sys::fs::F_Text); ^ ~~~~~~~ /Users/tanvir/llvm/include/llvm/Support/raw_ostream.h:354:3: note: candidate constructor not viable: no known conversion from 'std::error_code' to 'std::string &' (aka 'basic_string<char, char_traits, allocator > &') for 2nd argument raw_fd_ostream(const char _Filename, std::string &ErrorInfo, ^ /Users/tanvir/llvm/include/llvm/Support/raw_ostream.h:359:3: note: candidate constructor not viable: no known conversion from 'const char ' to 'int' for 1st argument; dereference the argument with raw_fd_ostream(int fd, bool shouldClose, bool unbuffered=false); ^ /Users/tanvir/llvm/include/llvm/Support/raw_ostream.h:315:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided class raw_fd_ostream : public rawostream { ^ 1 error generated. make[6]: ** [/Users/tanvir/build/tools/clang/tools/extra/clang-apply-replacements/lib/Tooling/Debug+Asserts/ApplyReplacements.o] Error 1 make[5]: * [all] Error 1 make[4]: * [all] Error 1 make[3]: * [extra/.makeall] Error 2 make[2]: * [all] Error 1 make[1]: * [clang/.makeall] Error 2 make: * [all] Error 1

How can I solve this?

Regards, Tanvir

alexey-bataev commented 9 years ago

You must download extra of version 3.5 to be able to compile it along with clang-omp

Best regards,

Alexey Bataev

Software Engineer Intel Compiler Team Intel Corp.

21.04.2015 4:31, tanvir047 пишет:

Hi,

I am trying to build clang with omp and facing an unusual error :

llvm[6]: Compiling ApplyReplacements.cpp for Debug+Asserts build /Users/tanvir/llvm/tools/clang/tools/extra/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp:237:26: error: no matching constructor for initialization of 'llvm::raw_fd_ostream' llvm::raw_fd_ostream FileStream(FileName, EC, llvm::sys::fs::F_Text); ^ ~~~~~~~ /Users/tanvir/llvm/include/llvm/Support/raw_ostream.h:354:3: note: candidate constructor not viable: no known conversion from 'std::error_code' to 'std::string &' (aka 'basic_string, allocator > &') for 2nd argument raw_fd_ostream(const char /Filename, std::string &ErrorInfo, ^ /Users/tanvir/llvm/include/llvm/Support/rawostream.h:359:3: note: candidate constructor not viable: no known conversion from 'const char ' to 'int' for 1st argument; dereference the argument with raw_fd_ostream(int fd, bool shouldClose, bool unbuffered=false); ^ /Users/tanvir/llvm/include/llvm/Support/raw_ostream.h:315:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided class raw_fd_ostream : public raw_ostream { ^ 1 error generated. make[6]: /_ [/Users/tanvir/build/tools/clang/tools/extra/clang-apply-replacements/lib/Tooling/Debug+Asserts/ApplyReplacements.o] Error 1 make[5]: * [all] Error 1 make[4]: * [all] Error 1 make[3]: * [extra/.makeall] Error 2 make[2]: * [all] Error 1 make[1]: * [clang/.makeall] Error 2 make: * [all] Error 1

How can I solve this?

Regards, Tanvir

— Reply to this email directly or view it on GitHub https://github.com/clang-omp/clang/issues/70.