<div dir="ltr">This may be due to the fact my native OSX being an 64bit architecture. Only a 64bit compiler build work on it properly.<div>To make simulator i386 build works properly it may required native 32bit architecture OSX.<br></div><div><br></div><div>Please correct me if I am wrong.</div><div><br></div><div>Thanks</div><div>Ramakrishna M</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 24, 2016 at 12:25 AM, Ramakrishna Mallireddy <span dir="ltr">&lt;<a href="mailto:ramakrishna.malli@gmail.com" target="_blank">ramakrishna.malli@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">If I build for simulator x86_64 then I am not getting <b style="font-size:12.8px">Assertion failed: ((PtrWord &amp; ~PointerBitMask) == 0 &amp;&amp; &quot;Pointer is not sufficiently aligned&quot;) </b><span style="font-size:12.8px">and able to view the llvm-ir output.</span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">so what&#39;s wrong with i386 target, any ideas where I have to look for this.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks</span></div><span class="HOEnZb"><font color="#888888"><div><span style="font-size:12.8px">Ramakrishna</span></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 23, 2016 at 11:28 PM, Ramakrishna Mallireddy <span dir="ltr">&lt;<a href="mailto:ramakrishna.malli@gmail.com" target="_blank">ramakrishna.malli@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Finally I am able to run the swift front end [swift 2.2 released yesterday]. <div><br></div><div>When running in simulator with arch i386 and debug configuration, I hit with <div>







<p><span><b>Assertion failed: ((PtrWord &amp; ~PointerBitMask) == 0 &amp;&amp; &quot;Pointer is not sufficiently aligned&quot;), function setPointerAndInt, file /Users/chinnari/Tutorials/libswift/llvm/include/llvm/ADT/PointerIntPair.h, line 114.</b></span></p><p>my input source.swift file contains a import UIKit &amp; a let statement.</p><p>Can someone help me on this please.</p><p>The complete back trace is below:</p><p>(lldb) bt all</p><p>* thread #1: tid = 0xc5054, 0x0e6fa69a libsystem_kernel.dylib`__pthread_kill + 10, queue = &#39;com.apple.main-thread&#39;, stop reason = signal SIGABRT</p><p>    frame #0: 0x0e6fa69a libsystem_kernel.dylib`__pthread_kill + 10</p><p>    frame #1: 0x0e6c5634 libsystem_pthread.dylib`pthread_kill + 101</p><p>  * frame #2: 0x03d45350 LLVMTest`::raise(sig=6) + 32 at Signals.inc:422</p><p>    frame #3: 0x03d4543a LLVMTest`::abort() + 26 at Signals.inc:439</p><p>    frame #4: 0x03d45412 LLVMTest`::__assert_rtn(func=&quot;setPointerAndInt&quot;, file=&quot;/Users/chinnari/Tutorials/libswift/llvm/include/llvm/ADT/PointerIntPair.h&quot;, line=114, expr=&quot;(PtrWord &amp; ~PointerBitMask) == 0 &amp;&amp; \&quot;Pointer is not sufficiently aligned\&quot;&quot;) + 178 at Signals.inc:435</p><p>    frame #5: 0x04af3cf5 LLVMTest`llvm::PointerIntPair&lt;void*, 1u, bool, llvm::PointerUnionUIntTraits&lt;swift::ProtocolDecl*, swift::ProtocolConformance*&gt; &gt;::setPointerAndInt(this=0x7e5e0bd0, PtrVal=0x7e5e0b34, IntVal=true) + 165 at PointerIntPair.h:113</p><p>    frame #6: 0x045578d4 LLVMTest`llvm::PointerUnion&lt;swift::ProtocolDecl*, swift::ProtocolConformance*&gt;::operator=(this=0x7e5e0bd0, RHS=0xbff4f800) + 68 at PointerUnion.h:172</p><p>    frame #7: 0x0442dbdf LLVMTest`swift::ConformanceLookupTable::registerProtocolConformance(this=0x7e5e08f0, conformance=0x7e5e0b34) + 591 at ConformanceLookupTable.cpp:870</p><p>    frame #8: 0x04557435 LLVMTest`swift::NominalTypeDecl::registerProtocolConformance(this=0x7e435bf0, conformance=0x7e5e0b34) + 53 at ProtocolConformance.cpp:631</p><p>    frame #9: 0x04ed4ec6 LLVMTest`swift::ModuleFile::readNormalConformance(this=0x7c3c6200, conformanceID=(Value = 311)) + 1158 at Deserialization.cpp:578</p><p>    frame #10: 0x04ed4436 LLVMTest`swift::ModuleFile::readConformance(this=0x7c3c6200, Cursor=0x7c3c623c) + 1910 at Deserialization.cpp:501</p><p>    frame #11: 0x04edd176 LLVMTest`swift::ModuleFile::loadAllConformances(this=0x7c3c6200, D=0x7e435bf0, contextData=2533274845394404, conformances=0xbff4ff80) + 630 at Deserialization.cpp:4006</p><p>    frame #12: 0x0442c102 LLVMTest`void swift::ConformanceLookupTable::forEachInStage&lt;swift::ConformanceLookupTable::updateLookupTable(swift::NominalTypeDecl*, swift::ConformanceLookupTable::ConformanceStage, swift::LazyResolver*)::$_2, swift::ConformanceLookupTable::updateLookupTable(swift::NominalTypeDecl*, swift::ConformanceLookupTable::ConformanceStage, swift::LazyResolver*)::$_3&gt;(this=0x7e5e08f0, stage=RecordedExplicit, nominal=0x7e435bf0, resolver=0xbff5a2a8, nominalFunc=swift::ConformanceLookupTable::(anonymous class) @ 0xbff4ffe0, extensionFunc=swift::ConformanceLookupTable::(anonymous class) @ 0xbff4ffe8)::$_2, swift::ConformanceLookupTable::updateLookupTable(swift::NominalTypeDecl*, swift::ConformanceLookupTable::ConformanceStage, swift::LazyResolver*)::$_3) + 386 at ConformanceLookupTable.cpp:156</p><p>    frame #13: 0x0442b985 LLVMTest`swift::ConformanceLookupTable::updateLookupTable(this=0x7e5e08f0, nominal=0x7e435bf0, stage=RecordedExplicit, resolver=0xbff5a2a8) + 229 at ConformanceLookupTable.cpp:274</p><p>    frame #14: 0x0442b9b6 LLVMTest`swift::ConformanceLookupTable::updateLookupTable(this=0x7e5e08f0, nominal=0x7e435bf0, stage=Inherited, resolver=0xbff5a2a8) + 278 at ConformanceLookupTable.cpp:294</p><p>    frame #15: 0x0442f598 LLVMTest`swift::ConformanceLookupTable::lookupConformance(this=0x7e5e08f0, module=0x7c387340, nominal=0x7e435bf0, protocol=0x7bbb9830, resolver=0xbff5a2a8, conformances=0xbff50560) + 104 at ConformanceLookupTable.cpp:887</p><p>    frame #16: 0x0455726d LLVMTest`swift::NominalTypeDecl::lookupConformance(this=0x7e435bf0, module=0x7c387340, protocol=0x7bbb9830, conformances=0xbff50560) const + 125 at ProtocolConformance.cpp:593</p><p>    frame #17: 0x044fdc26 LLVMTest`swift::ModuleDecl::lookupConformance(this=0x7c387340, type=Type @ 0xbff50694, protocol=0x7bbb9830, resolver=0xbff5a2a8) + 2166 at Module.cpp:886</p><p>    frame #18: 0x04deda3d LLVMTest`swift::TypeChecker::conformsToProtocol(this=0xbff5a2a8, T=Type @ 0xbff50754, Proto=0x7bbb9830, DC=0x7bbbaf70, options=(Storage = 1), Conformance=0x00000000, ComplainLoc=SourceLoc @ 0xbff50768) + 205 at TypeCheckProtocol.cpp:4053</p><p>    frame #19: 0x04c76964 LLVMTest`swift::constraints::ConstraintSystem::simplifyConformsToConstraint(this=0xbff59540, type=Type @ 0xbff508d4, protocol=0x7bbb9830, kind=ConformsTo, locator=ConstraintLocatorBuilder @ 0xbff50950, flags=0) + 676 at CSSimplify.cpp:2283</p><p>    frame #20: 0x04c7ccb0 LLVMTest`swift::constraints::ConstraintSystem::simplifyConformsToConstraint(this=0xbff59540, type=Type @ 0xbff50984, protocol=Type @ 0xbff50988, kind=ConformsTo, locator=ConstraintLocatorBuilder @ 0xbff50be8, flags=0) + 224 at CSSimplify.cpp:2250</p><p>    frame #21: 0x04c83ce6 LLVMTest`swift::constraints::ConstraintSystem::simplifyConstraint(this=0xbff59540, constraint=0x7b9d8698) + 2038 at CSSimplify.cpp:4393</p><p>    frame #22: 0x04c8d28f LLVMTest`swift::constraints::ConstraintSystem::simplify(this=0xbff59540, ContinueAfterFailures=false) + 239 at CSSolver.cpp:331</p><p>    frame #23: 0x04c90517 LLVMTest`swift::constraints::ConstraintSystem::solveRec(this=0xbff59540, solutions=0xbff58df0, allowFreeTypeVariables=Disallow) + 119 at CSSolver.cpp:1215</p><p>    frame #24: 0x04c94f52 LLVMTest`tryTypeVariableBindings(cs=0xbff59540, depth=4, typeVar=0x7b9d8670, bindings=ArrayRef&lt;(anonymous namespace)::PotentialBinding&gt; @ 0xbff51ddc, solutions=0xbff58df0, allowFreeTypeVariables=Disallow)::PotentialBinding&gt;, llvm::SmallVectorImpl&lt;swift::constraints::Solution&gt;&amp;, swift::FreeTypeVariableBinding) + 1602 at CSSolver.cpp:1078</p><p>    frame #25: 0x04c92d1d LLVMTest`swift::constraints::ConstraintSystem::solveSimplified(this=0xbff59540, solutions=0xbff58df0, allowFreeTypeVariables=Disallow) + 909 at CSSolver.cpp:1551</p><p>    frame #26: 0x04c9080b LLVMTest`swift::constraints::ConstraintSystem::solveRec(this=0xbff59540, solutions=0xbff58df0, allowFreeTypeVariables=Disallow) + 875 at CSSolver.cpp:1256</p><p>    frame #27: 0x04c94f52 LLVMTest`tryTypeVariableBindings(cs=0xbff59540, depth=3, typeVar=0x7b9d8700, bindings=ArrayRef&lt;(anonymous namespace)::PotentialBinding&gt; @ 0xbff5344c, solutions=0xbff58df0, allowFreeTypeVariables=Disallow)::PotentialBinding&gt;, llvm::SmallVectorImpl&lt;swift::constraints::Solution&gt;&amp;, swift::FreeTypeVariableBinding) + 1602 at CSSolver.cpp:1078</p><p>    frame #28: 0x04c92d1d LLVMTest`swift::constraints::ConstraintSystem::solveSimplified(this=0xbff59540, solutions=0xbff58df0, allowFreeTypeVariables=Disallow) + 909 at CSSolver.cpp:1551</p><p>    frame #29: 0x04c9080b LLVMTest`swift::constraints::ConstraintSystem::solveRec(this=0xbff59540, solutions=0xbff58df0, allowFreeTypeVariables=Disallow) + 875 at CSSolver.cpp:1256</p><p>    frame #30: 0x04c94f52 LLVMTest`tryTypeVariableBindings(cs=0xbff59540, depth=2, typeVar=0x7b9d8858, bindings=ArrayRef&lt;(anonymous namespace)::PotentialBinding&gt; @ 0xbff54abc, solutions=0xbff58df0, allowFreeTypeVariables=Disallow)::PotentialBinding&gt;, llvm::SmallVectorImpl&lt;swift::constraints::Solution&gt;&amp;, swift::FreeTypeVariableBinding) + 1602 at CSSolver.cpp:1078</p><p>    frame #31: 0x04c92d1d LLVMTest`swift::constraints::ConstraintSystem::solveSimplified(this=0xbff59540, solutions=0xbff58df0, allowFreeTypeVariables=Disallow) + 909 at CSSolver.cpp:1551</p><p>    frame #32: 0x04c9080b LLVMTest`swift::constraints::ConstraintSystem::solveRec(this=0xbff59540, solutions=0xbff58df0, allowFreeTypeVariables=Disallow) + 875 at CSSolver.cpp:1256</p><p>    frame #33: 0x04c94f52 LLVMTest`tryTypeVariableBindings(cs=0xbff59540, depth=1, typeVar=0x7b9d8610, bindings=ArrayRef&lt;(anonymous namespace)::PotentialBinding&gt; @ 0xbff5612c, solutions=0xbff58df0, allowFreeTypeVariables=Disallow)::PotentialBinding&gt;, llvm::SmallVectorImpl&lt;swift::constraints::Solution&gt;&amp;, swift::FreeTypeVariableBinding) + 1602 at CSSolver.cpp:1078</p><p>    frame #34: 0x04c92d1d LLVMTest`swift::constraints::ConstraintSystem::solveSimplified(this=0xbff59540, solutions=0xbff58df0, allowFreeTypeVariables=Disallow) + 909 at CSSolver.cpp:1551</p><p>    frame #35: 0x04c9080b LLVMTest`swift::constraints::ConstraintSystem::solveRec(this=0xbff59540, solutions=0xbff58df0, allowFreeTypeVariables=Disallow) + 875 at CSSolver.cpp:1256</p><p>    frame #36: 0x04c94f52 LLVMTest`tryTypeVariableBindings(cs=0xbff59540, depth=0, typeVar=0x7b9d87f0, bindings=ArrayRef&lt;(anonymous namespace)::PotentialBinding&gt; @ 0xbff5779c, solutions=0xbff58df0, allowFreeTypeVariables=Disallow)::PotentialBinding&gt;, llvm::SmallVectorImpl&lt;swift::constraints::Solution&gt;&amp;, swift::FreeTypeVariableBinding) + 1602 at CSSolver.cpp:1078</p><p>    frame #37: 0x04c92d1d LLVMTest`swift::constraints::ConstraintSystem::solveSimplified(this=0xbff59540, solutions=0xbff58df0, allowFreeTypeVariables=Disallow) + 909 at CSSolver.cpp:1551</p><p>    frame #38: 0x04c9080b LLVMTest`swift::constraints::ConstraintSystem::solveRec(this=0xbff59540, solutions=0xbff58df0, allowFreeTypeVariables=Disallow) + 875 at CSSolver.cpp:1256</p><p>    frame #39: 0x04c9011c LLVMTest`swift::constraints::ConstraintSystem::solve(this=0xbff59540, solutions=0xbff58df0, allowFreeTypeVariables=Disallow) + 268 at CSSolver.cpp:1193</p><p>    frame #40: 0x04d29d58 LLVMTest`swift::TypeChecker::solveForExpression(this=0xbff5a2a8, expr=0xbff59c3c, dc=0x7bbbaf70, convertType=Type @ 0xbff58bfc, allowFreeTypeVariables=Disallow, listener=0xbff59bb8, cs=0xbff59540, viable=0xbff58df0, options=(Storage = 16)) + 808 at TypeCheckConstraints.cpp:1154</p><p>    frame #41: 0x04d2d22f LLVMTest`swift::TypeChecker::typeCheckExpression(this=0xbff5a2a8, expr=0xbff59c3c, dc=0x7bbbaf70, convertType=Type @ 0xbff59b3c, convertTypePurpose=CTP_Unused, options=(Storage = 16), listener=0xbff59bb8) + 1247 at TypeCheckConstraints.cpp:1304</p><p>    frame #42: 0x04d2f0ea LLVMTest`swift::TypeChecker::typeCheckBinding(this=0xbff5a2a8, pattern=0xbff59c40, initializer=0xbff59c3c, DC=0x7bbbaf70) + 442 at TypeCheckConstraints.cpp:1624</p><p>    frame #43: 0x04d2f3ad LLVMTest`swift::TypeChecker::typeCheckPatternBinding(this=0xbff5a2a8, PBD=0x7bbbb0c8, patternNumber=0) + 269 at TypeCheckConstraints.cpp:1674</p><p>    frame #44: 0x04d796c0 LLVMTest`validatePatternBindingDecl(tc=0xbff5a2a8, binding=0x7bbbb0c8, entryNumber=0) + 1312 at TypeCheckDecl.cpp:1214</p><p>    frame #45: 0x04d844b7 LLVMTest`(anonymous namespace)::DeclChecker::visitPatternBindingDecl(this=0xbff59f50, PBD=0x7bbbb0c8) + 119 at TypeCheckDecl.cpp:2842</p><p>    frame #46: 0x04d83340 LLVMTest`swift::ASTVisitor&lt;(anonymous namespace)::DeclChecker, void, void, void, void, void, void&gt;::visit(this=0xbff59f50, D=0x7bbbb0c8) + 144 at DeclNodes.def:91</p><p>    frame #47: 0x04d76519 LLVMTest`(anonymous namespace)::DeclChecker::visit(this=0xbff59f50, decl=0x7bbbb0c8) + 41 at TypeCheckDecl.cpp:2672</p><p>    frame #48: 0x04d76473 LLVMTest`swift::TypeChecker::typeCheckDecl(this=0xbff5a2a8, D=0x7bbbb0c8, isFirstPass=false) + 195 at TypeCheckDecl.cpp:5561</p><p>    frame #49: 0x04e96466 LLVMTest`(anonymous namespace)::StmtChecker::visitBraceStmt(this=0xbff5a138, BS=0x7bbbb0f0) + 1222 at TypeCheckStmt.cpp:1078</p><p>    frame #50: 0x04e95d1f LLVMTest`swift::ASTVisitor&lt;(anonymous namespace)::StmtChecker, void, swift::Stmt*, void, void, void, void&gt;::visit(this=0xbff5a138, S=0x7bbbb0f0) + 95 at StmtNodes.def:43</p><p>    frame #51: 0x04e9517b LLVMTest`bool (anonymous namespace)::StmtChecker::typeCheckStmt&lt;swift::BraceStmt&gt;(this=0xbff5a138, S=0xbff5a16c) + 43 at TypeCheckStmt.cpp:325</p><p>    frame #52: 0x04e950d2 LLVMTest`swift::TypeChecker::typeCheckTopLevelCodeDecl(this=0xbff5a2a8, TLCD=0x7bbbaf50) + 114 at TypeCheckStmt.cpp:1405</p><p>    frame #53: 0x04cf62e9 LLVMTest`swift::performTypeChecking(SF=0x7bbbad80, TLC=0xbff5a958, Options=(Storage = 1), StartElem=0) + 1177 at TypeChecker.cpp:585</p><p>    frame #54: 0x001287c9 LLVMTest`swift::CompilerInstance::performSema(this=0xbff5d6d0) + 12249 at Frontend.cpp:464</p><p>    frame #55: 0x000e8f91 LLVMTest`performCompile(Instance=0xbff5d6d0, Invocation=0xbff5d368, Args=ArrayRef&lt;const char *&gt; @ 0xbff5c458, ReturnValue=0xbff5c6ec) + 3825 at frontend_main.cpp:666</p><p>    frame #56: 0x000e782d LLVMTest`frontend_main(Args=ArrayRef&lt;const char *&gt; @ 0xbff5deb0, Argv0=&quot;swift&quot;, MainAddr=0x0574b020) + 11773 at frontend_main.cpp:1118</p><p>    frame #57: 0x000a215e LLVMTest`+[LibSwiftWrapper runSwiftFrontend:](self=LibSwiftWrapper, _cmd=&quot;runSwiftFrontend:&quot;, options=unable to read data) + 174 at libSwiftWrapper.mm:23</p><p>    frame #58: 0x001374c0 LLVMTest`LLVMTest.ViewController.viewDidLoad (self=0x7b0208e0)() -&gt; () + 400 at ViewController.swift:17</p><p>    frame #59: 0x001376b2 LLVMTest`@objc LLVMTest.ViewController.viewDidLoad (LLVMTest.ViewController)() -&gt; () + 34 at ViewController.swift:0</p><p>    frame #60: 0x0ca062ae UIKit`-[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] + 44</p><p>    frame #61: 0x0ca0adce UIKit`-[UIViewController loadViewIfRequired] + 1384</p><p>    frame #62: 0x0ca0b1ed UIKit`-[UIViewController view] + 35</p><p>    frame #63: 0x0c8b8f94 UIKit`-[UIWindow addRootViewControllerViewIfPossible] + 69</p><p>    frame #64: 0x0c8b96b1 UIKit`-[UIWindow _setHidden:forced:] + 304</p><p>    frame #65: 0x0c8b9a67 UIKit`-[UIWindow _orderFrontWithoutMakingKey] + 49</p><p>    frame #66: 0x0c8cd118 UIKit`-[UIWindow makeKeyAndVisible] + 80</p><p>    frame #67: 0x0c8356e7 UIKit`-[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4190</p><p>    frame #68: 0x0c83ccd6 UIKit`-[UIApplication _runWithMainScene:transitionContext:completion:] + 1989</p><p>    frame #69: 0x0c861ee5 UIKit`__84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke3218 + 68</p><p>    frame #70: 0x0c839966 UIKit`-[UIApplication workspaceDidEndTransaction:] + 163</p><p>    frame #71: 0x0f5fec76 FrontBoardServices`__37-[FBSWorkspace clientEndTransaction:]_block_invoke_2 + 71</p><p>    frame #72: 0x0f5fe74d FrontBoardServices`__40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 54</p><p>    frame #73: 0x0f61c173 FrontBoardServices`-[FBSSerialQueue _performNext] + 184</p><p>    frame #74: 0x0f61c5aa FrontBoardServices`-[FBSSerialQueue _performNextFromRunLoopSource] + 52</p><p>    frame #75: 0x0f61b8a6 FrontBoardServices`FBSSerialQueueRunLoopSourceHandler + 33</p><p>    frame #76: 0x0c3c96ff CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15</p><p>    frame #77: 0x0c3bf38b CoreFoundation`__CFRunLoopDoSources0 + 523</p><p>    frame #78: 0x0c3be7a8 CoreFoundation`__CFRunLoopRun + 1032</p><p>    frame #79: 0x0c3be0e6 CoreFoundation`CFRunLoopRunSpecific + 470</p><p>    frame #80: 0x0c3bdefb CoreFoundation`CFRunLoopRunInMode + 123</p><p>    frame #81: 0x0c839206 UIKit`-[UIApplication _run] + 540</p><p>    frame #82: 0x0c83ebfa UIKit`UIApplicationMain + 160</p><p>    frame #83: 0x0013711c LLVMTest`main + 140 at AppDelegate.swift:12</p><p>    frame #84: 0x0e3c6a21 libdyld.dylib`start + 1</p><p><br></p><p>  thread #2: tid = 0xc5088, 0x0e6fb8ce libsystem_kernel.dylib`kevent64 + 10, queue = &#39;com.apple.libdispatch-manager&#39;</p><p>    frame #0: 0x0e6fb8ce libsystem_kernel.dylib`kevent64 + 10</p><p>    frame #1: 0x0e38a048 libdispatch.dylib`_dispatch_mgr_invoke + 257</p><p>    frame #2: 0x0e389d98 libdispatch.dylib`_dispatch_mgr_thread + 60</p><p>(lldb) </p><p><br></p><p>Thanks</p><span><font color="#888888"><p>Ramakrishna </p></font></span></div></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 22, 2016 at 12:59 AM, Ramakrishna Mallireddy <span dir="ltr">&lt;<a href="mailto:ramakrishna.malli@gmail.com" target="_blank">ramakrishna.malli@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>







<p>After resolving the opengles conflict with llvm code base, I am stuck at undefined symbol error,</p><p>Undefined symbols for architecture i386:</p>
<p>  &quot;(anonymous namespace)::<b>LoweredValue</b>::<b>$_6</b>::<b>$_7</b>::<b>~$_7()</b>&quot;, referenced from:</p>
<p>      (anonymous namespace)::<b>LoweredValue</b>::<b>LoweredValue</b>(<b>swift</b>::<b>irgen</b>::<b>Explosion</b>&amp;) in libSwift.a(<b>IRGenSIL</b>.o)</p>
<p>ld: symbol(s) not found for architecture i386</p><p>I am not getting this error, when I link the swift libs generated by the build script that comes with the swift source.</p><p>This error is generated, only when I included all the swift front-end source[except Immediate.a source ] in my project and compiled it as a single static library and linked it to my app.</p><p>I believe the following code (<b>IRGenSIL.cpp</b>) is the one that mentioned in the error:</p><p><span><b>LoweredValue(Explosion &amp;e)</b></span></p><p><span><b>    : kind(Kind::Explosion), explosion{{}} {</b></span></p><p><b><span>    </span><span>auto</span><span> Elts = e.claimAll();</span></b></p><p><span><b>    explosion.values.append(Elts.begin(), Elts.end());</b></span></p><p>











</p><p><span><b>  }</b></span></p><p>Thanks</p><span><font color="#888888"><p>Ramakrishna</p>







</font></span></div><div>















</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 18, 2016 at 3:17 AM, Joe Groff <span dir="ltr">&lt;<a href="mailto:jgroff@apple.com" target="_blank">jgroff@apple.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><br>
&gt; On Mar 17, 2016, at 2:22 PM, Ramakrishna Mallireddy &lt;<a href="mailto:ramakrishna.malli@gmail.com" target="_blank">ramakrishna.malli@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; The libLLVMContainer.dylib is actually from opengl.framework.<br>
&gt; On iOS the lib may be loaded by opengles.framework and I am not using any opengl myself, ios may be loading it by default.<br>
&gt;<br>
&gt; I have compiled llvm core &amp; support libs along with my llvmtest code, Even then the conflict remains.<br>
&gt; How to I get around this.<br>
<br>
</span>You should statically link in any LLVM libraries you need, ensuring you link the versions built as part of your swiftc build. LLVM libraries are not ABI-stable, and any LLVM libraries that might happen to be distributed in the OS are not for use outside the OS.<br>
<span><font color="#888888"><br>
-Joe<br>
<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>