On Aug 10, 2010, at 2:41 PM, Bueno, Denis wrote:> Actually, there is one difference. > > This time I got a warning in gdb about "JITed object file architecture i386 is not compatible with the target architecture i386:x86_64". > > In my Makefile, I passed -m32 to llvm-gcc because that's what I want. Taking that out causes it to work in LLVM 2.7.You may be trying to JIT something for x86-32 on x86-64? Try setting up the jit for x86-32. -eric
On Aug 10, 2010, at 3:46 PM, Eric Christopher wrote:> You may be trying to JIT something for x86-32 on x86-64? Try setting up the jit for x86-32.How do I do that? Is it a runtime flag for lli? Or do I need to configure llvm differently? -Denis
On Aug 10, 2010, at 2:48 PM, Bueno, Denis wrote:> > On Aug 10, 2010, at 3:46 PM, Eric Christopher wrote: > >> You may be trying to JIT something for x86-32 on x86-64? Try setting up the jit for x86-32. > > How do I do that? Is it a runtime flag for lli? Or do I need to configure llvm differently?-mtriple -eric