$ go version
go version devel go1.18-e9e0d1ef70 Fri Aug 20 03:25:36 2021 +0000 windows/amd64
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
set GO111MODULE=on
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\mattn\AppData\Local\go-build
set GOENV=C:\Users\mattn\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\mattn\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\mattn\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\dev\go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\dev\go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=devel go1.18-e9e0d1ef70 Fri Aug 20 03:25:36 2021 +0000
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=C:\Users\mattn\go\src\github.com\mattn\go-iseven\go.mod
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\mattn\AppData\Local\Temp\go-build1034691121=/tmp/go-build -gno-record-gcc-switches
What did you do?
$ git clone https://github.com/mattn/go-iseven
$ cd go-iseven
$ go build
What did you expect to see?
Compilation successfully.
What did you see instead?
Compilation take too long times. I couldn't build this for few minutes. I'm using Windows 10. 16GB RAM.
This is a joke project that provide same function with https://github.com/samuelmarina/is-even. The code is generated from js code. The compilation require too many CPU usage and memory.
The text was updated successfully, but these errors were encountered:
ALTree
changed the title
Can not compile large function
cmd/compile: can not compile large function
Aug 21, 2021
Well, it's a function with a 100MB body... Not sure how much time it would be reasonable to wait for it to be compiled, but I'm not surprised it takes more than a few minutes.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
Compilation successfully.
What did you see instead?
Compilation take too long times. I couldn't build this for few minutes. I'm using Windows 10. 16GB RAM.
This is a joke project that provide same function with https://github.com/samuelmarina/is-even. The code is generated from js code. The compilation require too many CPU usage and memory.
The text was updated successfully, but these errors were encountered: