Skip to content
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

cmd/compile: writing output: write $WORK/b216/_pkg_.a: file too large #52195

Closed
TerminalFi opened this issue Apr 7, 2022 · 5 comments
Closed
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.

Comments

@TerminalFi
Copy link

TerminalFi commented Apr 7, 2022

What version of Go are you using (go version)?

> go version
go version go1.18 darwin/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

GOENV="/Users/zacharyschulze/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/zacharyschulze/.go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/zacharyschulze/.go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/opt/go/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/opt/go/libexec/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.18"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/zacharyschulze/.projects/formulate/auth/go.mod"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/l9/1zycp06j2dz031y3fscvs1mm0000gn/T/go-build2294249676=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

> FORMULATE_CONFIG=config/development.yaml go run main.go serve
# golang.org/x/net/trace
compile: writing output: write $WORK/b216/_pkg_.a: file too large
# github.com/magiconair/properties
compile: writing output: write $WORK/b052/_pkg_.a: file too large
# google.golang.org/protobuf/reflect/protoreflect
compile: writing output: write $WORK/b171/_pkg_.a: file too large
# github.com/klauspost/compress/huff0
compile: writing output: write $WORK/b311/_pkg_.a: file too large
# gopkg.in/ini.v1
compile: writing output: write $WORK/b168/_pkg_.a: file too large
# golang.org/x/sys/unix
compile: writing output: write $WORK/b048/_pkg_.a: file too large
# go.mongodb.org/mongo-driver/x/bsonx/bsoncore
compile: writing output: write $WORK/b289/_pkg_.a: file too large
# github.com/spf13/cobra
compile: writing output: write $WORK/b347/_pkg_.a: file too large
# github.com/spf13/afero
compile: writing output: write $WORK/b138/_pkg_.a: file too large
# golang.org/x/net/http2
compile: writing output: write $WORK/b260/_pkg_.a: file too large
# github.com/xdg-go/stringprep
compile: writing output: write $WORK/b328/_pkg_.a: file too large
> go build -o bin/auth .
# google.golang.org/protobuf/reflect/protoreflect
compile: writing output: write $WORK/b171/_pkg_.a: file too large
# github.com/klauspost/compress/huff0
compile: writing output: write $WORK/b311/_pkg_.a: file too large
# github.com/magiconair/properties
compile: writing output: write $WORK/b052/_pkg_.a: file too large
# golang.org/x/net/trace
compile: writing output: write $WORK/b216/_pkg_.a: file too large
# github.com/spf13/cobra
compile: writing output: write $WORK/b347/_pkg_.a: file too large
# gopkg.in/ini.v1
compile: writing output: write $WORK/b168/_pkg_.a: file too large
# golang.org/x/sys/unix
compile: writing output: write $WORK/b048/_pkg_.a: file too large
# go.mongodb.org/mongo-driver/x/bsonx/bsoncore
compile: writing output: write $WORK/b289/_pkg_.a: file too large
# github.com/spf13/afero
compile: writing output: write $WORK/b138/_pkg_.a: file too large
# golang.org/x/net/http2
compile: writing output: write $WORK/b260/_pkg_.a: file too large
# github.com/xdg-go/stringprep
compile: writing output: write $WORK/b328/_pkg_.a: file too large

What did you expect to see?

Program to run

What did you see instead?

File to large errors

@mengzhuo mengzhuo added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Apr 7, 2022
@mengzhuo mengzhuo changed the title go build / go run: compile: writing output: write $WORK/b216/_pkg_.a: file too large cmd/compile: writing output: write $WORK/b216/_pkg_.a: file too large Apr 7, 2022
@mengzhuo
Copy link
Contributor

mengzhuo commented Apr 7, 2022

Could you complete "What did you do" with command line you run?

@TerminalFi
Copy link
Author

Done

@mengzhuo mengzhuo added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. and removed WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Apr 7, 2022
@mengzhuo
Copy link
Contributor

mengzhuo commented Apr 7, 2022

Could you provide output of "ulimit -a"? I think you might set up file size limit accidentally.

@TerminalFi
Copy link
Author

FWIW, this only began after upgrading to 1.18

@TerminalFi
Copy link
Author

Could you provide output of "ulimit -a"? I think you might set up file size limit accidentally.

> ulimit -a
-t: cpu time (seconds)              unlimited
-f: file size (blocks)              1000
-d: data seg size (kbytes)          unlimited
-s: stack size (kbytes)             8192
-c: core file size (blocks)         0
-v: address space (kbytes)          unlimited
-l: locked-in-memory size (kbytes)  unlimited
-u: processes                       5568
-n: file descriptors                256

Looks like it!

@golang golang locked and limited conversation to collaborators Apr 7, 2023
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.
Projects
None yet
Development

No branches or pull requests

3 participants