[LLVMdev] problems with dwarf/gdb

Anthony Danalis adanalis at eecs.utk.edu
Mon Apr 20 19:01:17 PDT 2009


On Apr 20, 2009, at 8:18 PM, Dale Johannesen wrote:

>
> On Apr 20, 2009, at 5:06 PMPDT, Ken McMillan wrote:
>
>>
>> Well...
>>
>> $ ~/software/llvm-gcc4.2-2.5-x86-linux-RHEL4/bin/llvm-gcc -g gdb1.c -
>> o gdb1
>> /tmp/ccbAj8x9.s: Assembler messages:
>> /tmp/ccbAj8x9.s:35: Error: suffix or operands invalid for `push'
>> /tmp/ccbAj8x9.s:44: Error: suffix or operands invalid for `pop'
>> /tmp/ccbAj8x9.s:56: Error: suffix or operands invalid for `push'
>> /tmp/ccbAj8x9.s:65: Error: suffix or operands invalid for `pop'
>> /tmp/ccbAj8x9.s:77: Error: suffix or operands invalid for `push'
>> /tmp/ccbAj8x9.s:94: Error: suffix or operands invalid for `pop'
>>
>> Don't know what that's about. If I use the -S option and then
>> compile the .s file with gcc, it works fine (but again, can't set
>> breakpoints in gdb).
>
> This means your llvm-gcc is producing 64-bit code and invoking the
> assembler with a 32-bit option, or vice versa.  Run gcc -v to see the
> option you need to pass.  Other people have reported this, I don't
> recall how it is fixed (doesn't affect my system).
>

Here is the previous post:
http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-March/020979.html





More information about the llvm-dev mailing list