/usr/bin/ld: Dwarf Error

RSFalcon7 picture RSFalcon7 · Jun 19, 2012 · Viewed 14.3k times · Source

I'm trying to compile a complex application with nvcc, and a need to change the compiler from mpic++ to g++, since that I'm having this error:

/usr/bin/ld: Dwarf Error: found dwarf version '3', this reader only handles version 2 information.

What is Dwarf? What this error means?

Any tip to solve it? What usefull informations I'm missing here?

Answer

Jonathan Wakely picture Jonathan Wakely · Jun 19, 2012

If cleaning up the mpic++ object files doesn't solve it you can tell g++ not to emit DWARF3 info with -gdwarf-2 -gstrict-dwarf