Skip to content

cmd/compile: ccxt oom killed on compilation #73365

@carlosmiei

Description

@carlosmiei

Go version

go version 1.24.0 darwin/arm64 / go version go1.23.7 linux/amd64 / etc

Output of go env in your module/workspace:

go env
AR='ar'
CC='cc'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='c++'
GCCGO='gccgo'
GO111MODULE='auto'
GOARCH='arm64'
GOARM64='v8.0'
GOAUTH='netrc'
GOBIN='/Users/cjg/go/bin'
GOCACHE='/Users/cjg/Library/Caches/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/Users/cjg/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/9z/bllf1k3s08q344pgrjkfybd80000gn/T/go-build340361704=/tmp/go-build -gno-record-gcc-switches -fno-common'
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMOD=''
GOMODCACHE='/Users/cjg/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/cjg/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/opt/homebrew/opt/go/libexec'
GOSUMDB='sum.golang.org'
GOTELEMETRY='local'
GOTELEMETRYDIR='/Users/cjg/Library/Application Support/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/opt/homebrew/opt/go/libexec/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.24.1'
GOWORK=''
PKG_CONFIG='pkg-config'

What did you do?

CCXT is a crypto trading SDK that supports more than 100+ exchanges making it a pretty big package (hundreds of files and millions of loc).

We have recently released a GO version of the package, but the reports of users not able to compile it due to an OOM error are stacking up.

We have tried different go versions (1.22/23/24) and OSes but the problem pops up in all of them apparently.

Related issues:

What did you see happen?

The build hangs indefinitely, or the process gets OOM-killed.

What did you expect to see?

The build succeeded in a timely manner

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugReportIssues describing a possible bug in the Go implementation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.ToolSpeedcompiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions