Closed igorbelykh86 closed 9 years ago
Hi, It seems you downloaded latest version of "extra" tools for clang (3.6 or 3.7), but clang-omp is based on clang 3.5. Replace code in clang/tools/extra by version 3.5 or just remove it, it is not required for clang-omp
Best regards,
Software Engineer Intel Compiler Team Intel Corp.
02.02.2015 13:45, igorbelykh86 пишет:
Hi, I tryied to build the clang with omp from source code but I have following errors:
>/Users/igor/PrivateProjects/lib/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/igor/PrivateProjects/lib/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/igor/PrivateProjects/lib/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/igor/PrivateProjects/lib/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[3]: ** [tools/clang/tools/extra/clang-apply-replacements/CMakeFiles/clangApplyReplacements.dir/lib/Tooling/ApplyReplacements.cpp.o] Error 1 make[2]: * [tools/clang/tools/extra/clang-apply-replacements/CMakeFiles/clangApplyReplacements.dir/all] Error 2 make[1]: * [all] Error 2 make: *\ [all] Error 1 What's wrong and how I can fix that?
Thanks, Igor
— Reply to this email directly or view it on GitHub https://github.com/clang-omp/clang/issues/61.
Yeah, thanks a lot. It works now
Hi, I tryied to build the clang with omp from source code but I have following errors:
What's wrong and how I can fix that?
Thanks, Igor