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: Can't compile Go toolchain with GOAMD64=v3 or higher #49062

Closed
zchee opened this issue Oct 19, 2021 · 2 comments
Closed

cmd/compile: Can't compile Go toolchain with GOAMD64=v3 or higher #49062

zchee opened this issue Oct 19, 2021 · 2 comments

Comments

@zchee
Copy link
Contributor

@zchee zchee commented Oct 19, 2021

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

$ go version
go version devel go1.18-c091767d87 Mon Oct 18 15:54:41 2021 +0000 X:staticlockranking,unified darwin/amd64

Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/zchee/.cache/go/go-build"
GOENV="/Users/zchee/.config/go/env"
GOEXE=""
GOEXPERIMENT="staticlockranking,unified"
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/zchee/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/zchee/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="devel go1.18-c091767d87 Mon Oct 18 15:54:41 2021 +0000"
GCCGO="gccgo"
GOAMD64="v4"
AR="ar"
CC="/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
CXX="/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++"
CGO_ENABLED="1"
GOMOD="/usr/local/go/src/go.mod"
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/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-build3762188362=/tmp/go-build -gno-record-gcc-switches -fno-common"
GOROOT/bin/go version: go version devel go1.18-c091767d87 Mon Oct 18 15:54:41 2021 +0000 darwin/amd64
GOROOT/bin/go tool compile -V: compile version devel go1.18-c091767d87 Mon Oct 18 15:54:41 2021 +0000
uname -v: Darwin Kernel Version 20.6.0: Thu Sep 16 20:56:02 PDT 2021; root:xnu-7195.141.7~1/RELEASE_X86_64
ProductName:	macOS
ProductVersion:	11.6.1
BuildVersion:	20G214
lldb --version: lldb version 14.0.0 (https://github.com/llvm/llvm-project revision a3d0b5805e5ff2fd870df5be5c3197eee0bb74a0)
  clang revision a3d0b5805e5ff2fd870df5be5c3197eee0bb74a0
  llvm revision a3d0b5805e5ff2fd870df5be5c3197eee0bb74a0
gdb --version: GNU gdb (GDB) 11.1

What did you do?

Can't compile go toolchain at least after 3e5cc4d with GOAMD64=v3 or higher ( v3 and v4).

What did you expect to see?

Passes compile Go toolchain.

What did you see instead?

Occurred internal compiler error: 18446744069414584320 out of range for int64 error.
In the case of GOAMD64=v1 or GOAMD64=v2, can compile. The above log is GOAMD64=v3, but I confirmed also GOAMD64=v4.

google/cpu_features output for ensure CPU feature sets.

$ list_cpu_features
arch            : x86
brand           : Intel(R) Xeon(R) W-2150B CPU @ 3.00GHz
family          :   6 (0x06)
model           :  85 (0x55)
stepping        :   4 (0x04)
uarch           : INTEL_SKL
flags           : adx,aes,avx,avx2,avx512_second_fma,avx512bw,avx512cd,avx512dq,avx512f,avx512vl,bmi1,bmi2,clflushopt,clfsh,clwb,cx16,cx8,dca,erms,f16c,fma3,fpu,hle,mmx,movbe,pclmulqdq,popcnt,rdrnd,rdseed,rtm,smx,ss,sse,sse2,sse3,sse4_1,sse4_2,ssse3,tsc
cache_info      : {"level":1,"cache_type":"data","cache_size":32768,"ways":8,"line_size":64,"tlb_entries":64,"partitioning":1},{"level":1,"cache_type":"instruction","cache_size":32768,"ways":8,"line_size":64,"tlb_entries":64,"partitioning":1},{"level":2,"cache_type":"unified","cache_size":1048576,"ways":16,"line_size":64,"tlb_entries":1024,"partitioning":1},{"level":3,"cache_type":"unified","cache_size":14417920,"ways":11,"line_size":64,"tlb_entries":20480,"partitioning":1}

logs:

$ git rev-parse --revs-only HEAD
3e5cc4d6f6befb284d7b2a5142a8b576bf5970ea
$ GOROOT_BOOTSTRAP=~/sdk/go1.17.2 GOAMD64=v3 ./make.bash
Building Go cmd/dist using /Users/zchee/sdk/go1.17.2. (go1.17.2 darwin/amd64)
Building Go toolchain1 using /Users/zchee/sdk/go1.17.2.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
Building Go toolchain2 using go_bootstrap and Go toolchain1.
Building Go toolchain3 using go_bootstrap and Go toolchain2.
# math/big
/usr/local/go/src/math/big/float.go:815:10: cannot use math.MaxInt64 (untyped int constant 18446744069414584320) as int64 value in return statement (overflows)
/usr/local/go/src/math/big/float.go:824:10: cannot use math.MaxInt64 (untyped int constant 18446744069414584320) as int64 value in return statement (overflows)
# internal/xcoff
<autogenerated>:1: internal compiler error: 18446744069414584320 out of range for int64

goroutine 12 [running]:
runtime/debug.Stack()
	/usr/local/go/src/runtime/debug/stack.go:24 +0x65
cmd/compile/internal/base.FatalfAt({0x1a3ac10, 0x0}, {0x18ea817, 0x16}, {0xc0005c6668, 0x2, 0x2})
	/usr/local/go/src/cmd/compile/internal/base/print.go:227 +0x1ca
cmd/compile/internal/base.Fatalf(...)
	/usr/local/go/src/cmd/compile/internal/base/print.go:196
cmd/compile/internal/ir.IntVal(0xc0003fe000, {0x1a3ac10, 0xc000a29860})
	/usr/local/go/src/cmd/compile/internal/ir/val.go:55 +0xf1
cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc000791400, {0x1a3c7f8, 0xc000a51e00}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2590 +0xd90
cmd/compile/internal/ssagen.(*state).expr(...)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528
cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc000791400, {0x1a3c8c0, 0xc000a57320}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2862 +0x114b
cmd/compile/internal/ssagen.(*state).expr(...)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528
cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc000791400, {0x1a3c8c0, 0xc000a572c0}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2736 +0x2ba5
cmd/compile/internal/ssagen.(*state).expr(...)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528
cmd/compile/internal/ssagen.(*state).condBranch(0xc000791400, {0x1a3c8c0, 0xc000a572c0}, 0xc000b04698, 0xc000b047c8, 0x0)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:3452 +0x37b
cmd/compile/internal/ssagen.(*state).stmt(0xc000791400, {0x1a3d798, 0xc000a582a0})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:1674 +0x2d49
cmd/compile/internal/ssagen.(*state).stmtList(0xc000791400, {0xc0008c3000, 0x8e, 0x1a372e0})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:1374 +0x5d
cmd/compile/internal/ssagen.buildssa(0xc00044a580, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:567 +0x1d13
cmd/compile/internal/ssagen.Compile(0xc00044a580, 0xc0004cb790)
	/usr/local/go/src/cmd/compile/internal/ssagen/pgen.go:183 +0x4c
cmd/compile/internal/gc.compileFunctions.func4.1(0x0)
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:153 +0x3a
cmd/compile/internal/gc.compileFunctions.func3.1()
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:140 +0x4d
created by cmd/compile/internal/gc.compileFunctions.func3
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:138 +0x78

# debug/pe
<autogenerated>:1: internal compiler error: 18446744069414584320 out of range for int64

goroutine 6 [running]:
runtime/debug.Stack()
	/usr/local/go/src/runtime/debug/stack.go:24 +0x65
cmd/compile/internal/base.FatalfAt({0x1a3ac10, 0x0}, {0x18ea817, 0x16}, {0xc000946668, 0x2, 0x2})
	/usr/local/go/src/cmd/compile/internal/base/print.go:227 +0x1ca
cmd/compile/internal/base.Fatalf(...)
	/usr/local/go/src/cmd/compile/internal/base/print.go:196
cmd/compile/internal/ir.IntVal(0xc00046a000, {0x1a3ac10, 0xc000bb2ca0})
	/usr/local/go/src/cmd/compile/internal/ir/val.go:55 +0xf1
cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc0006d8a00, {0x1a3c7f8, 0xc000bbb4a0}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2590 +0xd90
cmd/compile/internal/ssagen.(*state).expr(...)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528
cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc0006d8a00, {0x1a3c8c0, 0xc000bc23c0}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2862 +0x114b
cmd/compile/internal/ssagen.(*state).expr(...)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528
cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc0006d8a00, {0x1a3c8c0, 0xc000bc2360}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2736 +0x2ba5
cmd/compile/internal/ssagen.(*state).expr(...)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528
cmd/compile/internal/ssagen.(*state).condBranch(0xc0006d8a00, {0x1a3c8c0, 0xc000bc2360}, 0xc000d1f6a8, 0xc000d1f7d8, 0x0)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:3452 +0x37b
cmd/compile/internal/ssagen.(*state).stmt(0xc0006d8a00, {0x1a3d798, 0xc000b9d810})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:1674 +0x2d49
cmd/compile/internal/ssagen.(*state).stmtList(0xc0006d8a00, {0xc000d82000, 0x74, 0x1a372e0})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:1374 +0x5d
cmd/compile/internal/ssagen.buildssa(0xc000a978c0, 0x3)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:567 +0x1d13
cmd/compile/internal/ssagen.Compile(0xc000a978c0, 0xc0004cff90)
	/usr/local/go/src/cmd/compile/internal/ssagen/pgen.go:183 +0x4c
cmd/compile/internal/gc.compileFunctions.func4.1(0x0)
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:153 +0x3a
cmd/compile/internal/gc.compileFunctions.func3.1()
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:140 +0x4d
created by cmd/compile/internal/gc.compileFunctions.func3
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:138 +0x78

# debug/macho
<autogenerated>:1: internal compiler error: 18446744069414584320 out of range for int64

<autogenerated>:1: internal compiler error: 18446744069414584320 out of range for int64

goroutine 84 [running]:
runtime/debug.Stack()
	/usr/local/go/src/runtime/debug/stack.go:24 +0x65
cmd/compile/internal/base.FatalfAt({0x1a3ac10, 0x0}, {0x18ea817, 0x16}, {0xc000d1c668, 0x2, 0x2})
	/usr/local/go/src/cmd/compile/internal/base/print.go:227 +0x1ca
cmd/compile/internal/base.Fatalf(...)
	/usr/local/go/src/cmd/compile/internal/base/print.go:196
cmd/compile/internal/ir.IntVal(0xc0001f6000, {0x1a3ac10, 0xc000b15940})
	/usr/local/go/src/cmd/compile/internal/ir/val.go:55 +0xf1
cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc000195f00, {0x1a3c7f8, 0xc000b5c0a0}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2590 +0xd90
cmd/compile/internal/ssagen.(*state).expr(...)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528
cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc000195f00, {0x1a3c8c0, 0xc000b57b00}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2862 +0x114b
cmd/compile/internal/ssagen.(*state).expr(...)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528
cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc000195f00, {0x1a3c8c0, 0xc000b57aa0}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2736 +0x2ba5
cmd/compile/internal/ssagen.(*state).expr(...)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528
cmd/compile/internal/ssagen.(*state).condBranch(0xc000195f00, {0x1a3c8c0, 0xc000b57aa0}, 0xc000c04698, 0xc000c047c8, 0x0)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:3452 +0x37b
cmd/compile/internal/ssagen.(*state).stmt(0xc000195f00, {0x1a3d798, 0xc000b457a0})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:1674 +0x2d49
cmd/compile/internal/ssagen.(*state).stmtList(0xc000195f00, {0xc0005b6d00, 0xf, 0x1a372e0})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:1374 +0x5d
cmd/compile/internal/ssagen.buildssa(0xc00046e160, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:567 +0x1d13
cmd/compile/internal/ssagen.Compile(0xc00046e160, 0xc000082790)
	/usr/local/go/src/cmd/compile/internal/ssagen/pgen.go:183 +0x4c
cmd/compile/internal/gc.compileFunctions.func4.1(0x0)
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:153 +0x3a
cmd/compile/internal/gc.compileFunctions.func3.1()
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:140 +0x4d
created by cmd/compile/internal/gc.compileFunctions.func3
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:138 +0x78

# debug/elf
<autogenerated>:1: internal compiler error: 18446744069414584320 out of range for int64

goroutine 75 [running]:
runtime/debug.Stack()
	/usr/local/go/src/runtime/debug/stack.go:24 +0x65
cmd/compile/internal/base.FatalfAt({0x1a3ac10, 0x0}, {0x18ea817, 0x16}, {0xc0000e6360, 0x2, 0x2})
	/usr/local/go/src/cmd/compile/internal/base/print.go:227 +0x1ca
cmd/compile/internal/base.Fatalf(...)
	/usr/local/go/src/cmd/compile/internal/base/print.go:196
cmd/compile/internal/ir.IntVal(0xc0001f4000, {0x1a3ac10, 0xc00134d520})
	/usr/local/go/src/cmd/compile/internal/ir/val.go:55 +0xf1
cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc00072a500, {0x1a3c7f8, 0xc00137eff0}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2590 +0xd90
cmd/compile/internal/ssagen.(*state).expr(...)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528
cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc00072a500, {0x1a3c8c0, 0xc001356fc0}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2862 +0x114b
cmd/compile/internal/ssagen.(*state).expr(...)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528
cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc00072a500, {0x1a3c8c0, 0xc001356f60}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2736 +0x2ba5
cmd/compile/internal/ssagen.(*state).expr(...)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528
cmd/compile/internal/ssagen.(*state).condBranch(0xc00072a500, {0x1a3c8c0, 0xc001356f60}, 0xc0014048f8, 0xc001404a28, 0x0)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:3452 +0x37b
cmd/compile/internal/ssagen.(*state).stmt(0xc00072a500, {0x1a3d798, 0xc001360b60})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:1674 +0x2d49
cmd/compile/internal/ssagen.(*state).stmtList(0xc00072a500, {0xc000524300, 0xf, 0xc001404698})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:1374 +0x5d
cmd/compile/internal/ssagen.(*state).stmt(0xc00072a500, {0x1a3d798, 0xc000d9d260})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:1678 +0x2d95
cmd/compile/internal/ssagen.(*state).stmtList(0xc00072a500, {0xc000524400, 0x9, 0x1a372e0})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:1374 +0x5d
cmd/compile/internal/ssagen.buildssa(0xc00118dce0, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:567 +0x1d13
cmd/compile/internal/ssagen.Compile(0xc00118dce0, 0xc0005b4790)
	/usr/local/go/src/cmd/compile/internal/ssagen/pgen.go:183 +0x4c
cmd/compile/internal/gc.compileFunctions.func4.1(0xc001180000)
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:153 +0x3a
cmd/compile/internal/gc.compileFunctions.func3.1()
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:140 +0x4d
created by cmd/compile/internal/gc.compileFunctions.func3
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:138 +0x78

# cmd/internal/obj/arm64
/usr/local/go/src/cmd/internal/obj/arm64/list7.go:60:47: cannot use obj.RegListARM64Hi (untyped int constant 18446744069414584320) as int64 value in argument to obj.RegisterRegisterList (overflows)
# cmd/internal/obj/x86
/usr/local/go/src/cmd/internal/obj/x86/list6.go:245:45: cannot use obj.RegListX86Hi (untyped int constant 18446744069414584320) as int64 value in argument to obj.RegisterRegisterList (overflows)
go tool dist: FAILED: /usr/local/go/pkg/tool/darwin_amd64/go_bootstrap install -gcflags=all= -ldflags=all= -a -i cmd/asm cmd/cgo cmd/compile cmd/link: exit status 2

Use gotip:

$ gotip version
go version devel go1.18-ee92daae25 Tue Oct 19 07:45:46 2021 +0000 darwin/amd64
$ GOROOT_BOOTSTRAP=~/sdk/gotip GOAMD64=v3 ./make.bash
Building Go cmd/dist using /Users/zchee/sdk/gotip. (devel go1.18-ee92daae25 Tue Oct 19 07:45:46 2021 +0000 darwin/amd64)
Building Go toolchain1 using /Users/zchee/sdk/gotip.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
<autogenerated>:1: internal compiler error: 18446744069414584320 out of range for int64

goroutine 1 [running]:
runtime/debug.Stack()
	/usr/local/go/src/runtime/debug/stack.go:24 +0x65
bootstrap/cmd/compile/internal/base.FatalfAt({0x30, 0x0}, {0x16d091a, 0x16}, {0xc00160e668, 0x2, 0x2})
	/usr/local/go/src/cmd/compile/internal/base/print.go:227 +0x158
bootstrap/cmd/compile/internal/base.Fatalf({0x16d091a, 0xc000c76a20}, {0xc00160e668, 0xc00160e688, 0x11b3b88})
	/usr/local/go/src/cmd/compile/internal/base/print.go:196 +0x45
bootstrap/cmd/compile/internal/ir.IntVal(0xc000468000, {0x1767570, 0xc000c76a20})
	/usr/local/go/src/cmd/compile/internal/ir/val.go:55 +0xd0
bootstrap/cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc0001f5000, {0x17690f8, 0xc0000ee960}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2590 +0xafc
bootstrap/cmd/compile/internal/ssagen.(*state).expr(0xc0001f5000, {0x17690f8, 0xc0000ee960})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528 +0x28
bootstrap/cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc0001f5000, {0x17691c0, 0xc0000f4360}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2862 +0xda6
bootstrap/cmd/compile/internal/ssagen.(*state).expr(0xc0001f5000, {0x17691c0, 0xc0000f4360})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528 +0x28
bootstrap/cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc0001f5000, {0x17691c0, 0xc0000f4300}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2736 +0x2330
bootstrap/cmd/compile/internal/ssagen.(*state).expr(0xc00160f640, {0x17691c0, 0xc0000f4300})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528 +0x28
bootstrap/cmd/compile/internal/ssagen.(*state).condBranch(0xc0001f5000, {0x17691c0, 0xc0000f4300}, 0xc000902990, 0x0, 0x0)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:3452 +0x313
bootstrap/cmd/compile/internal/ssagen.(*state).stmt(0xc0001f5000, {0x176a098, 0xc000d128c0})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:1674 +0x1aaa
bootstrap/cmd/compile/internal/ssagen.(*state).stmtList(0xc0001f5000, {0xc001103000, 0x59, 0x1763b60})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:1374 +0x5d
bootstrap/cmd/compile/internal/ssagen.buildssa(0xc000bc5600, 0x0)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:567 +0x17f9
bootstrap/cmd/compile/internal/ssagen.Compile(0xc000bc5600, 0xc0014287e0)
	/usr/local/go/src/cmd/compile/internal/ssagen/pgen.go:183 +0x4c
bootstrap/cmd/compile/internal/gc.compileFunctions.func4.1(0x1)
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:153 +0x3a
bootstrap/cmd/compile/internal/gc.compileFunctions.func2(0x0)
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:125 +0x1e
bootstrap/cmd/compile/internal/gc.compileFunctions.func4({0xc001414000, 0xa7, 0x100})
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:152 +0x53
bootstrap/cmd/compile/internal/gc.compileFunctions()
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:163 +0x162
bootstrap/cmd/compile/internal/gc.Main(0x16f2d80)
	/usr/local/go/src/cmd/compile/internal/gc/main.go:314 +0xcea
main.main()
	/usr/local/go/src/cmd/compile/main.go:55 +0xcf


go tool dist: FAILED: /usr/local/go/pkg/tool/darwin_amd64/compile -std -pack -o /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-2641666987/archive/zip/_go_.a -p archive/zip -importcfg /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-2641666987/archive/zip/importcfg /usr/local/go/src/archive/zip/reader.go /usr/local/go/src/archive/zip/register.go /usr/local/go/src/archive/zip/struct.go /usr/local/go/src/archive/zip/writer.go: exit status 2
go tool dist: open /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-2641666987/debug/dwarf/_go_.a: no such file or directory
go tool dist: open /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-2641666987/internal/goroot/_go_.a: no such file or directory
go tool dist: open /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-2641666987/archive/zip/_go_.a: no such file or directory
go tool dist: open /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-2641666987/cmd/internal/test2json/_go_.a: no such file or directory
go tool dist: open /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-2641666987/cmd/go/internal/trace/_go_.a: no such file or directory
go tool dist: open /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-2641666987/cmd/go/internal/fsys/_go_.a: no such file or directory
go tool dist: open /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-2641666987/cmd/vendor/golang.org/x/mod/module/_go_.a: no such file or directory
go tool dist: open /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-2641666987/cmd/internal/pkgpath/_go_.a: no such file or directory
go tool dist: open /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-2641666987/text/template/_go_.a: no such file or directory
go tool dist: open /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-2641666987/go/scanner/_go_.a: no such file or directory
go tool dist: open /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-2641666987/runtime/debug/debug.o: no such file or directory

Current HEAD is same error:

$ git rev-parse --revs-only HEAD
1e49210ccd8fa40273d0d32e5ae898a4bee69a6e
$ GOROOT_BOOTSTRAP=~/sdk/go1.17.2 GOAMD64=v3 ./make.bash
Building Go cmd/dist using /Users/zchee/sdk/go1.17.2. (go1.17.2 darwin/amd64)
Building Go toolchain1 using /Users/zchee/sdk/go1.17.2.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
Building Go toolchain2 using go_bootstrap and Go toolchain1.
Building Go toolchain3 using go_bootstrap and Go toolchain2.
# math/big
/usr/local/go/src/math/big/float.go:815:10: cannot use math.MaxInt64 (untyped int constant 18446744069414584320) as int64 value in return statement (overflows)
/usr/local/go/src/math/big/float.go:824:10: cannot use math.MaxInt64 (untyped int constant 18446744069414584320) as int64 value in return statement (overflows)
# internal/xcoff
<autogenerated>:1: internal compiler error: 18446744069414584320 out of range for int64

goroutine 6 [running]:
runtime/debug.Stack()
	/usr/local/go/src/runtime/debug/stack.go:24 +0x65
cmd/compile/internal/base.FatalfAt({0x1a3b210, 0x0}, {0x18eac22, 0x16}, {0xc00044c668, 0x2, 0x2})
	/usr/local/go/src/cmd/compile/internal/base/print.go:227 +0x1ca
cmd/compile/internal/base.Fatalf(...)
	/usr/local/go/src/cmd/compile/internal/base/print.go:196
cmd/compile/internal/ir.IntVal(0xc000468000, {0x1a3b210, 0xc000a4f8e0})
	/usr/local/go/src/cmd/compile/internal/ir/val.go:55 +0xf1
cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc0004f2800, {0x1a3cdf8, 0xc000a79e00}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2590 +0xd90
cmd/compile/internal/ssagen.(*state).expr(...)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528
cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc0004f2800, {0x1a3cec0, 0xc000a7f320}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2862 +0x114b
cmd/compile/internal/ssagen.(*state).expr(...)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528
cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc0004f2800, {0x1a3cec0, 0xc000a7f2c0}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2736 +0x2ba5
cmd/compile/internal/ssagen.(*state).expr(...)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528
cmd/compile/internal/ssagen.(*state).condBranch(0xc0004f2800, {0x1a3cec0, 0xc000a7f2c0}, 0xc000b9f6a8, 0xc000b9f7d8, 0x0)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:3452 +0x37b
cmd/compile/internal/ssagen.(*state).stmt(0xc0004f2800, {0x1a3dd98, 0xc000bb82a0})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:1674 +0x2d49
cmd/compile/internal/ssagen.(*state).stmtList(0xc0004f2800, {0xc0000f3000, 0x8e, 0x1a378e0})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:1374 +0x5d
cmd/compile/internal/ssagen.buildssa(0xc0000e02c0, 0x3)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:567 +0x1d13
cmd/compile/internal/ssagen.Compile(0xc0000e02c0, 0xc000082790)
	/usr/local/go/src/cmd/compile/internal/ssagen/pgen.go:183 +0x4c
cmd/compile/internal/gc.compileFunctions.func4.1(0x0)
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:153 +0x3a
cmd/compile/internal/gc.compileFunctions.func3.1()
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:140 +0x4d
created by cmd/compile/internal/gc.compileFunctions.func3
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:138 +0x78

# debug/macho
<autogenerated>:1: internal compiler error: 18446744069414584320 out of range for int64

goroutine 81 [running]:
runtime/debug.Stack()
	/usr/local/go/src/runtime/debug/stack.go:24 +0x65
cmd/compile/internal/base.FatalfAt({0x1a3b210, 0x0}, {0x18eac22, 0x16}, {0xc000bba668, 0x2, 0x2})
	/usr/local/go/src/cmd/compile/internal/base/print.go:227 +0x1ca
cmd/compile/internal/base.Fatalf(...)
	/usr/local/go/src/cmd/compile/internal/base/print.go:196
cmd/compile/internal/ir.IntVal(0xc00046a000, {0x1a3b210, 0xc0009ed940})
	/usr/local/go/src/cmd/compile/internal/ir/val.go:55 +0xf1
cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc00057aa00, {0x1a3cdf8, 0xc000a1a9b0}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2590 +0xd90
cmd/compile/internal/ssagen.(*state).expr(...)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528
cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc00057aa00, {0x1a3cec0, 0xc000a133e0}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2862 +0x114b
cmd/compile/internal/ssagen.(*state).expr(...)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528
cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc00057aa00, {0x1a3cec0, 0xc000a13380}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2736 +0x2ba5
cmd/compile/internal/ssagen.(*state).expr(...)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528
cmd/compile/internal/ssagen.(*state).condBranch(0xc00057aa00, {0x1a3cec0, 0xc000a13380}, 0xc000b52100, 0xc000b52230, 0x0)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:3452 +0x37b
cmd/compile/internal/ssagen.(*state).stmt(0xc00057aa00, {0x1a3dd98, 0xc000a07f80})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:1674 +0x2d49
cmd/compile/internal/ssagen.(*state).stmtList(0xc00057aa00, {0xc00054d600, 0x11, 0x1a378e0})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:1374 +0x5d
cmd/compile/internal/ssagen.buildssa(0xc0001389a0, 0x2)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:567 +0x1d13
cmd/compile/internal/ssagen.Compile(0xc0001389a0, 0xc000081790)
	/usr/local/go/src/cmd/compile/internal/ssagen/pgen.go:183 +0x4c
cmd/compile/internal/gc.compileFunctions.func4.1(0x0)
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:153 +0x3a
cmd/compile/internal/gc.compileFunctions.func3.1()
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:140 +0x4d
created by cmd/compile/internal/gc.compileFunctions.func3
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:138 +0x78

# debug/pe
<autogenerated>:1: internal compiler error: 18446744069414584320 out of range for int64

goroutine 42 [running]:
runtime/debug.Stack()
	/usr/local/go/src/runtime/debug/stack.go:24 +0x65
cmd/compile/internal/base.FatalfAt({0x1a3b210, 0x0}, {0x18eac22, 0x16}, {0xc000c66668, 0x2, 0x2})
	/usr/local/go/src/cmd/compile/internal/base/print.go:227 +0x1ca
cmd/compile/internal/base.Fatalf(...)
	/usr/local/go/src/cmd/compile/internal/base/print.go:196
cmd/compile/internal/ir.IntVal(0xc0001fa000, {0x1a3b210, 0xc0007487e0})
	/usr/local/go/src/cmd/compile/internal/ir/val.go:55 +0xf1
cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc000ba5e00, {0x1a3cdf8, 0xc00074d450}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2590 +0xd90
cmd/compile/internal/ssagen.(*state).expr(...)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528
cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc000ba5e00, {0x1a3cec0, 0xc000751140}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2862 +0x114b
cmd/compile/internal/ssagen.(*state).expr(...)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528
cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc000ba5e00, {0x1a3cec0, 0xc0007510e0}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2736 +0x2ba5
cmd/compile/internal/ssagen.(*state).expr(...)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528
cmd/compile/internal/ssagen.(*state).condBranch(0xc000ba5e00, {0x1a3cec0, 0xc0007510e0}, 0xc000b1f6a8, 0xc000b1f7d8, 0x0)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:3452 +0x37b
cmd/compile/internal/ssagen.(*state).stmt(0xc000ba5e00, {0x1a3dd98, 0xc00071b490})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:1674 +0x2d49
cmd/compile/internal/ssagen.(*state).stmtList(0xc000ba5e00, {0xc000911000, 0x74, 0x1a378e0})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:1374 +0x5d
cmd/compile/internal/ssagen.buildssa(0xc00059c2c0, 0x3)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:567 +0x1d13
cmd/compile/internal/ssagen.Compile(0xc00059c2c0, 0xc000087790)
	/usr/local/go/src/cmd/compile/internal/ssagen/pgen.go:183 +0x4c
cmd/compile/internal/gc.compileFunctions.func4.1(0x0)
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:153 +0x3a
cmd/compile/internal/gc.compileFunctions.func3.1()
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:140 +0x4d
created by cmd/compile/internal/gc.compileFunctions.func3
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:138 +0x78

# debug/elf
<autogenerated>:1: internal compiler error: 18446744070811833439 out of range for int64

goroutine 10 [running]:
runtime/debug.Stack()
	/usr/local/go/src/runtime/debug/stack.go:24 +0x65
cmd/compile/internal/base.FatalfAt({0x1a3b210, 0x0}, {0x18eac22, 0x16}, {0xc000be4668, 0x2, 0x2})
	/usr/local/go/src/cmd/compile/internal/base/print.go:227 +0x1ca
cmd/compile/internal/base.Fatalf(...)
	/usr/local/go/src/cmd/compile/internal/base/print.go:196
cmd/compile/internal/ir.IntVal(0xc0001fa000, {0x1a3b210, 0xc00114aea0})
	/usr/local/go/src/cmd/compile/internal/ir/val.go:55 +0xf1
cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc00117c400, {0x1a3cdf8, 0xc00096d040}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2590 +0xd90
cmd/compile/internal/ssagen.(*state).expr(...)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528
cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc00117c400, {0x1a3cec0, 0xc0004a62a0}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2862 +0x114b
cmd/compile/internal/ssagen.(*state).expr(...)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528
cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc00117c400, {0x1a3cec0, 0xc0004a6240}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2736 +0x2ba5
cmd/compile/internal/ssagen.(*state).expr(...)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528
cmd/compile/internal/ssagen.(*state).condBranch(0xc00117c400, {0x1a3cec0, 0xc0004a6240}, 0xc001251ea0, 0xc001251fd0, 0x0)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:3452 +0x37b
cmd/compile/internal/ssagen.(*state).stmt(0xc00117c400, {0x1a3dd98, 0xc00042e8c0})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:1674 +0x2d49
cmd/compile/internal/ssagen.(*state).stmtList(0xc00117c400, {0xc000e37000, 0x52, 0x1a378e0})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:1374 +0x5d
cmd/compile/internal/ssagen.buildssa(0xc000aff4a0, 0x2)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:567 +0x1d13
cmd/compile/internal/ssagen.Compile(0xc000aff4a0, 0xc000505790)
	/usr/local/go/src/cmd/compile/internal/ssagen/pgen.go:183 +0x4c
cmd/compile/internal/gc.compileFunctions.func4.1(0x0)
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:153 +0x3a
cmd/compile/internal/gc.compileFunctions.func3.1()
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:140 +0x4d
created by cmd/compile/internal/gc.compileFunctions.func3
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:138 +0x78

# cmd/internal/obj/arm64
/usr/local/go/src/cmd/internal/obj/arm64/list7.go:60:47: cannot use obj.RegListARM64Hi (untyped int constant 18446744069414584320) as int64 value in argument to obj.RegisterRegisterList (overflows)
# cmd/internal/obj/x86
/usr/local/go/src/cmd/internal/obj/x86/list6.go:245:45: cannot use obj.RegListX86Hi (untyped int constant 18446744069414584320) as int64 value in argument to obj.RegisterRegisterList (overflows)
go tool dist: FAILED: /usr/local/go/pkg/tool/darwin_amd64/go_bootstrap install -gcflags=all= -ldflags=all= -a -i cmd/asm cmd/cgo cmd/compile cmd/link: exit status 2

Use gotip:

$ gotip version
go version devel go1.18-ee92daae25 Tue Oct 19 07:45:46 2021 +0000 darwin/amd64
$ GOROOT_BOOTSTRAP=~/sdk/gotip GOAMD64=v3 ./make.bash
Building Go cmd/dist using /Users/zchee/sdk/gotip. (devel go1.18-ee92daae25 Tue Oct 19 07:45:46 2021 +0000 darwin/amd64)
Building Go toolchain1 using /Users/zchee/sdk/gotip.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
<autogenerated>:1: internal compiler error: 18446744069414584320 out of range for int64

goroutine 1 [running]:
runtime/debug.Stack()
	/usr/local/go/src/runtime/debug/stack.go:24 +0x65
bootstrap/cmd/compile/internal/base.FatalfAt({0x30, 0x0}, {0x16d0a9a, 0x16}, {0xc0015d8668, 0x2, 0x2})
	/usr/local/go/src/cmd/compile/internal/base/print.go:227 +0x158
bootstrap/cmd/compile/internal/base.Fatalf({0x16d0a9a, 0xc000d873e0}, {0xc0015d8668, 0xc0015d8688, 0x11b3b88})
	/usr/local/go/src/cmd/compile/internal/base/print.go:196 +0x45
bootstrap/cmd/compile/internal/ir.IntVal(0xc0001f8000, {0x1767710, 0xc000d873e0})
	/usr/local/go/src/cmd/compile/internal/ir/val.go:55 +0xd0
bootstrap/cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc000529c00, {0x1769298, 0xc00047e910}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2590 +0xafc
bootstrap/cmd/compile/internal/ssagen.(*state).expr(0xc000529c00, {0x1769298, 0xc00047e910})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528 +0x28
bootstrap/cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc000529c00, {0x1769360, 0xc00053e2a0}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2862 +0xda6
bootstrap/cmd/compile/internal/ssagen.(*state).expr(0xc000529c00, {0x1769360, 0xc00053e2a0})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528 +0x28
bootstrap/cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc000529c00, {0x1769360, 0xc00053e240}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2736 +0x2330
bootstrap/cmd/compile/internal/ssagen.(*state).expr(0xc0015d9640, {0x1769360, 0xc00053e240})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528 +0x28
bootstrap/cmd/compile/internal/ssagen.(*state).condBranch(0xc000529c00, {0x1769360, 0xc00053e240}, 0xc000902990, 0x0, 0x0)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:3452 +0x313
bootstrap/cmd/compile/internal/ssagen.(*state).stmt(0xc000529c00, {0x176a238, 0xc000e289a0})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:1674 +0x1aaa
bootstrap/cmd/compile/internal/ssagen.(*state).stmtList(0xc000529c00, {0xc0010dd000, 0x59, 0x1763d00})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:1374 +0x5d
bootstrap/cmd/compile/internal/ssagen.buildssa(0xc000867600, 0x0)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:567 +0x17f9
bootstrap/cmd/compile/internal/ssagen.Compile(0xc000867600, 0xc0000c1e60)
	/usr/local/go/src/cmd/compile/internal/ssagen/pgen.go:183 +0x4c
bootstrap/cmd/compile/internal/gc.compileFunctions.func4.1(0x1)
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:153 +0x3a
bootstrap/cmd/compile/internal/gc.compileFunctions.func2(0x0)
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:125 +0x1e
bootstrap/cmd/compile/internal/gc.compileFunctions.func4({0xc0013f9800, 0xa7, 0x100})
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:152 +0x53
bootstrap/cmd/compile/internal/gc.compileFunctions()
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:163 +0x162
bootstrap/cmd/compile/internal/gc.Main(0x16f2f00)
	/usr/local/go/src/cmd/compile/internal/gc/main.go:314 +0xcea
main.main()
	/usr/local/go/src/cmd/compile/main.go:55 +0xcf


go tool dist: FAILED: /usr/local/go/pkg/tool/darwin_amd64/compile -std -pack -o /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-3256792484/archive/zip/_go_.a -p archive/zip -importcfg /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-3256792484/archive/zip/importcfg /usr/local/go/src/archive/zip/reader.go /usr/local/go/src/archive/zip/register.go /usr/local/go/src/archive/zip/struct.go /usr/local/go/src/archive/zip/writer.go: exit status 2
go tool dist: open /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-3256792484/archive/zip/_go_.a: no such file or directory
go tool dist: open /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-3256792484/cmd/vendor/golang.org/x/mod/module/_go_.a: no such file or directory
go tool dist: open /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-3256792484/debug/macho/_go_.a: no such file or directory
go tool dist: open /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-3256792484/debug/elf/_go_.a: no such file or directory
go tool dist: open /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-3256792484/cmd/go/internal/trace/_go_.a: no such file or directory
go tool dist: open /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-3256792484/internal/xcoff/_go_.a: no such file or directory
go tool dist: open /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-3256792484/cmd/go/internal/fsys/_go_.a: no such file or directory
go tool dist: open /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-3256792484/text/template/_go_.a: no such file or directory
go tool dist: open /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-3256792484/debug/pe/_go_.a: no such file or directory
go tool dist: open /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-3256792484/go/ast/_go_.a: no such file or directory
go tool dist: open /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-3256792484/cmd/internal/objabi/_go_.a: no such file or directory
go tool dist: open /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-3256792484/runtime/debug/debug.o: no such file or directory
<autogenerated>:1: internal compiler error: 18446744069414584320 out of range for int64

goroutine 1 [running]:
runtime/debug.Stack()
	/usr/local/go/src/runtime/debug/stack.go:24 +0x65
bootstrap/cmd/compile/internal/base.FatalfAt({0x20, 0x0}, {0x16d0a9a, 0x16}, {0xc0005a2668, 0x2, 0x2})
	/usr/local/go/src/cmd/compile/internal/base/print.go:227 +0x158
bootstrap/cmd/compile/internal/base.Fatalf({0x16d0a9a, 0xc000d8ce60}, {0xc0005a2668, 0xc0005a2688, 0x11b3b88})
	/usr/local/go/src/cmd/compile/internal/base/print.go:196 +0x45
bootstrap/cmd/compile/internal/ir.IntVal(0xc0001f8000, {0x1767710, 0xc000d8ce60})
	/usr/local/go/src/cmd/compile/internal/ir/val.go:55 +0xd0
bootstrap/cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc000864800, {0x1769298, 0xc000da5e00}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2590 +0xafc
bootstrap/cmd/compile/internal/ssagen.(*state).expr(0xc000864800, {0x1769298, 0xc000da5e00})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528 +0x28
bootstrap/cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc000864800, {0x1769360, 0xc000da9380}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2862 +0xda6
bootstrap/cmd/compile/internal/ssagen.(*state).expr(0xc000864800, {0x1769360, 0xc000da9380})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528 +0x28
bootstrap/cmd/compile/internal/ssagen.(*state).exprCheckPtr(0xc000864800, {0x1769360, 0xc000da9320}, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2736 +0x2330
bootstrap/cmd/compile/internal/ssagen.(*state).expr(0xc0005a3640, {0x1769360, 0xc000da9320})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:2528 +0x28
bootstrap/cmd/compile/internal/ssagen.(*state).condBranch(0xc000864800, {0x1769360, 0xc000da9320}, 0xc000e00460, 0x0, 0x0)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:3452 +0x313
bootstrap/cmd/compile/internal/ssagen.(*state).stmt(0xc000864800, {0x176a238, 0xc000dac2a0})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:1674 +0x1aaa
bootstrap/cmd/compile/internal/ssagen.(*state).stmtList(0xc000864800, {0xc000ec5000, 0x8e, 0x1763d00})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:1374 +0x5d
bootstrap/cmd/compile/internal/ssagen.buildssa(0xc0001622c0, 0x0)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:567 +0x17f9
bootstrap/cmd/compile/internal/ssagen.Compile(0xc0001622c0, 0xc00085f280)
	/usr/local/go/src/cmd/compile/internal/ssagen/pgen.go:183 +0x4c
bootstrap/cmd/compile/internal/gc.compileFunctions.func4.1(0x1)
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:153 +0x3a
bootstrap/cmd/compile/internal/gc.compileFunctions.func2(0x0)
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:125 +0x1e
bootstrap/cmd/compile/internal/gc.compileFunctions.func4({0xc000b14000, 0x14, 0x20})
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:152 +0x53
bootstrap/cmd/compile/internal/gc.compileFunctions()
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:163 +0x162
bootstrap/cmd/compile/internal/gc.Main(0x16f2f00)
	/usr/local/go/src/cmd/compile/internal/gc/main.go:314 +0xcea
main.main()
	/usr/local/go/src/cmd/compile/main.go:55 +0xcf


go tool dist: FAILED: /usr/local/go/pkg/tool/darwin_amd64/compile -std -pack -o /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-3256792484/internal/xcoff/_go_.a -p internal/xcoff -importcfg /var/folders/fb/04yhz5d96yg03xkcfzpjhjx40000gp/T/go-tool-dist-3256792484/internal/xcoff/importcfg /usr/local/go/src/internal/xcoff/ar.go /usr/local/go/src/internal/xcoff/file.go /usr/local/go/src/internal/xcoff/xcoff.go: exit status 2
@zchee
Copy link
Contributor Author

@zchee zchee commented Oct 19, 2021

Loading

@cuonglm
Copy link
Member

@cuonglm cuonglm commented Oct 19, 2021

Duplicated of #49061

Loading

@cuonglm cuonglm closed this Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants