gvm: gvm install go1.9.2 fails on macOS 10.12.6
I have already install go1.4 successed use:
gvm install go1.4 -B
when i install go1.9.2 got error:
Downloading Go source… Installing go1.9.2…
- Compiling… ERROR: Failed to compile. Check the logs at /Users/defned/.gvm/logs/go-go1.9.2-compile.log ERROR: Failed to use installed version
cat /Users/defned/.gvm/logs/go-go1.9.2-compile.log
Building Go bootstrap tool.
cmd/dist
Building Go toolchain using /Users/defned/.gvm/gos/go1.4.
bootstrap/cmd/internal/dwarf bootstrap/cmd/internal/objabi bootstrap/cmd/internal/src bootstrap/cmd/internal/sys bootstrap/cmd/asm/internal/flags bootstrap/cmd/internal/bio bootstrap/math/bits bootstrap/cmd/compile/internal/syntax bootstrap/math/big bootstrap/cmd/internal/obj bootstrap/cmd/asm/internal/lex bootstrap/cmd/internal/gcprog bootstrap/debug/pe bootstrap/cmd/link/internal/ld bootstrap/cmd/internal/obj/arm bootstrap/cmd/internal/obj/arm64 bootstrap/cmd/internal/obj/mips bootstrap/cmd/internal/obj/ppc64 bootstrap/cmd/internal/obj/s390x bootstrap/cmd/internal/obj/x86 bootstrap/cmd/compile/internal/types bootstrap/cmd/asm/internal/arch bootstrap/cmd/compile/internal/ssa bootstrap/cmd/asm/internal/asm bootstrap/cmd/asm bootstrap/cmd/link/internal/amd64 bootstrap/cmd/link/internal/arm bootstrap/cmd/link/internal/arm64 bootstrap/cmd/link/internal/mips bootstrap/cmd/link/internal/mips64 bootstrap/cmd/link/internal/ppc64 bootstrap/cmd/link/internal/s390x bootstrap/cmd/link/internal/x86 bootstrap/cmd/link bootstrap/cmd/compile/internal/gc bootstrap/cmd/compile/internal/amd64 bootstrap/cmd/compile/internal/arm bootstrap/cmd/compile/internal/arm64 bootstrap/cmd/compile/internal/mips bootstrap/cmd/compile/internal/mips64 bootstrap/cmd/compile/internal/ppc64 bootstrap/cmd/compile/internal/s390x bootstrap/cmd/compile/internal/x86 bootstrap/cmd/compile
Building go_bootstrap for host, darwin/amd64.
runtime/internal/sys runtime/internal/atomic runtime encoding errors internal/cpu internal/race internal/syscall/windows/sysdll math/bits sync/atomic unicode unicode/utf16 unicode/utf8 math sync io internal/singleflight syscall cmd/go/internal/web hash bytes strings hash/adler32 bufio strconv path internal/syscall/windows internal/syscall/windows/registry time reflect encoding/base64 crypto crypto/sha1 internal/poll os os/signal sort encoding/binary fmt unexpected fault address 0x4cbfdb9a1a9 fatal error: fault [signal 0xb code=0x1 addr=0x4cbfdb9a1a9 pc=0xfda3f]
goroutine 1 [running]: runtime.gothrow(0x70a230, 0x5) /usr/local/go/src/runtime/panic.go:503 +0x8e fp=0xc2083ff438 sp=0xc2083ff420 runtime.sigpanic() /usr/local/go/src/runtime/sigpanic_unix.go:29 +0x261 fp=0xc2083ff488 sp=0xc2083ff438 bootstrap/cmd/compile/internal/gc.livenessShouldTrack(0x4cbfdb9a12b, 0x7354b0) /Users/defned/.gvm/gos/go1.9.2/src/cmd/compile/internal/gc/plive.go:149 +0x1f fp=0xc2083ff4a0 sp=0xc2083ff488 bootstrap/cmd/compile/internal/gc.getvariables(0xc2083abe40, 0x0, 0x0, 0x0, 0x1) /Users/defned/.gvm/gos/go1.9.2/src/cmd/compile/internal/gc/plive.go:157 +0xd2 fp=0xc2083ff568 sp=0xc2083ff4a0 bootstrap/cmd/compile/internal/gc.liveness(0xc2085c8570, 0xc2085bd2c0, 0xc2085c8570) /Users/defned/.gvm/gos/go1.9.2/src/cmd/compile/internal/gc/plive.go:1287 +0x2b fp=0xc2083ff5d0 sp=0xc2083ff568 bootstrap/cmd/compile/internal/gc.genssa(0xc2085bd2c0, 0xc208588780) /Users/defned/.gvm/gos/go1.9.2/src/cmd/compile/internal/gc/ssa.go:4383 +0xb8 fp=0xc2083ff7f0 sp=0xc2083ff5d0 bootstrap/cmd/compile/internal/gc.compileSSA(0xc2083abe40, 0x0) /Users/defned/.gvm/gos/go1.9.2/src/cmd/compile/internal/gc/pgen.go:242 +0x85 fp=0xc2083ff880 sp=0xc2083ff7f0 bootstrap/cmd/compile/internal/gc.compile(0xc2083abe40) /Users/defned/.gvm/gos/go1.9.2/src/cmd/compile/internal/gc/pgen.go:219 +0x11a fp=0xc2083ff8f8 sp=0xc2083ff880 bootstrap/cmd/compile/internal/gc.funccompile(0xc2083abe40) /Users/defned/.gvm/gos/go1.9.2/src/cmd/compile/internal/gc/dcl.go:1049 +0x1a3 fp=0xc2083ff970 sp=0xc2083ff8f8 bootstrap/cmd/compile/internal/gc.Main(0x8275e8) /Users/defned/.gvm/gos/go1.9.2/src/cmd/compile/internal/gc/main.go:585 +0x30e9 fp=0xc2083ffee8 sp=0xc2083ff970 main.main() /Users/defned/.gvm/gos/go1.9.2/src/cmd/compile/main.go:49 +0x1c5 fp=0xc2083fff98 sp=0xc2083ffee8 runtime.main() /usr/local/go/src/runtime/proc.go:63 +0xf3 fp=0xc2083fffe0 sp=0xc2083fff98 runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:2232 +0x1 fp=0xc2083fffe8 sp=0xc2083fffe0 go tool dist: FAILED: /Users/defned/.gvm/gos/go1.9.2/pkg/tool/darwin_amd64/compile -pack -o /var/folders/h1/sdy0c6v907z7ylyw7650364w0000gp/T/go-tool-dist-513999791/sort/go.a -p sort /Users/defned/.gvm/gos/go1.9.2/src/sort/search.go /Users/defned/.gvm/gos/go1.9.2/src/sort/sort.go /Users/defned/.gvm/gos/go1.9.2/src/sort/zfuncversion.go: exit status 2 can’t create /var/folders/h1/sdy0c6v907z7ylyw7650364w0000gp/T/go-tool-dist-513999791/encoding/binary/go.a: open /var/folders/h1/sdy0c6v907z7ylyw7650364w0000gp/T/go-tool-dist-513999791/encoding/binary/go.a: no such file or directory can’t create /var/folders/h1/sdy0c6v907z7ylyw7650364w0000gp/T/go-tool-dist-513999791/fmt/go.a: open /var/folders/h1/sdy0c6v907z7ylyw7650364w0000gp/T/go-tool-dist-513999791/fmt/go.a: no such file or directory
hope help me
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 3
- Comments: 22
Can you try installing 1.9.2 with the
-B
flag? Just worked for a friend of mine who was having the same issue.Installing it with the
-B
flag would work for you. Just following this processgvm install go1.12 --binary # don’t install go1.4
rm ~/.gvm
try gvm2
i work in my macOS high sierra, hope will help you
you can try
sudo
permissions try last step