<div dir="ltr">It looks like you are trying to compile mismatching LLVM and Clang (more specifically, newer LLVM and older Clang). LLVM returns a vector of StringRefs from getValueAsListOfStrings after r<span style="font-size:12.800000190734863px">304325, and Clang was updated in a subsequent commit. How are you building Clang?</span></div><div class="gmail_extra"><br><div class="gmail_quote">On 10 July 2017 at 12:18, Leijsten, G.H.P. via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
Hello,
<div><br>
</div>
<div>Is anyone except for me having trouble to compile LLVM after adding Clang?</div>
<div><br>
</div>
<div>I am compiling on Mac OS X, and having trouble because of the following error:</div>
<div><br>
</div>
<div>
<div style="margin:0px;line-height:normal;font-family:'Andale Mono';color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">/LLVM/tools/clang/utils/<wbr>TableGen/ClangAttrEmitter.cpp:<wbr>2213:30:
</span><span style="font-variant-ligatures:no-common-ligatures;color:#c33720">error:
</span><span style="font-variant-ligatures:no-common-ligatures">no viable conversion from 'vector<</span><span style="font-variant-ligatures:no-common-ligatures;color:#34bbc8">llvm::StringRef</span><span style="font-variant-ligatures:no-common-ligatures">>'
 to 'vector<</span><span style="font-variant-ligatures:no-common-ligatures;color:#34bbc8">std::string</span><span style="font-variant-ligatures:no-common-ligatures">>'</span></div>
<div style="margin:0px;line-height:normal;font-family:'Andale Mono';color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">    std::vector<std::string> OSes = R->getValueAsListOfStrings("<wbr>OSes");</span></div>
<div style="margin:0px;line-height:normal;font-family:'Andale Mono';color:rgb(52,188,38);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">                             ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<wbr>~~~~</span></div>
<div style="margin:0px;line-height:normal;font-family:'Andale Mono';color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">/Applications/Xcode.app/<wbr>Contents/Developer/Toolchains/<wbr>XcodeDefault.xctoolchain/usr/<wbr>bin/../include/c++/v1/vector:<wbr>538:5:
</span><span style="font-variant-ligatures:no-common-ligatures;color:#000000">note:
</span><span style="font-variant-ligatures:no-common-ligatures;color:#28fe14">candidate constructor not viable: no known conversion</span></div>
<div style="margin:0px;line-height:normal;font-family:'Andale Mono';color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">      from 'std::vector<StringRef>' to 'initializer_list<value_type>' (aka 'initializer_list<std::__1::<wbr>basic_string<char> >') for 1st argument</span></div>
<div style="margin:0px;line-height:normal;font-family:'Andale Mono';color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">    vector(initializer_list<value_<wbr>type> __il);</span></div>
<div style="margin:0px;line-height:normal;font-family:'Andale Mono';color:rgb(52,188,38);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">    ^</span></div>
<div style="margin:0px;line-height:normal;font-family:'Andale Mono';color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">/Applications/Xcode.app/<wbr>Contents/Developer/Toolchains/<wbr>XcodeDefault.xctoolchain/usr/<wbr>bin/../include/c++/v1/vector:<wbr>550:5:
</span><span style="font-variant-ligatures:no-common-ligatures;color:#000000">note:
</span><span style="font-variant-ligatures:no-common-ligatures;color:#28fe14">candidate constructor not viable: no known conversion</span></div>
<div style="margin:0px;line-height:normal;font-family:'Andale Mono';color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">      from 'std::vector<StringRef>' to 'const std::__1::vector<std::__1::<wbr>basic_string<char>, std::__1::allocator<std::__1::<wbr>basic_string<char> > > &' for 1st argument</span></div>
<div style="margin:0px;line-height:normal;font-family:'Andale Mono';color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">    vector(const vector& __x);</span></div>
<div style="margin:0px;line-height:normal;font-family:'Andale Mono';color:rgb(52,188,38);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">    ^</span></div>
<div style="margin:0px;line-height:normal;font-family:'Andale Mono';color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">/Applications/Xcode.app/<wbr>Contents/Developer/Toolchains/<wbr>XcodeDefault.xctoolchain/usr/<wbr>bin/../include/c++/v1/vector:<wbr>556:5:
</span><span style="font-variant-ligatures:no-common-ligatures;color:#000000">note:
</span><span style="font-variant-ligatures:no-common-ligatures;color:#28fe14">candidate constructor not viable: no known conversion</span></div>
<div style="margin:0px;line-height:normal;font-family:'Andale Mono';color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">      from 'std::vector<StringRef>' to 'std::__1::vector<std::__1::<wbr>basic_string<char>, std::__1::allocator<std::__1::<wbr>basic_string<char> > > &&' for 1st argument</span></div>
<div style="margin:0px;line-height:normal;font-family:'Andale Mono';color:rgb(40,254,20);background-color:rgba(0,0,0,0.901961)">
<span style="font-variant-ligatures:no-common-ligatures">    vector(vector&& __x)</span></div>
</div>
<div><br>
</div>
<div>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…</div>
<div><br>
</div>
<div>It seems that there is a problem with matching vector of StringRefs in the libraries installed on my machine.</div>
<div><br>
</div>
<div>I tried searching the web, but unfortunately no results. Is there anyone that has seen this error?</div>
<div><br>
</div>
<div>Kind regards,</div>
<div>Guus Leijsten</div>
<div><br>
</div>
</div>

<br>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>