You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The future GCC 6 is making heavier use of DW_AT_specification, which cgo does not understand. This was reported against gccgo as https://gcc.gnu.org/PR68072, but it is a general Go problem. Filing this here to consider adding the patch (which I will send out momentarily) to Go 1.5.2.
The bug can occur in various ways, but the simplest is when there is both an external declaration for a variable and a real declaration, as in
// extern int i;
// int i;
import "C"
Of course in practice the extern int i; would be in a header file. GCC 6 now generates a DW_AT_specification pointing from one declaration to the other. (This is part of the early debug work described at https://gcc.gnu.org/wiki/early-debug .) The cgo tool sees a variable entry that uses DW_AT_specification, an entry that has no name or type, and issues a "malformed DWARF TagVariable entry" error.
The text was updated successfully, but these errors were encountered:
…hey have a AttrSpecification
Fixes#13344.
Change-Id: I33c6721fd33d144c85c87840ddf27ce15aa72328
Reviewed-on: https://go-review.googlesource.com/17151
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Minux Ma <minux@golang.org>
Reviewed-on: https://go-review.googlesource.com/17145
Reviewed-by: Ian Lance Taylor <iant@golang.org>
The future GCC 6 is making heavier use of DW_AT_specification, which cgo does not understand. This was reported against gccgo as https://gcc.gnu.org/PR68072, but it is a general Go problem. Filing this here to consider adding the patch (which I will send out momentarily) to Go 1.5.2.
The bug can occur in various ways, but the simplest is when there is both an external declaration for a variable and a real declaration, as in
Of course in practice the
extern int i;
would be in a header file. GCC 6 now generates a DW_AT_specification pointing from one declaration to the other. (This is part of the early debug work described at https://gcc.gnu.org/wiki/early-debug .) The cgo tool sees a variable entry that uses DW_AT_specification, an entry that has no name or type, and issues a "malformed DWARF TagVariable entry" error.The text was updated successfully, but these errors were encountered: