-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: go build fails to create a c-archive when using binary-only-packages #26590
Comments
I have just tested with the latest (https://golang.org/doc/install?download=go1.10.3.linux-armv6l.tar.gz), and it seems like the c-archive is produced:
|
Ok, so after the update it seems to have only worked once, now if I try to rebuild it I get the same error:
Tree of GOPATH:
Is there a way to get more information with regards of what could be causing the message:
If I try to build the package on it's own it succeeds:
|
Change https://golang.org/cl/125818 mentions this issue: |
I would guess that the package is expected to be in linux_arm_shared, because using |
@ianlancetaylor and @andybons, thank you for the quick reply and for the patch. I can confirm that after moving the BOP archive into Tree of
Output of
|
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, tested with go1.10.1 and then upgraded to go1.10.3
What operating system and processor architecture are you using (
go env
)?What did you do?
Created a simple package called
github.com/triztian/carchive
that imports a Binary Only PackageThe packages source:
github.com/triztian/carchive/main.go:
github.com/triztian/bop-src/props.go:
And the sources of the BOP go file:
And finally my
$GOPATH
tree before running the build command:The command used to do the build
What did you expect to see?
A
libcarchive.a
file in my current directoryWhat did you see instead?
The following output:
Exit status:
And the command output of go build (
-x
):The text was updated successfully, but these errors were encountered: