bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug ld/6924] New: ld does not understand DWARF version 3 when tryin


From: Christophe LYON
Subject: Re: [Bug ld/6924] New: ld does not understand DWARF version 3 when trying to get a source line number
Date: Tue, 30 Sep 2008 09:49:32 +0200
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

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.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]