[llvm-dev] LLVM 4.0 with clang 4.0
Leijsten, G.H.P. via llvm-dev
llvm-dev at lists.llvm.org
Mon Jul 10 04:18:37 PDT 2017
Hello,
Is anyone except for me having trouble to compile LLVM after adding Clang?
I am compiling on Mac OS X, and having trouble because of the following error:
/LLVM/tools/clang/utils/TableGen/ClangAttrEmitter.cpp:2213:30: error: no viable conversion from 'vector<llvm::StringRef>' to 'vector<std::string>'
std::vector<std::string> OSes = R->getValueAsListOfStrings("OSes");
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:538:5: note: candidate constructor not viable: no known conversion
from 'std::vector<StringRef>' to 'initializer_list<value_type>' (aka 'initializer_list<std::__1::basic_string<char> >') for 1st argument
vector(initializer_list<value_type> __il);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:550:5: note: candidate constructor not viable: no known conversion
from 'std::vector<StringRef>' to 'const std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > > &' for 1st argument
vector(const vector& __x);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:556:5: note: candidate constructor not viable: no known conversion
from 'std::vector<StringRef>' to 'std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > > &&' for 1st argument
vector(vector&& __x)
I tried also installing llvm 4.0 and clang 4.0 using MacPorts and using that to compile, but it resulted in the same error, but with a different path…
It seems that there is a problem with matching vector of StringRefs in the libraries installed on my machine.
I tried searching the web, but unfortunately no results. Is there anyone that has seen this error?
Kind regards,
Guus Leijsten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170710/d23aa348/attachment-0001.html>
More information about the llvm-dev
mailing list