-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: -buildmode=plugin -linkshared -> build failure #18671
Comments
This is a feature I couldn't find time for in 1.8, but I would like to see in 1.9. (After darwin support.) I'm not sure if this warrants a better error message for 1.8. Thoughts, @bradfitz, @ianlancetaylor? |
@crawshaw thanks for feedback. |
Also ran into this issue, with go 1.10.2 and 1.10.3; downgrading to 1.9.7 it works. |
Hi. We are currently running into this problem. It's quite hard to find out what's the current status of this issue. Was it resolved in 1.9 (doesn't look like) ? Is it definitely dropped ? |
I don't expect |
@ianlancetaylor thanks for the feedback |
Thank you. After reading it, I tried it. But when I use the go. Mod style, there are all kinds of panic. |
This bug was fixed in 14c92c5 |
Here is what I get today with Go tip (
For
(and the same even after Maybe I'm missing something, but I cannot say this issue is fixed. |
I'm useing 14c92c5 So, what's wrong with my understanding? |
Not sure what it is, but for me your example fails with both gotip and go1.14.3:
|
$ GOPATH= |
Obsoleted by #47788 |
Change https://golang.org/cl/369594 mentions this issue: |
Please answer these questions before submitting your issue. Thanks!
What did you do?
Hello up there. I'm trying to build plugin dynamically linked to other go packages and it fails. Details below:
src/all.bash
rungo install -buildmode=shared std
was run---- 8< ---- (myplugin.go)
go build -buildmode=plugin -linkshared myplugin.go
What did you expect to see?
Build succeeds; myplugin.so dynamically links to packages it imports.
What did you see instead?
(for the reference building without
-linkshared
succeeds)Does this issue reproduce with the latest release (go1.7.4)?
No, there is no plugin support in go1.7 at all:
Possibly related issues:
#17150
System details
The text was updated successfully, but these errors were encountered: