Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: incorrect position information when -iexport=false #26085
If you patch the -iexport flag to default to false (cmd/compile/internal/gc/main.go:248) and run make.bash, it builds the standard library using old bexport format. The files it produces contain incorrect position information for indirectly referenced packages: every object appears to be defined at the point at which it is imported.
You can observe this using the gcexportdata tool, though you'll need its -package flag (https://go-review.googlesource.com/c/tools/+/121195).
One resolution would be to delete bexport (and the copy of it in x/tools).
[Google internal issue b/37534272]
@mdempsky I believe that's correct (pre-existing issue). I'm not sure how much work (if any) we should put into this given that we want to deprecate the old export format after 1.11 is out. But perhaps we need to keep supporting the old format due to products that don't move with the Go release cycle.