Using the command: llvm-gcc -m64 hello.c resulted in the following error: sorry, unimplemented: 64-bit mode not compiled in Bill Wendling wrote:> > Did you compile it with -m64? > > -bw > > On Jul 24, 2009, at 11:00 PM, funceval wrote: > >> >> Hi, >> >> I just installed llvm on a 64 bit system and tried running it on a >> hello >> world program but I got the following errors: >> >> /tmp/ccXb6nzp.s: Assembler messages: >> /tmp/ccXb6nzp.s:9: Error: suffix or operands invalid for `push' >> /tmp/ccXb6nzp.s:21: Error: suffix or operands invalid for `pop' >> >> I have installed llvm 2.5 and it was configured with llvm-gcc4.2-2.5 >> >> Please help me resolve this issue. >> >> Thanks >> -- >> View this message in context: >> http://www.nabble.com/Compiling-with-llvm-gcc-tp24655143p24655143.html >> Sent from the LLVM - Dev mailing list archive at Nabble.com. >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-- View this message in context: http://www.nabble.com/Compiling-with-llvm-gcc-tp24655143p24661269.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
On Sat, Jul 25, 2009 at 1:13 PM, funceval<funceval at gmail.com> wrote:> > Using the command: > llvm-gcc -m64 hello.c > > resulted in the following error: > sorry, unimplemented: 64-bit mode not compiled inUsing a 32-bit compiler probably isn't going to work quite right on a 64-bit system; make sure you're configuring llvm-gcc for a 64-bit target. -Eli
Hello, This error message means that you haven't compiled LLVM-GCC from the source for your architecture. The distribution you have is probably for 32-bit machines only. Tell us more about your system configuration and maybe we can figure out where the problem arises in the compilation of LLVM-GCC. ----- Original Message ----> From: funceval <funceval at gmail.com> > To: llvmdev at cs.uiuc.edu > Sent: Saturday, July 25, 2009 3:13:13 PM > Subject: Re: [LLVMdev] Compiling with llvm-gcc > > > Using the command: > llvm-gcc -m64 hello.c > > resulted in the following error: > sorry, unimplemented: 64-bit mode not compiled in > > > > Bill Wendling wrote: > > > > Did you compile it with -m64? > > > > -bw > > > > On Jul 24, 2009, at 11:00 PM, funceval wrote: > > > >> > >> Hi, > >> > >> I just installed llvm on a 64 bit system and tried running it on a > >> hello > >> world program but I got the following errors: > >> > >> /tmp/ccXb6nzp.s: Assembler messages: > >> /tmp/ccXb6nzp.s:9: Error: suffix or operands invalid for `push' > >> /tmp/ccXb6nzp.s:21: Error: suffix or operands invalid for `pop' > >> > >> I have installed llvm 2.5 and it was configured with llvm-gcc4.2-2.5 > >> > >> Please help me resolve this issue. > >> > >> Thanks
Hi, Thank you for your help. I compiled llvm-gcc from source and tried again with the new binaries and it worked this time. I used the option "--disable-multilib" while running configure for llvm-gcc and I think thats what made the difference. Hoping to build some tools using llvm now :) Thanks Samuel Crow wrote:> > > Hello, > > > This error message means that you haven't compiled LLVM-GCC from the > source for your architecture. The distribution you have is probably for > 32-bit machines only. Tell us more about your system configuration and > maybe we can figure out where the problem arises in the compilation of > LLVM-GCC. > > > ----- Original Message ---- >> From: funceval <funceval at gmail.com> >> To: llvmdev at cs.uiuc.edu >> Sent: Saturday, July 25, 2009 3:13:13 PM >> Subject: Re: [LLVMdev] Compiling with llvm-gcc >> >> >> Using the command: >> llvm-gcc -m64 hello.c >> >> resulted in the following error: >> sorry, unimplemented: 64-bit mode not compiled in >> >> >> >> Bill Wendling wrote: >> > >> > Did you compile it with -m64? >> > >> > -bw >> > >> > On Jul 24, 2009, at 11:00 PM, funceval wrote: >> > >> >> >> >> Hi, >> >> >> >> I just installed llvm on a 64 bit system and tried running it on a >> >> hello >> >> world program but I got the following errors: >> >> >> >> /tmp/ccXb6nzp.s: Assembler messages: >> >> /tmp/ccXb6nzp.s:9: Error: suffix or operands invalid for `push' >> >> /tmp/ccXb6nzp.s:21: Error: suffix or operands invalid for `pop' >> >> >> >> I have installed llvm 2.5 and it was configured with llvm-gcc4.2-2.5 >> >> >> >> Please help me resolve this issue. >> >> >> >> Thanks > > > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-- View this message in context: http://www.nabble.com/Compiling-with-llvm-gcc-tp24655143p24664027.html Sent from the LLVM - Dev mailing list archive at Nabble.com.