opensource
opensource copied to clipboard
Failure trying to cross compile GO 1.7
I've just been following the (excellent) instructions in Get the required software for Windows and when I got to step 9 from Install Go and cross-compile it, it fails with:
PS C:\go\src> .\make.bat
##### Building Go bootstrap tool.
cmd/dist
ERROR: Cannot find C:\Users\matt\Go1.4\bin\go.exe
"Set GOROOT_BOOTSTRAP to a working Go tree >= Go 1.4."
I'm running on WIndows Server 2016 TP5.
I tried to install Go 1.4 via the msi, and that uninstalled Go 1.7. I then re-installed Go 1.7, and that uninstalled Go 1.4.
Solved it by:
- download go1.4.windows-amd64.zip and extract to
c:\go.1.4 - download go1.7.windows-amd64.zip and extract to
c:\go.1.7 - run
make.batinc:\go.1.4\src - run
set GOOS=linux - run
set GOARCH=amd64 - run
make.batinc:\go1.7\src
I'm unblocked, however I'd still suggest that the instructions are updated to keep this part as super smooth and polished as the rest.
Keep up the great work!