Skip to content

Instantly share code, notes, and snippets.

@kevinburke
Created November 1, 2016 03:06
Show Gist options
  • Save kevinburke/ea4d22592a2f2a1d81ebf236a39b2450 to your computer and use it in GitHub Desktop.
Save kevinburke/ea4d22592a2f2a1d81ebf236a39b2450 to your computer and use it in GitHub Desktop.
/home/kevin/go/src# GOROOT_BOOTSTRAP=/home/kevin/go1.4 ./make.bash
##### Building Go bootstrap tool.
cmd/dist
##### Building Go toolchain using /home/kevin/go1.4.
bootstrap/cmd/internal/dwarf
bootstrap/cmd/internal/sys
bootstrap/cmd/internal/obj
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/asm/internal/arch
bootstrap/cmd/asm/internal/flags
bootstrap/cmd/asm/internal/lex
bootstrap/cmd/asm/internal/asm
bootstrap/cmd/internal/bio
bootstrap/cmd/asm
bootstrap/cmd/compile/internal/ssa
go build bootstrap/cmd/compile/internal/ssa: /home/kevin/go1.4/pkg/tool/linux_amd64/6g: signal: killed
bootstrap/cmd/compile/internal/syntax
bootstrap/cmd/internal/gcprog
bootstrap/math/big
bootstrap/debug/pe
bootstrap/cmd/link/internal/ld
bootstrap/cmd/link/internal/amd64
bootstrap/cmd/link/internal/arm
bootstrap/cmd/link/internal/arm64
bootstrap/cmd/link/internal/mips64
bootstrap/cmd/link/internal/ppc64
bootstrap/cmd/link/internal/s390x
bootstrap/cmd/link/internal/x86
bootstrap/cmd/link
go tool dist: FAILED: /home/kevin/go1.4/bin/go install -gcflags=-l -tags=math_big_pure_go -v bootstrap/cmd/...: exit status 1
@aikchar
Copy link

aikchar commented Apr 18, 2017

I ran into the same problem. Did you get a fix for this error?

Related to https://github.com/joyent/pkgsrc/issues/485#issuecomment-294908878, I edited lang/go/version.mk.

$ git diff version.mk
diff --git a/lang/go/version.mk b/lang/go/version.mk
index f59fbe1..f63d3a7 100644
--- a/lang/go/version.mk
+++ b/lang/go/version.mk
@@ -13,7 +13,7 @@ GOCHAR=               8
 .elif ${MACHINE_ARCH} == "x86_64"
 GOARCH=                amd64
 GOCHAR=                6
-.elif !empty(MACHINE_ARCH:M*arm)
+.elif !empty(MACHINE_ARCH:M*arm*)
 GOARCH=                arm
 GOCHAR=                5
 .endif
$ time bmake deinstall reinstall
===> Deinstalling for go-1.8.1
=> Bootstrap dependency digest>=20010302: found digest-20160304
===> Checking for vulnerabilities in go-1.8.1
===> Building for go-1.8.1
cd /home/username/pkg/usr/work/lang/go/work/go/src/syscall &&  env GOOS=linux GOARCH=armv7l  /home/username/pkg/bin/perl mksyscall_solaris.pl  syscall_solaris.go syscall_solaris_amd64.go > zsyscall_solaris_amd64.go
cd /home/username/pkg/usr/work/lang/go/work/go/src && env GOROOT_BOOTSTRAP=/home/username/pkg/go14 GOROOT_FINAL=/home/username/pkg/go /bin/bash ./make.bash
##### Building Go bootstrap tool.
cmd/dist

##### Building Go toolchain using /home/username/pkg/go14.
bootstrap/cmd/internal/dwarf
bootstrap/cmd/internal/sys
bootstrap/cmd/asm/internal/flags
bootstrap/cmd/internal/bio
bootstrap/cmd/compile/internal/syntax
bootstrap/cmd/internal/gcprog
bootstrap/math/big
bootstrap/debug/pe
bootstrap/cmd/internal/obj
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/asm/internal/lex
bootstrap/cmd/link/internal/ld
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
go build bootstrap/cmd/compile/internal/ssa: /home/username/pkg/go14/pkg/tool/linux_arm/5g: signal: killed
go tool dist: FAILED: /home/username/pkg/go14/bin/go install -gcflags=-l -tags=math_big_pure_go -v bootstrap/cmd/...: exit status 1
*** Error code 2

Stop.
bmake[1]: stopped in /home/username/pkgsrc/lang/go
*** Error code 1

Stop.
bmake: stopped in /home/username/pkgsrc/lang/go

real	1m16.153s
user	1m41.830s
sys	0m8.760s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment