<html><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:12pt"><div><span>Thanks Daniel.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;"><span>Sure. Attaching the qt app. </span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;">My environment.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;">1. os x, </div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'lucida console', sans-serif; background-color:
 transparent; font-style: normal;">2. qt 5 installed.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;">3. modify lli to load qt5core,qt5widgets,qt5gui library. I couldnt figure out a way to load these libs as an option to lli.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;">4. run qmake in the project directory, where you unzip the attachment. Make sure you have Qt 5 binaries in the path. </div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;">5. make</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;">6. llvm-link all .bc files. </div><div style="color:
 rgb(0, 0, 0); font-size: 16px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;">Thanks and Regards,</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;">Shailesh.</div><div><br></div>  <div style="font-family: 'lucida console', sans-serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> "Malea, Daniel" <daniel.malea@intel.com><br>
 <b><span style="font-weight: bold;">To:</span></b> Shailesh Kumar <shaileshkumar41@yahoo.com>; "llvmdev@cs.uiuc.edu" <llvmdev@cs.uiuc.edu> <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, August 20, 2013 10:46 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [LLVMdev] Trying to run qt app compiled to bit code Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!")<br> </font> </div> <div class="y_msg_container"><br>Looks like a bug in the DebugIR pass. I imagine that without the -debug–ir flag, you will be able to get a little further.<br><br>Nonetheless, can you send me the "bitcodetestqtapp" that you're running, or steps to reproduce? I'd love to take a look.<br><br>Thanks,<br>Dan<br><br>From: Shailesh Kumar <<a ymailto="mailto:shaileshkumar41@yahoo.com" href="mailto:shaileshkumar41@yahoo.com">shaileshkumar41@yahoo.com</a><mailto:<a
 ymailto="mailto:shaileshkumar41@yahoo.com" href="mailto:shaileshkumar41@yahoo.com">shaileshkumar41@yahoo.com</a>>><br>Reply-To: Shailesh Kumar <<a ymailto="mailto:shaileshkumar41@yahoo.com" href="mailto:shaileshkumar41@yahoo.com">shaileshkumar41@yahoo.com</a><mailto:<a ymailto="mailto:shaileshkumar41@yahoo.com" href="mailto:shaileshkumar41@yahoo.com">shaileshkumar41@yahoo.com</a>>><br>Date: Tuesday, 20 August, 2013 9:32 AM<br>To: LLVM List <<a ymailto="mailto:llvmdev@cs.uiuc.edu" href="mailto:llvmdev@cs.uiuc.edu">llvmdev@cs.uiuc.edu</a><mailto:<a ymailto="mailto:llvmdev@cs.uiuc.edu" href="mailto:llvmdev@cs.uiuc.edu">llvmdev@cs.uiuc.edu</a>>><br>Subject: [LLVMdev] Trying to run qt app compiled to bit code Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!")<br><br>Hi,<br><br>I am trying to run a simple qt 5 application compiled to bitcode on OS X. I am getting the following error.
 I have modified lli to load qt libraries. When I use with option mcjit, I get the following error<br><br>lli -use-mcjit -debug-ir bitcodetestqtapp<br><br>Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"), function getTypeSizeInBits, file /Users/shailesh/repos/llvm/include/llvm/IR/DataLayout.h, line 449.<br>0  lli               0x0000000102244f3e llvm::sys::PrintStackTrace(__sFILE*) + 46<br>1  lli               0x000000010224524b PrintStackTraceSignalHandler(void*) + 27<br>2  lli               0x0000000102245559 SignalHandler(int) + 297<br>3  libsystem_c.dylib 0x00007fff85a6d94a _sigtramp + 26<br>4  libsystem_c.dylib 0x00007fff5e69c488 _sigtramp + 3636652888<br>5  lli               0x000000010224527b raise + 27<br>6  lli   
            0x0000000102245332 abort + 18<br>7  lli               0x0000000102245311 __assert_rtn + 129<br>8  lli               0x0000000101a8d8c3 llvm::DataLayout::getTypeSizeInBits(llvm::Type*) const + 115<br>9  lli               0x0000000101a6e176 (anonymous namespace)::DIUpdater::getOrCreateType(llvm::Type*) + 294<br>10 lli               0x0000000101a6e435 (anonymous namespace)::DIUpdater::getOrCreateType(llvm::Type*) + 997<br>11 lli               0x0000000101a6e31b (anonymous namespace)::DIUpdater::getOrCreateType(llvm::Type*) + 715<br>12 lli               0x0000000101a6e435 (anonymous namespace)::DIUpdater::getOrCreateType(llvm::Type*) + 997<br>13 lli              
 0x0000000101a6e31b (anonymous namespace)::DIUpdater::getOrCreateType(llvm::Type*) + 715<br>14 lli               0x0000000101a6e31b (anonymous namespace)::DIUpdater::getOrCreateType(llvm::Type*) + 715<br>15 lli               0x0000000101a6e31b (anonymous namespace)::DIUpdater::getOrCreateType(llvm::Type*) + 715<br>16 lli               0x0000000101a6e31b (anonymous namespace)::DIUpdater::getOrCreateType(llvm::Type*) + 715<br>17 lli               0x0000000101a6e31b (anonymous namespace)::DIUpdater::getOrCreateType(llvm::Type*) + 715<br>18 lli               0x0000000101a6e435 (anonymous namespace)::DIUpdater::getOrCreateType(llvm::Type*) + 997<br>19 lli               0x0000000101a6de39 (anonymous
 namespace)::DIUpdater::createFunctionSignature(llvm::Function const*) + 249<br>20 lli               0x0000000101a6adca (anonymous namespace)::DIUpdater::visitFunction(llvm::Function&) + 122<br>21 lli               0x0000000101a6ad17 llvm::InstVisitor<(anonymous namespace)::DIUpdater, void>::visit(llvm::Function&) + 39<br>22 lli               0x0000000101a6ace5 void llvm::InstVisitor<(anonymous namespace)::DIUpdater, void>::visit<llvm::ilist_iterator<llvm::Function> >(llvm::ilist_iterator<llvm::Function>, llvm::ilist_iterator<llvm::Function>) + 101<br>23 lli               0x0000000101a6abc2 llvm::InstVisitor<(anonymous namespace)::DIUpdater, void>::visit(llvm::Module&) + 82<br>24 lli               0x0000000101a6ab5d
 llvm::InstVisitor<(anonymous namespace)::DIUpdater, void>::visit(llvm::Module*) + 29<br>25 lli               0x0000000101a6ab0a (anonymous namespace)::DIUpdater::DIUpdater(llvm::Module&, llvm::StringRef, llvm::StringRef, llvm::Module const*, llvm::ValueMap<llvm::Value const*, llvm::WeakVH, llvm::ValueMapConfig<llvm::Value const*> > const*) + 378<br>26 lli               0x0000000101a6a1ff (anonymous namespace)::DIUpdater::DIUpdater(llvm::Module&, llvm::StringRef, llvm::StringRef, llvm::Module const*, llvm::ValueMap<llvm::Value const*, llvm::WeakVH, llvm::ValueMapConfig<llvm::Value const*> > const*) + 111<br>27 lli               0x0000000101a6a0e1 llvm::DebugIR::createDebugInfo(llvm::Module&, llvm::OwningPtr<llvm::Module>&) + 497<br>28 lli              
 0x0000000101a6a39c llvm::DebugIR::runOnModule(llvm::Module&) + 268<br>29 lli               0x0000000101563276 main + 790<br>30 libdyld.dylib     0x00007fff8975c7e1 start + 0<br>31 libdyld.dylib     0x0000000000000004 start + 1988769827<br>Stack dump:<br>0.Program arguments: lli -use-mcjit -debug-ir bitcodetestqtapp<br>Illegal instruction: 4<br><br><br>If I dont use mcjit, the window shows up and crashes with the following error. I guess qt uses inline asm somewhere.<br><br>lli  bitcodetestqtapp<br>loading dynamic library error<br>on timeout 30<br>LLVM ERROR: JIT does not support inline asm!<br><br><br>Appreciate any help/pointers regarding this.<br><br>Thanks,<br>Shailesh.<br><br></div> </div> </div>  </div></body></html>