I'm trying to compile an application of mine on Debian Wheezy, but I'm running into some odd behavior when I try debug it with gdb. I never experienced this problem when compiling on Squeeze.
I'm able to run the app just fine after I've built it, but if I try attaching gdb, I get one of two errors:
Dwarf Error: wrong version in compilation unit header (is 0, should be 2, 3, or 4)
Dwarf Error: Could not find abbrev number 1
I've never encountered this error before. It sounds like the symbols are messed up somehow.
My application has a dependency on various third-party libraries (enet, crypto++, jsoncpp, expat, boost-1.54, swiften) that I build manually on the same box. I link them all statically to my application.
I'm using g++ (Debian 4.7.2-5) 4.7.2.
How do I go about figuring out what's causing the symbols to get all messed up?