Hi, Sorry for the newbie question. I downloaded llvm 1.8a and llvm-gcc3.4, tried out the simple "Hello, World" program but got the following error. My system is RedHat 9 $ ./hello lli: /home//llvm/lib/Target/X86/X86CodeEmitter.cpp:208: unsigned char ModRMByte(unsigned int, unsigned int, unsigned int): Assertion `Mod < 4 && RegOpcode < 8 && RM < 8 && "ModRM Fields out of range!"' failed. lli((anonymous namespace)::PrintStackTrace()+0x15)[0x84ab499] /lib/tls/libc.so.6[0x3d7ec8] /lib/tls/libc.so.6(abort+0x15)[0x3d94f5] /lib/tls/libc.so.6[0x3d1619] lli((anonymous namespace)::Emitter::emitMemModRMByte(llvm::MachineInstr const&, unsigned int, unsigned int)+0x219)[0x81af7c9] Aborted Thanks, Arthur. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060914/1b609019/attachment.html>
On Thu, 14 Sep 2006, Zhou Sheng wrote:> Sorry for the newbie question. I downloaded llvm 1.8a and llvm-gcc3.4, tried > out the > simple "Hello, World" program but got the following error. My system is > RedHat 9Hrm, this is very strange... I haven't seen this before. Can you please get LLVM from CVS and see if you have the same problem? http://llvm.org/docs/GettingStarted.html#checkout Thanks, -Chris> $ ./hello > lli: /home//llvm/lib/Target/X86/X86CodeEmitter.cpp:208: > unsigned char ModRMByte(unsigned int, unsigned int, unsigned int): > Assertion `Mod < 4 && RegOpcode < 8 && RM < 8 && "ModRM Fields out of > range!"' failed. > lli((anonymous namespace)::PrintStackTrace()+0x15)[0x84ab499] > /lib/tls/libc.so.6[0x3d7ec8] > /lib/tls/libc.so.6(abort+0x15)[0x3d94f5] > /lib/tls/libc.so.6[0x3d1619] > lli((anonymous namespace)::Emitter::emitMemModRMByte(llvm::MachineInstr > const&, unsigned int, unsigned int)+0x219)[0x81af7c9] > Aborted > > Thanks, > Arthur. > >-Chris -- http://nondot.org/sabre/ http://llvm.org/
Maybe Matching Threads
- [LLVMdev] Hello World crashes!
- [LLVMdev] [RFC PATCH 1/2] x86: Fix ModR/M byte output in 16-bit addressing mode
- [LLVMdev] [RFC PATCH 1/2] x86: Fix ModR/M byte output in 16-bit addressing mode
- [LLVMdev] LLVM 2.0 / GCC 3.4
- x86 instruction format which takes a single 64-bit immediate