cmd/link: building plugin will fail with -gcflags="-N" #21197
Closed
Labels
Comments
@st0012 did you try on 1.9rc1? |
@mvdan It works on |
I have no idea - I'm not involved in the plugin work. Perhaps @crawshaw can answer. In any case, use https://github.com/golang/go/wiki/Questions for questions. Thanks! |
@mvdan Got it, thanks |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Go are you using (
go version
)?go version go1.8.3 linux/amd64
What operating system and processor architecture are you using (
go env
)?Go env:
What did you do?
I build a plugin with
-gcflags="-N"
:I have a repo that can reproduce the issue.
Just run
docker build .
and it should work.Note
If I build it without setting
gcflags
and specifying build mode at the same time, it works. It fails only when both of them are set.What did you expect to see?
It builds the plugin successfully.
What did you see instead?
Error messages, here's some of them:
The text was updated successfully, but these errors were encountered: