<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Oct 19, 2015 at 1:28 PM, Adrian Prantl via cfe-commits <span dir="ltr"><<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@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"><span class=""><br><div><blockquote type="cite"><div>On Oct 16, 2015, at 5:47 PM, Richard Smith <<a href="mailto:richard@metafoo.co.uk" target="_blank">richard@metafoo.co.uk</a>> wrote:</div><br><div><div dir="ltr" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div class="gmail_extra"><div class="gmail_quote"><div>Great, looks like progress. Next you need a correct module map for libc++ that actually covers all of its headers :) Try the attached one. </div></div></div></div><br></div></blockquote></div></span>Sorry for the delay.<div>With the updated module map I get<div><br></div><div><div style="margin:0px;line-height:normal;font-family:Menlo"><b>/Volumes/Data/llvm/_build.ninja.release/bin/../include/c++/v1/module.modulemap:64:14: </b><span style="color:#c33720"><b>error: </b></span></div><div style="margin:0px;line-height:normal;font-family:Menlo"><b>      header 'locale.h' not found</b></div><div style="margin:0px;line-height:normal;font-family:Menlo">      header "locale.h"</div><div style="margin:0px;line-height:normal;font-family:Menlo;color:rgb(52,189,38)"><b>             ^</b></div><div style="margin:0px;line-height:normal;font-family:Menlo"><b>/Volumes/Data/llvm/_build.ninja.release/bin/../include/c++/v1/cassert:20:10: note: </b></div><div style="margin:0px;line-height:normal;font-family:Menlo">      submodule of top-level module 'std' implicitly imported here</div><div style="margin:0px;line-height:normal;font-family:Menlo">#include <__config></div><div style="margin:0px;line-height:normal;font-family:Menlo;color:rgb(52,189,38)"><b>         ^</b></div></div><div>and after commenting out the locale module I get the rather puzzling (shouldn’t this have been avoided by the clang changes?):</div></div></div></blockquote><div><br></div><div>Ah right, complex.h should not really be treated as an [extern_c] module. It doesn't make any sense in that context (... or in general ...). Try the attached libc++ module map instead (sorry, untested on my end).</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div><div style="margin:0px;line-height:normal;font-family:Menlo">While building module 'std' imported from /Volumes/Data/llvm/_build.ninja.release/bin/../include/c++/v1/cassert:20:</div><div style="margin:0px;line-height:normal;font-family:Menlo">In file included from <module-includes>:2:</div><div style="margin:0px;line-height:normal;font-family:Menlo">In file included from /Volumes/Data/llvm/_build.ninja.release/bin/../include/c++/v1/complex.h:29:</div><div style="margin:0px;line-height:normal;font-family:Menlo">In file included from /Volumes/Data/llvm/_build.ninja.release/bin/../include/c++/v1/ccomplex:21:</div><div style="margin:0px;line-height:normal;font-family:Menlo">In file included from /Volumes/Data/llvm/_build.ninja.release/bin/../include/c++/v1/complex:244:</div><div style="margin:0px;line-height:normal;font-family:Menlo"><b>/Volumes/Data/llvm/_build.ninja.release/bin/../include/c++/v1/type_traits:219:1: </b><span style="color:#c33720"><b>error: </b></span></div><div style="margin:0px;line-height:normal;font-family:Menlo"><b>      templates must have C++ linkage</b></div><div style="margin:0px;line-height:normal;font-family:Menlo">template <class></div><div style="margin:0px;line-height:normal;font-family:Menlo;color:rgb(52,189,38)"><b>^~~~~~~~~~~~~~~~</b></div><div style="margin:0px;line-height:normal;font-family:Menlo"><b>/Volumes/Data/llvm/_build.ninja.release/bin/../include/c++/v1/type_traits:222:1: </b><span style="color:#c33720"><b>error: </b></span></div><div style="margin:0px;line-height:normal;font-family:Menlo"><b>      templates must have C++ linkage</b></div><div style="margin:0px;line-height:normal;font-family:Menlo">template <class _Tp></div><div style="margin:0px;line-height:normal;font-family:Menlo;color:rgb(52,189,38)"><b>^~~~~~~~~~~~~~~~~~~~</b></div><div style="margin:0px;line-height:normal;font-family:Menlo"><b>/Volumes/Data/llvm/_build.ninja.release/bin/../include/c++/v1/type_traits:225:1: </b><span style="color:#c33720"><b>error: </b></span></div><div style="margin:0px;line-height:normal;font-family:Menlo"><b>      templates must have C++ linkage</b></div><div style="margin:0px;line-height:normal;font-family:Menlo">template <class _Tp, bool></div><div style="margin:0px;line-height:normal;font-family:Menlo;color:rgb(52,189,38)"><b>^~~~~~~~~~~~~~~~~~~~~~~~~~</b></div></div><div><b><br></b></div></div><div>—adrian</div></div><br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div></div>