<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 Mar 11, 2016, at 11:21 AM, Ramakrishna Mallireddy &lt;<a href="mailto:ramakrishna.malli@gmail.com" class="">ramakrishna.malli@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><p class="">Hi,</p><p class="">I have build clang, llvm , swift for iOS and added these libraries to a sample single-view project and the app crash's before it reach appdelegate.</p><p class="">Not able to see what going wrong. could anyone help me to move forward. I don't know where this&nbsp;<b class="">libLLVMContainer </b>came from<b class="">.</b></p></div></div></blockquote><div>No idea, sorry. You might have better luck asking the LLVM mailing lists, since the crash here is inside LLVM's pass manager.</div><div><br class=""></div><div>-Joe</div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><p class=""><span class="">* thread #1: tid = 0x253e8, 0x07a3bddb libsystem_pthread.dylib`_pthread_rwlock_check_init + 11, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x40000000)</span></p><p class=""><span class="">&nbsp; * frame #0: 0x07a3bddb libsystem_pthread.dylib`_pthread_rwlock_check_init + 11</span></p><p class=""><span class="">&nbsp; &nbsp; frame #1: 0x07a3baf0 libsystem_pthread.dylib`_pthread_rwlock_lock + 25</span></p><p class=""><span class="">&nbsp; &nbsp; frame #2: 0x07a40fcc libsystem_pthread.dylib`pthread_rwlock_wrlock$UNIX2003 + 23</span></p><p class=""><span class="">&nbsp; &nbsp; frame #3: 0x0d57ff13 libLLVMContainer.dylib`llvm::sys::RWMutexImpl::writer_acquire() + 19</span></p><p class=""><span class="">&nbsp; &nbsp; frame #4: 0x0d4dab12 libLLVMContainer.dylib`llvm::PassRegistry::addRegistrationListener(llvm::PassRegistrationListener*) + 34</span></p><p class=""><span class="">&nbsp; &nbsp; frame #5: 0x0d4d667e libLLVMContainer.dylib`llvm::PassNameParser::PassNameParser() + 78</span></p><p class=""><span class="">&nbsp; &nbsp; frame #6: 0x0d4cdad3 libLLVMContainer.dylib`_GLOBAL__sub_I_LegacyPassManager.cpp + 1299</span></p><p class=""><span class="">&nbsp; &nbsp; frame #7: 0x0187e20f</span></p><p class=""><span class="">&nbsp; &nbsp; frame #8: 0x0187e368</span></p><p class=""><span class="">&nbsp; &nbsp; frame #9: 0x01879a01</span></p><p class=""><span class="">&nbsp; &nbsp; frame #10: 0x01879994</span></p><p class=""><span class="">&nbsp; &nbsp; frame #11: 0x01879994</span></p><p class=""><span class="">&nbsp; &nbsp; frame #12: 0x01879994</span></p><p class=""><span class="">&nbsp; &nbsp; frame #13: 0x01879994</span></p><p class=""><span class="">&nbsp; &nbsp; frame #14: 0x01879994</span></p><p class=""><span class="">&nbsp; &nbsp; frame #15: 0x01879994</span></p><p class=""><span class="">&nbsp; &nbsp; frame #16: 0x01879994</span></p><p class=""><span class="">&nbsp; &nbsp; frame #17: 0x01879994</span></p><p class=""><span class="">&nbsp; &nbsp; frame #18: 0x01878d54</span></p><p class=""><span class="">&nbsp; &nbsp; frame #19: 0x01878de3</span></p><p class=""><span class="">&nbsp; &nbsp; frame #20: 0x0186ec50</span></p><p class=""><span class="">&nbsp; &nbsp; frame #21: 0x018722c7</span></p><p class=""><span class="">&nbsp; &nbsp; frame #22: 0x0186e1f9</span></p><p class=""><span class="">&nbsp; &nbsp; frame #23: 0x8fe97118 dyld`dyld::useSimulatorDyld(int, macho_header const*, char const*, int, char const**, char const**, char const**, unsigned long*) + 1053</span></p><p class=""><span class="">&nbsp; &nbsp; frame #24: 0x8fe961f2 dyld`dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) + 202</span></p><p class=""><span class="">&nbsp; &nbsp; frame #25: 0x8fe92232 dyld`dyldbootstrap::start(macho_header const*, int, char const**, long, macho_header const*, unsigned long*) + 428</span></p><p class=""><span class="">&nbsp; &nbsp; frame #26: 0x8fe92047 dyld`_dyld_start + 71</span></p><p class=""><span class=""><br class=""></span></p><p class=""><span class="">Thanks</span></p><p class=""><span class="">Ramakrishna</span></p></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Feb 24, 2016 at 3:16 AM, Ramakrishna Mallireddy <span dir="ltr" class="">&lt;<a href="mailto:ramakrishna.malli@gmail.com" target="_blank" class="">ramakrishna.malli@gmail.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Thanks Joe, The build is complete.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Feb 24, 2016 at 2:33 AM, Joe Groff <span dir="ltr" class="">&lt;<a href="mailto:jgroff@apple.com" target="_blank" class="">jgroff@apple.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Sorry, it looks like the magic combination is&nbsp;<div class=""><br class=""></div><div class="">#if defined(__APPLE__)</div><div class="">#include &lt;TargetConditionals.h&gt;</div><div class="">#endif</div><div class=""><br class=""></div>#if (TARGET_OS_MAC &amp;&amp; !TARGET_OS_IPHONE) || defined(__FreeBSD__)<br class="">...do REPL stuff...<br class=""><div class="">#endif<span class=""><font color="#888888" class=""><br class=""><div class=""><br class=""></div><div class="">-Joe</div></font></span><div class=""><div class=""><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Feb 23, 2016, at 12:42 PM, Ramakrishna Mallireddy &lt;<a href="mailto:ramakrishna.malli@gmail.com" target="_blank" class="">ramakrishna.malli@gmail.com</a>&gt; wrote:</div><br class=""><div class=""><div dir="ltr" class="">__MACOSX__ is not defined, where can I defined this, so that it only effects mac build.<br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Feb 24, 2016 at 1:57 AM, Joe Groff <span dir="ltr" class="">&lt;<a href="mailto:jgroff@apple.com" target="_blank" class="">jgroff@apple.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br class="">
&gt; On Feb 23, 2016, at 12:22 PM, Ramakrishna Mallireddy &lt;<a href="mailto:ramakrishna.malli@gmail.com" target="_blank" class="">ramakrishna.malli@gmail.com</a>&gt; wrote:<br class="">
&gt;<br class="">
&gt; I am using the build-script that comes with swift repository. If i remove Immediate dir completely from the build, mac_os build complains[as this will always invoke]. If I redefine the #if then I am getting a dozen errors that are part of histedit.h<br class="">
<br class="">
</span>You will need to update the other #if __APPLE__ conditions in the file to match too.<br class="">
<span class=""><font color="#888888" class=""><br class="">
-Joe<br class="">
<br class="">
</font></span></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></div></div></div></div></blockquote></div><br class=""></div>
</div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></body></html>