Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

/usr/bin/ld: Dwarf Error

Tags:

g++

ld

dwarf

nvcc

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?

like image 895
RSFalcon7 Avatar asked Jun 18 '12 22:06

RSFalcon7


1 Answers

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

like image 184
Jonathan Wakely Avatar answered Oct 17 '22 01:10

Jonathan Wakely