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/link: some packages don't build with -buildmode=shared #25065
Comments
I created a repository to reproduce this issue with minimum code
|
CC @mwhudson |
Hm my fix for #22998 doesn't seem to fix this. Will need to make some time to dig properly into this. |
If I run
then
If I run
(that is, add the
So it seems that when using |
Change https://golang.org/cl/153297 mentions this issue: |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.9.5 linux/amd64
go version go1.10.1 linux/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?What did you do?
I tried to install the package
github.com/pebbe/util
in lgo (github.com/yunabe/lgo
). The package installs and works fine as a regular, static package. But lgo tries to build shared packages, and that fails.I don't know what is going on, but this might be a bug in Go with
-buildmode=shared
You can find a detailed description here: yunabe/lgo#57
The text was updated successfully, but these errors were encountered: