bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/6924] ld does not understand DWARF version 3 when trying to get


From: christophe dot lyon at st dot com
Subject: [Bug ld/6924] ld does not understand DWARF version 3 when trying to get a source line number
Date: 30 Sep 2008 07:50:40 -0000

------- Additional Comments From christophe dot lyon at st dot com  2008-09-30 
07:50 -------
Subject: Re:  New: ld does not understand DWARF version 3 when
 trying to get a source line number

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.
> 



-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=6924

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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