<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 16, 2015, at 5:47 PM, Richard Smith <<a href="mailto:richard@metafoo.co.uk" class="">richard@metafoo.co.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="gmail_extra"><div class="gmail_quote"><div class="">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 class="Apple-interchange-newline"></div></blockquote></div>Sorry for the delay.<div class="">With the updated module map I get<div class=""><br class=""></div><div class=""><div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><b class="">/Volumes/Data/llvm/_build.ninja.release/bin/../include/c++/v1/module.modulemap:64:14: </b><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class=""><b class="">error: </b></span></div><div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><b class="">      header 'locale.h' not found</b></div><div style="margin: 0px; line-height: normal; font-family: Menlo;" class="">      header "locale.h"</div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(52, 189, 38);" class=""><b class="">             ^</b></div><div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><b class="">/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;" class="">      submodule of top-level module 'std' implicitly imported here</div><div style="margin: 0px; line-height: normal; font-family: Menlo;" class="">#include <__config></div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(52, 189, 38);" class=""><b class="">         ^</b></div></div><div class="">and after commenting out the locale module I get the rather puzzling (shouldn’t this have been avoided by the clang changes?):</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; line-height: normal; font-family: Menlo;" class="">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;" class="">In file included from <module-includes>:2:</div><div style="margin: 0px; line-height: normal; font-family: Menlo;" class="">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;" class="">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;" class="">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;" class=""><b class="">/Volumes/Data/llvm/_build.ninja.release/bin/../include/c++/v1/type_traits:219:1: </b><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class=""><b class="">error: </b></span></div><div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><b class="">      templates must have C++ linkage</b></div><div style="margin: 0px; line-height: normal; font-family: Menlo;" class="">template <class></div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(52, 189, 38);" class=""><b class="">^~~~~~~~~~~~~~~~</b></div><div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><b class="">/Volumes/Data/llvm/_build.ninja.release/bin/../include/c++/v1/type_traits:222:1: </b><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class=""><b class="">error: </b></span></div><div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><b class="">      templates must have C++ linkage</b></div><div style="margin: 0px; line-height: normal; font-family: Menlo;" class="">template <class _Tp></div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(52, 189, 38);" class=""><b class="">^~~~~~~~~~~~~~~~~~~~</b></div><div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><b class="">/Volumes/Data/llvm/_build.ninja.release/bin/../include/c++/v1/type_traits:225:1: </b><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class=""><b class="">error: </b></span></div><div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><b class="">      templates must have C++ linkage</b></div><div style="margin: 0px; line-height: normal; font-family: Menlo;" class="">template <class _Tp, bool></div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(52, 189, 38);" class=""><b class="">^~~~~~~~~~~~~~~~~~~~~~~~~~</b></div></div><div class=""><b class=""><br class=""></b></div></div><div class="">—adrian</div></body></html>