You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
env GOOS=linux GOARCH=arm go install -v std is the command you want.
mikioh
changed the title
Enable full rebuild of standard library for cross-compiling
cmd/go: Enable full rebuild of standard library for cross-compiling
Oct 13, 2016
@davecheney thanks. I looked and looked for 'std'.
If the docs made [packages] a link to the package-lists section where go xyz ... [packages] appears, I would have found that answer quickly. How about re-titling and reopening this issue to that effect?
Distro: Arch Linux
Version: go1.7.1 linux/amd64
go env:
What did you do?
I wish to rebuild the standard library for cross-compiling, following advice from
http://dave.cheney.net/2015/08/22/cross-compilation-with-go-1-5
When logged in as root in empty directory...
This gives an error:
GOOS=linux GOARCH=arm go install -a -v -p 4
can't load package: package .: no buildable Go source files in /home/x/y
This only rebuilds part of the stdlib:
GOPATH=/home/x/y GOOS=linux GOARCH=arm go install -a -v -p 4 github.com/x/y
There should be a way to rebuild the whole stdlib for a different architecture.
The text was updated successfully, but these errors were encountered: