<html><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:12pt"><div style="font-family: 'lucida console', sans-serif; font-size: 12pt;">Hi, </div><div style="font-family: 'lucida console', sans-serif; font-size: 12pt;"><br></div><div style="font-family: 'lucida console', sans-serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">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</div><div style="font-family: 'lucida console', sans-serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">lli -use-mcjit -debug-ir bitcodetestqtapp</font></div><div style="background-color:
 transparent;"><br></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">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.</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">0  lli               0x0000000102244f3e llvm::sys::PrintStackTrace(__sFILE*) + 46</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">1  lli               0x000000010224524b PrintStackTraceSignalHandler(void*) + 27</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">2  lli               0x0000000102245559 SignalHandler(int) + 297</font></div><div
 style="background-color: transparent;"><font face="lucida console, sans-serif">3  libsystem_c.dylib 0x00007fff85a6d94a _sigtramp + 26</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">4  libsystem_c.dylib 0x00007fff5e69c488 _sigtramp + 3636652888</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">5  lli               0x000000010224527b raise + 27</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">6  lli               0x0000000102245332 abort + 18</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">7  lli               0x0000000102245311 __assert_rtn + 129</font></div><div style="background-color: transparent;"><font face="lucida console,
 sans-serif">8  lli               0x0000000101a8d8c3 llvm::DataLayout::getTypeSizeInBits(llvm::Type*) const + 115</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">9  lli               0x0000000101a6e176 (anonymous namespace)::DIUpdater::getOrCreateType(llvm::Type*) + 294</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">10 lli               0x0000000101a6e435 (anonymous namespace)::DIUpdater::getOrCreateType(llvm::Type*) + 997</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">11 lli               0x0000000101a6e31b (anonymous namespace)::DIUpdater::getOrCreateType(llvm::Type*) + 715</font></div><div style="background-color: transparent;"><font face="lucida console,
 sans-serif">12 lli               0x0000000101a6e435 (anonymous namespace)::DIUpdater::getOrCreateType(llvm::Type*) + 997</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">13 lli               0x0000000101a6e31b (anonymous namespace)::DIUpdater::getOrCreateType(llvm::Type*) + 715</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">14 lli               0x0000000101a6e31b (anonymous namespace)::DIUpdater::getOrCreateType(llvm::Type*) + 715</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">15 lli               0x0000000101a6e31b (anonymous namespace)::DIUpdater::getOrCreateType(llvm::Type*) + 715</font></div><div style="background-color: transparent;"><font face="lucida console,
 sans-serif">16 lli               0x0000000101a6e31b (anonymous namespace)::DIUpdater::getOrCreateType(llvm::Type*) + 715</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">17 lli               0x0000000101a6e31b (anonymous namespace)::DIUpdater::getOrCreateType(llvm::Type*) + 715</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">18 lli               0x0000000101a6e435 (anonymous namespace)::DIUpdater::getOrCreateType(llvm::Type*) + 997</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">19 lli               0x0000000101a6de39 (anonymous namespace)::DIUpdater::createFunctionSignature(llvm::Function const*) + 249</font></div><div style="background-color: transparent;"><font
 face="lucida console, sans-serif">20 lli               0x0000000101a6adca (anonymous namespace)::DIUpdater::visitFunction(llvm::Function&) + 122</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">21 lli               0x0000000101a6ad17 llvm::InstVisitor<(anonymous namespace)::DIUpdater, void>::visit(llvm::Function&) + 39</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">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</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">23 lli      
         0x0000000101a6abc2 llvm::InstVisitor<(anonymous namespace)::DIUpdater, void>::visit(llvm::Module&) + 82</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">24 lli               0x0000000101a6ab5d llvm::InstVisitor<(anonymous namespace)::DIUpdater, void>::visit(llvm::Module*) + 29</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">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</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">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</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">27 lli               0x0000000101a6a0e1 llvm::DebugIR::createDebugInfo(llvm::Module&, llvm::OwningPtr<llvm::Module>&) + 497</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">28 lli               0x0000000101a6a39c llvm::DebugIR::runOnModule(llvm::Module&) + 268</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">29 lli               0x0000000101563276 main + 790</font></div><div
 style="background-color: transparent;"><font face="lucida console, sans-serif">30 libdyld.dylib     0x00007fff8975c7e1 start + 0</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">31 libdyld.dylib     0x0000000000000004 start + 1988769827</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">Stack dump:</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">0.<span class="Apple-tab-span" style="white-space:pre"> </span>Program arguments: lli -use-mcjit -debug-ir bitcodetestqtapp</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">Illegal instruction: 4</font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'lucida console', sans-serif; font-style: normal;"><font face="lucida console,
 sans-serif"><br></font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'lucida console', sans-serif; font-style: normal;"><font face="lucida console, sans-serif"><br></font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'lucida console', sans-serif; font-style: normal;"><font face="lucida console, sans-serif">If I dont use mcjit, the window shows up and crashes with the following error. I guess qt uses inline asm somewhere.</font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'lucida console', sans-serif; font-style: normal;"><font face="lucida console, sans-serif"><br></font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">lli  bitcodetestqtapp</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">loading
 dynamic library error</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">on timeout 30</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif">LLVM ERROR: JIT does not support inline asm!</font></div><div style="background-color: transparent;"><font face="lucida console, sans-serif"></font></div><div style="background-color: transparent;"><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: Times; font-style: normal;"><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: Times; font-style: normal;"><span style="font-family: 'lucida console', sans-serif;">Appreciate any help/pointers regarding this.</span><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'lucida console', sans-serif; font-style: normal;"><font
 face="lucida console, sans-serif"><br></font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'lucida console', sans-serif; font-style: normal;"><font face="lucida console, sans-serif">Thanks,</font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'lucida console', sans-serif; font-style: normal;"><font face="lucida console, sans-serif">Shailesh.</font></div></div></body></html>