<p dir="ltr">I build continuously on Darwin, and have had no problems.   <br>
</p>
<br><div class="gmail_quote">On Fri, Apr 3, 2015, 3:38 PM jahanian <<a href="mailto:fjahanian@apple.com">fjahanian@apple.com</a>> 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">If I ifdef out this code in: <span style="font-family:Menlo;font-size:11px">lib/Support/Unix/</span><span style="font-family:Menlo;font-size:11px">Signals.inc clang builds.</span><div><div><br></div><div><div style="margin:0px;font-size:11px;font-family:Menlo">// #if defined(__APPLE__) && defined(ENABLE_CRASH_OVERRIDES)</div><div style="margin:0px;font-size:11px;font-family:Menlo">#if 0</div><div style="margin:0px;font-size:11px;font-family:Menlo">  // Environment variable to disable any kind of crash dialog.</div><div style="margin:0px;font-size:11px;font-family:Menlo">  if (getenv("LLVM_DISABLE_CRASH_REPORT")) {</div><div style="margin:0px;font-size:11px;font-family:Menlo">    mach_port_t self = mach_task_self();</div><div style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px">    <br></div><div style="margin:0px;font-size:11px;font-family:Menlo">    exception_mask_t mask = EXC_MASK_CRASH;</div><div style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px">    <br></div><div style="margin:0px;font-size:11px;font-family:Menlo">    kern_return_t ret = task_set_exception_ports(self,</div><div style="margin:0px;font-size:11px;font-family:Menlo">                             mask,</div><div style="margin:0px;font-size:11px;font-family:Menlo">                             MACH_PORT_NULL,</div><div style="margin:0px;font-size:11px;font-family:Menlo">                             EXCEPTION_STATE_IDENTITY | MACH_EXCEPTION_CODES,</div><div style="margin:0px;font-size:11px;font-family:Menlo">                             THREAD_STATE_NONE);</div><div style="margin:0px;font-size:11px;font-family:Menlo">    (void)ret;</div><div style="margin:0px;font-size:11px;font-family:Menlo">  }</div><div style="margin:0px;font-size:11px;font-family:Menlo">#endif</div></div><div style="margin:0px;font-size:11px;font-family:Menlo"><br></div><div style="margin:0px;font-size:11px;font-family:Menlo">Problem is that this code depends on headers not yet included.</div><div style="margin:0px;font-size:11px;font-family:Menlo">Further down we have:</div><div style="margin:0px;font-size:11px;font-family:Menlo"><div style="margin:0px">#if defined(__APPLE__) && defined(ENABLE_CRASH_OVERRIDES)</div><div style="margin:0px;min-height:13px"><br></div><div style="margin:0px">#include <signal.h></div><div style="margin:0px">#include <pthread.h></div><div style="margin:0px"><br></div><div style="margin:0px">Any clues as to why it just fails for me (or no one has tried this on MacOSX recently).</div><div style="margin:0px"><br></div><div style="margin:0px">- fariborz</div><div style="margin:0px"><br></div></div></div></div><div style="word-wrap:break-word"><div><blockquote type="cite"><div>On Apr 3, 2015, at 8:58 AM, jahanian <<a href="mailto:fjahanian@apple.com" target="_blank">fjahanian@apple.com</a>> wrote:</div><br><div><div style="word-wrap:break-word">I am getting this build failure building llvm on Darwin.<div><br></div><div><div style="margin:0px;font-size:11px;font-family:Menlo">llvm[1]: Compiling SpecialCaseList.cpp for Debug+Asserts build</div><div style="margin:0px;font-size:11px;font-family:Menlo">In file included from /Users/fjahanian/sandbox/llvm-tot/lib/Support/Signals.cpp:30:</div><div style="margin:0px;font-size:11px;font-family:Menlo">/Users/fjahanian/sandbox/llvm-tot/lib/Support/Unix/Signals.inc:495:5: error: unknown type name 'mach_port_t'</div><div style="margin:0px;font-size:11px;font-family:Menlo">    mach_port_t self = mach_task_self();</div><div style="margin:0px;font-size:11px;font-family:Menlo">    ^</div><div style="margin:0px;font-size:11px;font-family:Menlo">/Users/fjahanian/sandbox/llvm-tot/lib/Support/Unix/Signals.inc:495:24: error: use of undeclared identifier 'mach_task_self'</div><div style="margin:0px;font-size:11px;font-family:Menlo">    mach_port_t self = mach_task_self();</div><div style="margin:0px;font-size:11px;font-family:Menlo">                       ^</div><div style="margin:0px;font-size:11px;font-family:Menlo">/Users/fjahanian/sandbox/llvm-tot/lib/Support/Unix/Signals.inc:497:5: error: unknown type name 'exception_mask_t'</div><div style="margin:0px;font-size:11px;font-family:Menlo">    exception_mask_t mask = EXC_MASK_CRASH;</div><div style="margin:0px;font-size:11px;font-family:Menlo">    ^</div><div style="margin:0px;font-size:11px;font-family:Menlo">/Users/fjahanian/sandbox/llvm-tot/lib/Support/Unix/Signals.inc:497:29: error: use of undeclared identifier 'EXC_MASK_CRASH'</div><div style="margin:0px;font-size:11px;font-family:Menlo">    exception_mask_t mask = EXC_MASK_CRASH;</div><div style="margin:0px;font-size:11px;font-family:Menlo">                            ^</div><div style="margin:0px;font-size:11px;font-family:Menlo">llvm[1]: Compiling Statistic.cpp for Debug+Asserts build</div><div style="margin:0px;font-size:11px;font-family:Menlo">/Users/fjahanian/sandbox/llvm-tot/lib/Support/Unix/Signals.inc:499:5: error: unknown type name 'kern_return_t'</div><div style="margin:0px;font-size:11px;font-family:Menlo">    kern_return_t ret = task_set_exception_ports(self,</div><div style="margin:0px;font-size:11px;font-family:Menlo">    ^</div><div style="margin:0px;font-size:11px;font-family:Menlo">/Users/fjahanian/sandbox/llvm-tot/lib/Support/Unix/Signals.inc:501:30: error: use of undeclared identifier 'MACH_PORT_NULL'</div><div style="margin:0px;font-size:11px;font-family:Menlo">                             MACH_PORT_NULL,</div><div style="margin:0px;font-size:11px;font-family:Menlo">                             ^</div><div style="margin:0px;font-size:11px;font-family:Menlo">/Users/fjahanian/sandbox/llvm-tot/lib/Support/Unix/Signals.inc:502:30: error: use of undeclared identifier 'EXCEPTION_STATE_IDENTITY'</div><div style="margin:0px;font-size:11px;font-family:Menlo">                             EXCEPTION_STATE_IDENTITY | MACH_EXCEPTION_CODES,</div><div style="margin:0px;font-size:11px;font-family:Menlo">                             ^</div><div style="margin:0px;font-size:11px;font-family:Menlo">/Users/fjahanian/sandbox/llvm-tot/lib/Support/Unix/Signals.inc:502:57: error: use of undeclared identifier 'MACH_EXCEPTION_CODES'</div><div style="margin:0px;font-size:11px;font-family:Menlo">                             EXCEPTION_STATE_IDENTITY | MACH_EXCEPTION_CODES,</div><div style="margin:0px;font-size:11px;font-family:Menlo">                                                        ^</div><div style="margin:0px;font-size:11px;font-family:Menlo">/Users/fjahanian/sandbox/llvm-tot/lib/Support/Unix/Signals.inc:503:30: error: use of undeclared identifier 'THREAD_STATE_NONE'</div><div style="margin:0px;font-size:11px;font-family:Menlo">                             THREAD_STATE_NONE);</div><div style="margin:0px;font-size:11px;font-family:Menlo">                             ^</div><div style="margin:0px;font-size:11px;font-family:Menlo">9 errors generated.</div></div><div><br></div><div><br></div><div>- Fariborz</div><div><br></div></div>_______________________________________________<br>llvm-commits mailing list<br><a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br></div></blockquote></div><br></div>______________________________<u></u>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvm-commits</a><br>
</blockquote></div>