Skip to content

cmd/compile, cmd/link: relocation target go.builtin.error.Error not defined #29304

@akavel

Description

@akavel

What version of Go are you using (go version)?

$ go version
go version go1.11.3 linux/amd64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

Repro on play.golang.org.

What did you do?

https://play.golang.org/p/6NvGso5fqRg

package main

import (
	"fmt"
)

func main() {
	var err error
	fmt.Println(error.Error(err))
}

What did you expect to see?

Some understandable/user-friendly error message, pointing to line 9. (Or, actually, maybe this line is actually correct and should compile? Not 100% sure. With go1.9 it seemed to compile correctly and work!)

What did you see instead?

main.main: relocation target go.builtin.error.Error not defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions