[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/6924] New: ld does not understand DWARF version 3 when trying to
From: |
geir at cray dot com |
Subject: |
[Bug ld/6924] New: ld does not understand DWARF version 3 when trying to get a source line number |
Date: |
29 Sep 2008 22:06:00 -0000 |
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.
--
Summary: ld does not understand DWARF version 3 when trying to
get a source line number
Product: binutils
Version: 2.18
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: geir at cray dot com
CC: bug-binutils at gnu dot org
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.
- [Bug ld/6924] New: ld does not understand DWARF version 3 when trying to get a source line number,
geir at cray dot com <=