title: Dwarf Error: "wrong version in compilation unit header" and "Could not find abbrev number 1"
body: <p>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.</p>
  
  <p>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:</p>
  
  <ul>
  <li><p>Dwarf Error: wrong version in compilation unit header (is 0, should be 2, 3, or 4)</p></li>
  <li><p>Dwarf Error: Could not find abbrev number 1</p></li>
  </ul>
  
  <p>I've never encountered this error before. It sounds like the symbols are messed up somehow.</p>
  
  <p>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.</p>
  
  <p>I'm using g++ (Debian 4.7.2-5) 4.7.2.</p>
  
  <p>How do I go about figuring out what's causing the symbols to get all messed up?</p>