<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></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 23, 2014, at 5:09 PM, Sean Silva <<a href="mailto:chisophugis@gmail.com" class="">chisophugis@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><br class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Oct 22, 2014 at 9:09 PM, Seth Cantrell <span dir="ltr" class=""><<a href="mailto:seth.cantrell@gmail.com" target="_blank" class="">seth.cantrell@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I saw this error when I tried out -fmodules on OS X earlier as well, but it disappeared and I took it to be transient and due to something in my build of llvm/clang/libcxx. Now of course I'm seeing it again and I have no idea what allowed -fmodules to work for me before.<br class="">
<br class="">
I tried Sean's suggestion of "moving `#include <__locale>` below `#include <cstdlib>`". To get things to build I had to put both of the following:<br class="">
<br class="">
    #include <cstdlib><br class="">
    #include <xlocale/_stdlib.h><br class="">
<br class="">
before `#include <__locale>` in the `<locale>` header. Since `<xlocale/_stdlib.h>` is not in a module map (AFAICT, MacOSX10.10.sdk/usr/include/module.map does not mention the xlocale headers in the 10.10 SDK) I believe the included declarations become part of the `<locale>` module...<br class=""></blockquote><div class=""><br class=""></div><div class="">You may want to file a bug with Apple about this issue with the system headers. This issue seems like it would affect C/ObjC (which are officially supported) just the same as C++.</div></div></div></div></div></blockquote><div><br class=""></div><div>Done.</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><div class=""><br class=""></div><div class="">-- Sean Silva</div><div class=""> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class="im"><br class="">
> On Oct 21, 2014, at 7:57 AM, Stephen Kelly <<a href="mailto:steveire@gmail.com" class="">steveire@gmail.com</a>> wrote:<br class="">
><br class="">
> /Users/ske/dev/prefix/bin/../include/c++/v1/locale:943:28: error: use of<br class="">
> undeclared identifier 'strtold_l'<br class="">
>        long double __ld = strtold_l(__a, &__p2, _LIBCPP_GET_C_LOCALE);<br class="">
>                           ^<br class="">
> test.cpp:6:10: fatal error: could not build module 'std'<br class="">
> #include <utility><br class="">
> ~~~~~~~~^<br class="">
><br class="">
><br class="">
<br class="">
</span><div class=""><div class="h5">_______________________________________________<br class="">
cfe-dev mailing list<br class="">
<a href="mailto:cfe-dev@cs.uiuc.edu" class="">cfe-dev@cs.uiuc.edu</a><br class="">
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank" class="">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br class="">
</div></div></blockquote></div><br class=""></div></div>
</div></blockquote></div><br class=""></body></html>