Building Go on Windows

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,direct
set GOROOT=C:\PROGRA~1\go
set 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.

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

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