-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: cannot build go binary on Windows #21169
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
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-Windows
Comments
I was not able to reproduce this bug.
|
My colleague cannot reproduce this either. so probably my windows instance has some problem. We currently find a way to work around this by remove go libs that are not purely go. So this is not a blocker for us anymore. Thanks for taking a look anyway! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-Windows
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go1.8.3 windows/amd64
What operating system and processor architecture are you using (
go env
)?set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\admin\projects\chromium\src\third_party\catapult\web_page_replay_go;C:\Users\admin\go
set GORACE=
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -gno-record-gcc-switches
set CXX=g++
set CGO_ENABLED=1
set PKG_CONFIG=pkg-config
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
What did you do?
Install https://mingw-w64.org/doku.php
git clone https://github.com/catapult-project/catapult (in this case I already have this folder in C:\Users\admin\projects\chromium\src\third_party)
cd web_page_replay_go
Follows the instructions in https://github.com/catapult-project/catapult/blob/master/web_page_replay_go/README to fetch required dependencies.
Run
go build src\wpr.go
to build wpr-go binary.What did you expect to see?
Be able to build wpr.exe binary.
What did you see instead?
The text was updated successfully, but these errors were encountered: