<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Sorry forgot to CC cfe-dev.<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jan 10, 2018, at 9:32 AM, Jan Korous <<a href="mailto:jkorous@apple.com" class="">jkorous@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Bruce,<div class=""><br class=""></div><div class="">Thanks for all the data. I will try to have a look at it. Just two things that might help you straight away.</div><div class=""><br class=""></div><div class="">1. The version you are using is rather old. You might discover that some more recent version has this issue fixed. Just in case you don’t know about it you can download clang binaries here: <a href="http://releases.llvm.org/download.html" class="">http://releases.llvm.org/download.html</a> Ubuntu 14.04 is supported.</div><div class=""><br class=""></div><div class="">2. If you want to learn more about clang command line options these are places to check:</div><div class=""><div class=""> <a href="https://clang.llvm.org/docs/CommandGuide/clang.html" class="">https://clang.llvm.org/docs/CommandGuide/clang.html</a></div><div class=""> <a href="https://clang.llvm.org/docs/ClangCommandLineReference.html" class="">https://clang.llvm.org/docs/ClangCommandLineReference.html</a></div><div class=""> <a href="https://clang.llvm.org/docs/DiagnosticsReference.html" class="">https://clang.llvm.org/docs/DiagnosticsReference.html</a></div><div class=""><br class=""></div><div class=""> Other sources might be --help for driver or specific tool (e. g. compiler) or man pages.</div><div class=""> clang --help --help-hidden</div><div class=""> clang -cc1 --help</div><div class=""> man clang</div></div><div class=""><br class=""></div><div class="">Hope it helps.</div><div class=""><br class=""></div><div class="">Regards,</div><div class=""><br class=""></div><div class="">Jan</div><div class=""><br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Jan 10, 2018, at 7:49 AM, 01_Tyro_10 <<a href="mailto:brucehuang0711@qq.com" class="">brucehuang0711@qq.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div class="">Hi Jan:</div></div><div class=""><br class=""></div><div class="">I think the file libcxx/include/__config maybe helpful for finding the problem. And I paste it for you too.</div><div class=""><br class=""></div><div class="">libcxx/include/__config:444-456</div><div class=""><div class="">// Inline namespaces are available in Clang regardless of C++ dialect.</div><div class="">#define _LIBCPP_BEGIN_NAMESPACE_STD namespace std {inline namespace _LIBCPP_NAMESPACE {</div><div class="">#define _LIBCPP_END_NAMESPACE_STD } }</div><div class="">#define _VSTD std::_LIBCPP_NAMESPACE</div><div class=""><br class=""></div><div class="">namespace std {</div><div class=""> inline namespace _LIBCPP_NAMESPACE {</div><div class=""> }</div><div class="">}</div><div class=""><br class=""></div><div class="">#if !defined(_LIBCPP_HAS_NO_ASAN) && !__has_feature(address_sanitizer)</div><div class="">#define _LIBCPP_HAS_NO_ASAN</div><div class="">#endif</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">libcxx/include/__config:1024-1043</div><div class=""><div class="">// Thread API</div><div class="">#if !defined(_LIBCPP_HAS_NO_THREADS) && \</div><div class=""> !defined(_LIBCPP_HAS_THREAD_API_PTHREAD) && \</div><div class=""> !defined(_LIBCPP_HAS_THREAD_API_WIN32) && \</div><div class=""> !defined(_LIBCPP_HAS_THREAD_API_EXTERNAL)</div><div class=""># if defined(__FreeBSD__) || \</div><div class=""> defined(__Fuchsia__) || \</div><div class=""> defined(__NetBSD__) || \</div><div class=""> defined(__linux__) || \</div><div class=""> defined(__APPLE__) || \</div><div class=""> defined(__CloudABI__) || \</div><div class=""> defined(__sun__) || \</div><div class=""> (defined(__MINGW32__) && __libcpp_has_include(<pthread.h>))</div><div class=""># define _LIBCPP_HAS_THREAD_API_PTHREAD</div><div class=""># elif defined(_LIBCPP_WIN32API)</div><div class=""># define _LIBCPP_HAS_THREAD_API_WIN32</div><div class=""># else</div><div class=""># error "No thread API"</div><div class=""># endif // _LIBCPP_HAS_THREAD_API</div><div class="">#endif // _LIBCPP_HAS_NO_THREADS</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Bruce</div><div class=""><div class=""><br class=""></div><div class=""><br class=""></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;" class="">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;" class=""><div class=""><b class="">From: </b> "Jan Korous";<<a href="mailto:jkorous@apple.com" class="">jkorous@apple.com</a>>;</div><div class=""><b class="">Date: </b> Mon, Jan 8, 2018 11:28 PM</div><div class=""><b class="">To: </b> "01_Tyro_10"<<a href="mailto:brucehuang0711@qq.com" class="">brucehuang0711@qq.com</a>>;<wbr class=""></div><div class=""><b class="">Cc: </b> "cfe-users"<<a href="mailto:cfe-users@lists.llvm.org" class="">cfe-users@lists.llvm.org</a>>; <wbr class=""></div><div class=""><b class="">Subject: </b> Re: [cfe-users] clang frontend command failed due to signal</div></div><div class=""><br class=""></div>Hi bruce,<div class=""><br class=""></div><div class="">which version of clang are you actually using? Could you please paste output of clang -v here?<br class="">Could you please also paste full output of clang (including reproducer files if any)?<br class=""><br class=""><br class="">Thank you.<br class=""><br class="">Jan<br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On 8 Jan 2018, at 10:36, 01_Tyro_10 via cfe-users <<a href="mailto:cfe-users@lists.llvm.org" class="">cfe-users@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">bruce</span></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></body></html>