This has been fixed as part of PR ld/3191 by Daniel Jacobowitz (on 2008/09/19)
Christophe. On 30.09.2008 00:06, geir at cray dot com wrote:
Using ld version 2.18 when linking a PGI 7.2-5 compiled program, I see the following dwarf error: $ cat datatypes.module.f90 module datatypes integer, parameter :: short = 1 end module datatypes $ cat main.f90 program TEST use datatypes end program TEST $ pgf90 -Mdwarf3 -g -c datatypes.module.f90 < $ pgf90 -Mdwarf3 -g -c main.f90 $ pgf90 -Mdwarf3 main.o /usr/bin/ld: Dwarf Error: found dwarf version '3', this reader only handles version 2 information. main.o:(.debug_info+0x74): undefined reference to `..Dm_datatypes' $ The "undefined reference" error is a PGI compiler error, so that can be ignored. The message: "Dwarf Error: found dwarf version '3', this reader only handles version 2 information." is occurring when the loader is trying to get the line number for the "undefined reference" error. 'ld' should at least be able to get the source line number for a code in Dwarf 3 format.
_______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils