Skip to content

Clang-omp building issue #70

@tanvir047

Description

@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<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 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions