# Building Go on Windows

**URL:** <https://forum.golangbridge.org/t/building-go-on-windows/37645>\
**Category:** Getting Help\
**Created:** [January 31, 2025, 4:53pm UTC](https://forum.golangbridge.org/t/building-go-on-windows/37645 "2025-01-31T16:53:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![quanch](https://forum.golangbridge.org/letter_avatar_proxy/v4/letter/q/d6d6ee/32.png) [@quanch](https://forum.golangbridge.org/u/quanch)\
**Post date:** [January 31, 2025, 4:53pm UTC](https://forum.golangbridge.org/t/building-go-on-windows/37645/1 "2025-01-31T16:53:10Z")

</div>

Hi there

I need to build new version of go:

[signal arrived during external code execution · Issue #31 · timob/jnigi]

have changed signal\_windows.go, installed minGW and am trying running all.bat:

C:\Program Files\GoFork\src\>  
C:\Program Files\GoFork\src\>all  
Building Go cmd/dist using C:\Users\brian.morrow\Go1.4. (go1.22.3 windows/amd64)  
go: no such tool “compile”  
go: no such tool “compile”  
go: no such tool “compile”  
go: no such tool “compile”  
go: no such tool “compile”  
go: no such tool “compile”  
go: no such tool “compile”

but as you can see its not working.

Here is my Path:

Path=C:\MinGW\msys\1.0\bin;C:\Program Files\Go\bin;.;C:\MinGW\bin

Here is go env:

C:\Program Files\GoFork\src\>go env  
set GO111MODULE=  
set GOARCH=amd64  
set GOBIN=  
set GOCACHE=C:\Users\brian.morrow\AppData\Local\go-build  
set GOENV=C:\Users\brian.morrow\AppData\Roaming\go\env  
set GOEXE=.exe  
set GOEXPERIMENT=  
set GOFLAGS=  
set GOHOSTARCH=amd64  
set GOHOSTOS=windows  
set GOINSECURE=  
set GOMODCACHE=C:\Users\brian.morrow\go\pkg\mod  
set GONOPROXY=  
set GONOSUMDB=  
set GOOS=windows  
set GOPATH=C:\Users\brian.morrow\go  
set GOPRIVATE=  
set GOPROXY=[https://proxy.golang.org](https://proxy.golang.org),direct  
set GOROOT=C:\PROGRA~1\go  
set [GOSUMDB=sum.golang.org](http://GOSUMDB=sum.golang.org)  
set GOTMPDIR=  
set GOTOOLCHAIN=auto  
set GOTOOLDIR=C:\PROGRA~1\go\pkg\tool\windows\_amd64  
set GOVCS=  
set GOVERSION=go1.22.3  
set GCCGO=gccgo  
set GOAMD64=v1  
set AR=ar  
set CC=gcc  
set CXX=g++  
set CGO\_ENABLED=1  
set GOMOD=C:\Program Files\GoFork\src\go.mod  
set GOWORK=  
set CGO\_CFLAGS=-IC:\PROGRA~1\Java\jdk-11.0.2\include -IC:\PROGRA~1\Java\jdk-11.0.2\include/win32  
set CGO\_CPPFLAGS=  
set CGO\_CXXFLAGS=-O2 -g  
set CGO\_FFLAGS=-O2 -g  
set CGO\_LDFLAGS=-O2 -g  
set PKG\_CONFIG=pkg-config  
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -Wl,–no-gc-sections -fmessage-length=0 -ffile-prefix-map=C:\Users\BRIAN~1.MOR\AppData\Local\Temp\go-build3133655552=/tmp/go-build -gno-record-gcc-switches

Any suggestions much appreciated

Rory.

---

<div class="post-metadata">

**Author:** ![Dean\_Davidson](https://forum.golangbridge.org/user_avatar/forum.golangbridge.org/dean_davidson/32/9685_2.png) [@Dean\_Davidson](https://forum.golangbridge.org/u/Dean_Davidson)\
**Post date:** [January 31, 2025, 5:28pm UTC](https://forum.golangbridge.org/t/building-go-on-windows/37645/2 "2025-01-31T17:28:24Z")

</div>

Not super familiar with that error, but did you see this?

> <https://stackoverflow.com/questions/51182422/all-of-a-sudden-go-tool-no-such-tool-compile>

---

<div class="post-metadata">

**Author:** ![system](https://forum.golangbridge.org/uploads/default/original/2X/5/5ad234f7c3dbc68b6cc72d338ce4f2973d9fd81c.png) [@system](https://forum.golangbridge.org/u/system)\
**Post date:** [May 1, 2025, 5:29pm UTC](https://forum.golangbridge.org/t/building-go-on-windows/37645/3 "2025-05-01T17:29:06Z")

</div>

Closed on May 1, 2025, 5:29pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
