On Aug 10, 2010, at 2:01 PM, Török Edwin wrote:> Did you try llvm-2.7?Just tried LLVM 2.7. Exactly the same. No backtrace as before. I must be doing something stupid. Can anyone reproduce this using my Makefile? -Denis
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. -Denis On Aug 10, 2010, at 3:38 PM, Bueno, Denis wrote:> > On Aug 10, 2010, at 2:01 PM, Török Edwin wrote: >> Did you try llvm-2.7? > > Just tried LLVM 2.7. Exactly the same. No backtrace as before. I must be doing something stupid. Can anyone reproduce this using my Makefile? > > -Denis
On Aug 10, 2010, at 3: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.I also verified that with llvm 2.6, taking out -m32 causes it to work. I don't know why. Do I have to build llvm/llvm-gcc in a different way in order to get -m32 to behave properly? -Denis
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