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

Error with go1.5 install #155

Open
thrisp opened this Issue Aug 20, 2015 · 32 comments

Comments

@thrisp

thrisp commented Aug 20, 2015

~  gvm install go1.5                                                                                                                                
Installing go1.5...
 * Compiling...
ERROR: Failed to compile. Check the logs at /home/xxxxx/.gvm/logs/go-go1.5-compile.log
ERROR: Failed to use installed version
~ cat /home/xxxxx/.gvm/logs/go-go1.5-compile.log                                                                                                   
##### Building Go bootstrap tool.
cmd/dist
ERROR: Cannot find /home/xxxxx/go1.4/bin/go.
Set $GOROOT_BOOTSTRAP to a working Go tree >= Go 1.4.
./make.bash: line 121: /home/xxxxx/go1.4/bin/go: No such file or directory
@dariusc93

This comment has been minimized.

Show comment
Hide comment
@dariusc93

dariusc93 Aug 20, 2015

You will need go1.4 installed before you can install go1.5 (since this is compiling from go source and 1.5 doesnt use C anymore) run gvm install go1.4 gvm use go1.4 export GOROOT_BOOTSTRAP=$GOROOT then run gvm install go1.5 . This should be fixed in pull #154

dariusc93 commented Aug 20, 2015

You will need go1.4 installed before you can install go1.5 (since this is compiling from go source and 1.5 doesnt use C anymore) run gvm install go1.4 gvm use go1.4 export GOROOT_BOOTSTRAP=$GOROOT then run gvm install go1.5 . This should be fixed in pull #154

@oryband

This comment has been minimized.

Show comment
Hide comment
@oryband

oryband commented Aug 23, 2015

👍

@jameshueston

This comment has been minimized.

Show comment
Hide comment
@jameshueston

jameshueston Aug 27, 2015

The compiler log: "ERROR: Cannot find /home/xxxxx/go1.4/bin/go"
made me think I should export GOROOT_BOOTSTAP="/home/username/.gvm/gos/go1.4.x/bin"
since it was looking for the binary; revision suggested:
Set $GOROOT_BOOTSTRAP to [the root (not the bin) of] a working Go tree >= Go 1.4.

jameshueston commented Aug 27, 2015

The compiler log: "ERROR: Cannot find /home/xxxxx/go1.4/bin/go"
made me think I should export GOROOT_BOOTSTAP="/home/username/.gvm/gos/go1.4.x/bin"
since it was looking for the binary; revision suggested:
Set $GOROOT_BOOTSTRAP to [the root (not the bin) of] a working Go tree >= Go 1.4.

@zamicol

This comment has been minimized.

Show comment
Hide comment
@zamicol

zamicol Aug 28, 2015

@dariusc93's solution worked. Thanks.

gvm install go1.4 
gvm use go1.4 
export GOROOT_BOOTSTRAP=$GOROOT 
gvm install go1.5

zamicol commented Aug 28, 2015

@dariusc93's solution worked. Thanks.

gvm install go1.4 
gvm use go1.4 
export GOROOT_BOOTSTRAP=$GOROOT 
gvm install go1.5
@davpow

This comment has been minimized.

Show comment
Hide comment
@davpow

davpow Aug 30, 2015

Thanks @dariusc93. Your solution fixed the problem.

gvm install go1.4 
gvm use go1.4 
export GOROOT_BOOTSTRAP=$GOROOT 
gvm install go1.5

davpow commented Aug 30, 2015

Thanks @dariusc93. Your solution fixed the problem.

gvm install go1.4 
gvm use go1.4 
export GOROOT_BOOTSTRAP=$GOROOT 
gvm install go1.5
@sudhirvkumar

This comment has been minimized.

Show comment
Hide comment
@sudhirvkumar

sudhirvkumar Aug 30, 2015

Why can't it use go1.4.2? I already had go1.4.2 installed!

sudhirvkumar commented Aug 30, 2015

Why can't it use go1.4.2? I already had go1.4.2 installed!

@dariusc93

This comment has been minimized.

Show comment
Hide comment
@dariusc93

dariusc93 commented Aug 31, 2015

@sudhirvkumar what do you mean?

@surajx

This comment has been minimized.

Show comment
Hide comment
@surajx

surajx Sep 3, 2015

if you are on 1.4.x, you need to export GOROOT_BOOTSTRAP before installing go1.5

export GOROOT_BOOTSTRAP=$GOROOT

surajx commented Sep 3, 2015

if you are on 1.4.x, you need to export GOROOT_BOOTSTRAP before installing go1.5

export GOROOT_BOOTSTRAP=$GOROOT
@ToddGreenstein

This comment has been minimized.

Show comment
Hide comment
@ToddGreenstein

ToddGreenstein Sep 3, 2015

I hit the same issue, and @dariusc93 solution worked for me. Thank you for posting this.

ToddGreenstein commented Sep 3, 2015

I hit the same issue, and @dariusc93 solution worked for me. Thank you for posting this.

@jessecogollo

This comment has been minimized.

Show comment
Hide comment
@jessecogollo

jessecogollo Sep 4, 2015

@dariusc93 solution worked for me.

jessecogollo commented Sep 4, 2015

@dariusc93 solution worked for me.

@trkrameshkumar

This comment has been minimized.

Show comment
Hide comment
@trkrameshkumar

trkrameshkumar Sep 6, 2015

Thanks @dariusc93. your solution works

trkrameshkumar commented Sep 6, 2015

Thanks @dariusc93. your solution works

@akwmak

This comment has been minimized.

Show comment
Hide comment
@akwmak

akwmak Sep 7, 2015

I followed the instruction to install 1.4 first and then 1.5. It failed to complie and had the following log:

go build bootstrap/compile/internal/gc: /home/vagrant/.gvm/gos/go1.4/pkg/tool/linux_amd64/6g: signal: killed
bootstrap/link/internal/ld
bootstrap/link/internal/amd64
bootstrap/link/internal/arm
bootstrap/link/internal/arm64
bootstrap/link/internal/ppc64
bootstrap/link/internal/x86
bootstrap/link
go tool dist: FAILED: /home/vagrant/.gvm/gos/go1.4/bin/go install -v bootstrap/...: exit status 1

akwmak commented Sep 7, 2015

I followed the instruction to install 1.4 first and then 1.5. It failed to complie and had the following log:

go build bootstrap/compile/internal/gc: /home/vagrant/.gvm/gos/go1.4/pkg/tool/linux_amd64/6g: signal: killed
bootstrap/link/internal/ld
bootstrap/link/internal/amd64
bootstrap/link/internal/arm
bootstrap/link/internal/arm64
bootstrap/link/internal/ppc64
bootstrap/link/internal/x86
bootstrap/link
go tool dist: FAILED: /home/vagrant/.gvm/gos/go1.4/bin/go install -v bootstrap/...: exit status 1

@unnikked

This comment has been minimized.

Show comment
Hide comment
@unnikked

unnikked Sep 7, 2015

@akwmak same issue here.

I managed to solve it by

sudo apt-get update
sudo apt-get upgrade

unnikked commented Sep 7, 2015

@akwmak same issue here.

I managed to solve it by

sudo apt-get update
sudo apt-get upgrade
@huoshiqiu

This comment has been minimized.

Show comment
Hide comment
@huoshiqiu

huoshiqiu Sep 8, 2015

@dariusc93 solution worked for me too! Thx

huoshiqiu commented Sep 8, 2015

@dariusc93 solution worked for me too! Thx

@mo-open

This comment has been minimized.

Show comment
Hide comment
@mo-open

mo-open Sep 9, 2015

@dariusc93 BUT, once I failed to install go1.5, I cannot install go 1.4.

[root@zoo1 ~]# gvm install go1.4
Installing go1.4...

  • Compiling...
    ERROR: Failed to compile. Check the logs at /root/.gvm/logs/go-go1.4-compile.log
    ERROR: Failed to use installed version

[root@zoo1 ~]# cat /root/.gvm/logs/go-go1.4-compile.log

Building Go bootstrap tool.

cmd/dist
ERROR: Cannot find /root/go1.4/bin/go.
Set $GOROOT_BOOTSTRAP to a working Go tree >= Go 1.4.

mo-open commented Sep 9, 2015

@dariusc93 BUT, once I failed to install go1.5, I cannot install go 1.4.

[root@zoo1 ~]# gvm install go1.4
Installing go1.4...

  • Compiling...
    ERROR: Failed to compile. Check the logs at /root/.gvm/logs/go-go1.4-compile.log
    ERROR: Failed to use installed version

[root@zoo1 ~]# cat /root/.gvm/logs/go-go1.4-compile.log

Building Go bootstrap tool.

cmd/dist
ERROR: Cannot find /root/go1.4/bin/go.
Set $GOROOT_BOOTSTRAP to a working Go tree >= Go 1.4.

@willin

This comment has been minimized.

Show comment
Hide comment
@willin

willin Sep 25, 2015

[proxychains] DLL init: proxychains-ng 4.10
# Building C bootstrap tool.
cmd/dist

# Building compilers and Go bootstrap tool for host, darwin/amd64.
lib9
libbio
liblink
cmd/cc
cmd/gc
cmd/6l
cmd/6a
cmd/6c
cmd/6g
runtime
errors
sync/atomic
sync
io
unicode
unicode/utf8
unicode/utf16
bytes
math
strings
strconv
bufio
sort
container/heap
encoding/base64
syscall
time
os
reflect
fmt
encoding
encoding/json
flag
path/filepath
path
io/ioutil
log
regexp/syntax
regexp
go/token
go/scanner
go/ast
go/parser
os/exec
os/signal
net/url
text/template/parse
text/template
go/doc
go/build
cmd/go
fatal error: runtime: bsdthread_register error (unset DYLD_INSERT_LIBRARIES)

runtime stack:
runtime.throw(0x3e7855)
    /Users/willin/.gvm/gos/go1.4/src/runtime/panic.go:491 +0xad fp=0x7fff5fbff660 sp=0x7fff5fbff630
runtime.goenvs()
    /Users/willin/.gvm/gos/go1.4/src/runtime/os_darwin.c:103 +0x60 fp=0x7fff5fbff678 sp=0x7fff5fbff660
runtime.schedinit()
    /Users/willin/.gvm/gos/go1.4/src/runtime/proc.c:141 +0x5f fp=0x7fff5fbff6a0 sp=0x7fff5fbff678
runtime.rt0_go(0x7fff5fbff6d0, 0x4, 0x7fff5fbff6d0, 0x0, 0x4, 0x7fff5fbff8b8, 0x7fff5fbff8f8, 0x7fff5fbff8fe, 0x7fff5fbff901, 0x0, ...)
    /Users/willin/.gvm/gos/go1.4/src/runtime/asm_amd64.s:95 +0x116 fp=0x7fff5fbff6a8 sp=0x7fff5fbff6a0

what's wrong

willin commented Sep 25, 2015

[proxychains] DLL init: proxychains-ng 4.10
# Building C bootstrap tool.
cmd/dist

# Building compilers and Go bootstrap tool for host, darwin/amd64.
lib9
libbio
liblink
cmd/cc
cmd/gc
cmd/6l
cmd/6a
cmd/6c
cmd/6g
runtime
errors
sync/atomic
sync
io
unicode
unicode/utf8
unicode/utf16
bytes
math
strings
strconv
bufio
sort
container/heap
encoding/base64
syscall
time
os
reflect
fmt
encoding
encoding/json
flag
path/filepath
path
io/ioutil
log
regexp/syntax
regexp
go/token
go/scanner
go/ast
go/parser
os/exec
os/signal
net/url
text/template/parse
text/template
go/doc
go/build
cmd/go
fatal error: runtime: bsdthread_register error (unset DYLD_INSERT_LIBRARIES)

runtime stack:
runtime.throw(0x3e7855)
    /Users/willin/.gvm/gos/go1.4/src/runtime/panic.go:491 +0xad fp=0x7fff5fbff660 sp=0x7fff5fbff630
runtime.goenvs()
    /Users/willin/.gvm/gos/go1.4/src/runtime/os_darwin.c:103 +0x60 fp=0x7fff5fbff678 sp=0x7fff5fbff660
runtime.schedinit()
    /Users/willin/.gvm/gos/go1.4/src/runtime/proc.c:141 +0x5f fp=0x7fff5fbff6a0 sp=0x7fff5fbff678
runtime.rt0_go(0x7fff5fbff6d0, 0x4, 0x7fff5fbff6d0, 0x0, 0x4, 0x7fff5fbff8b8, 0x7fff5fbff8f8, 0x7fff5fbff8fe, 0x7fff5fbff901, 0x0, ...)
    /Users/willin/.gvm/gos/go1.4/src/runtime/asm_amd64.s:95 +0x116 fp=0x7fff5fbff6a8 sp=0x7fff5fbff6a0

what's wrong

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Dec 3, 2015

@akwmak
Any success ? I have the same problem and i followed what @akwmak wrote.It did not fixed the issue.

ghost commented Dec 3, 2015

@akwmak
Any success ? I have the same problem and i followed what @akwmak wrote.It did not fixed the issue.

@sudhirvkumar

This comment has been minimized.

Show comment
Hide comment
@sudhirvkumar

sudhirvkumar Dec 4, 2015

I just installed binary version.

Sent from my iPhone

On 04-Dec-2015, at 12:34 AM, Mike notifications@github.com wrote:

@akwmak
Any success ? I have the same problem and i followed what @akwmak wrote.It did not fixed the issue.


Reply to this email directly or view it on GitHub.

sudhirvkumar commented Dec 4, 2015

I just installed binary version.

Sent from my iPhone

On 04-Dec-2015, at 12:34 AM, Mike notifications@github.com wrote:

@akwmak
Any success ? I have the same problem and i followed what @akwmak wrote.It did not fixed the issue.


Reply to this email directly or view it on GitHub.

imyelo added a commit to imyelo/gvm that referenced this issue Jan 2, 2016

@technowar

This comment has been minimized.

Show comment
Hide comment
@technowar

technowar Jan 9, 2016

@akwmak @mitghi any success on this error?

technowar commented Jan 9, 2016

@akwmak @mitghi any success on this error?

@alanionita

This comment has been minimized.

Show comment
Hide comment
@alanionita

alanionita Jan 16, 2016

@technowar @akwmak @mitghi Same situation here, even after using the recommendation from @unnikked

alanionita commented Jan 16, 2016

@technowar @akwmak @mitghi Same situation here, even after using the recommendation from @unnikked

@alanionita

This comment has been minimized.

Show comment
Hide comment
@alanionita

alanionita Jan 18, 2016

@technowar @akwmak @mitghi

I got around this issue by:

Still can't explain why we had the issue above, but at least this will get you started.

alanionita commented Jan 18, 2016

@technowar @akwmak @mitghi

I got around this issue by:

Still can't explain why we had the issue above, but at least this will get you started.

@technowar

This comment has been minimized.

Show comment
Hide comment
@technowar

technowar Jan 20, 2016

@algaio @akwmak @mitghi I solved mine by increasing my VM's RAM to 2048. It seemed like mine failed to install go1.4.3.

technowar commented Jan 20, 2016

@algaio @akwmak @mitghi I solved mine by increasing my VM's RAM to 2048. It seemed like mine failed to install go1.4.3.

@alanionita

This comment has been minimized.

Show comment
Hide comment
@alanionita

alanionita Jan 20, 2016

@technowar Oh cool... mine was failing when trying to install go1.5 upwards.

alanionita commented Jan 20, 2016

@technowar Oh cool... mine was failing when trying to install go1.5 upwards.

@benzsuankularb

This comment has been minimized.

Show comment
Hide comment
@benzsuankularb

benzsuankularb Feb 1, 2016

@algaio @akwmak @mitghi
I followed @technowar by release RAM from mongodb then it's work.
My droplet is just 500MB

benzsuankularb commented Feb 1, 2016

@algaio @akwmak @mitghi
I followed @technowar by release RAM from mongodb then it's work.
My droplet is just 500MB

@jsgv

This comment has been minimized.

Show comment
Hide comment
@jsgv

jsgv Feb 19, 2016

You can also set GOROOT_BOOTSTRAP to always use your Go 1.4 so you don't have to switch it in GVM.

export GOROOT_BOOTSTRAP="/Users/{username}/.gvm/gos/go1.4"

jsgv commented Feb 19, 2016

You can also set GOROOT_BOOTSTRAP to always use your Go 1.4 so you don't have to switch it in GVM.

export GOROOT_BOOTSTRAP="/Users/{username}/.gvm/gos/go1.4"
@tejasmanohar

This comment has been minimized.

Show comment
Hide comment
@tejasmanohar

tejasmanohar Aug 1, 2016

So this works but is it not possible to bootstrap latest go without 1.4?

tejasmanohar commented Aug 1, 2016

So this works but is it not possible to bootstrap latest go without 1.4?

@johndpope

This comment has been minimized.

Show comment
Hide comment
@johndpope

johndpope Aug 5, 2016

thanks @dariusc93 - I needed to update this for it to work.
gvm install go1.4 -B
gvm use go1.4
export GOROOT_BOOTSTRAP=$GOROOT

johndpope commented Aug 5, 2016

thanks @dariusc93 - I needed to update this for it to work.
gvm install go1.4 -B
gvm use go1.4
export GOROOT_BOOTSTRAP=$GOROOT

@IgorGanapolsky

This comment has been minimized.

Show comment
Hide comment
@IgorGanapolsky

IgorGanapolsky Sep 11, 2016

Are we always gonna have to install go1.4 in order to install later versions? I mean, I'm trying to install 1.7 now, and this is still the case...

IgorGanapolsky commented Sep 11, 2016

Are we always gonna have to install go1.4 in order to install later versions? I mean, I'm trying to install 1.7 now, and this is still the case...

@technowar

This comment has been minimized.

Show comment
Hide comment
@technowar

technowar Sep 14, 2016

@IgorGanapolsky Yes. Actually, it is written in their README.

A Note on Compiling Go 1.5
Go 1.5+ removed the C compilers from the toolchain and replaced them with one written in Go. Obviously, this creates a bootstrapping problem if you don't already have a working Go install. In order to compile Go 1.5+, make sure Go 1.4 is installed first.

technowar commented Sep 14, 2016

@IgorGanapolsky Yes. Actually, it is written in their README.

A Note on Compiling Go 1.5
Go 1.5+ removed the C compilers from the toolchain and replaced them with one written in Go. Obviously, this creates a bootstrapping problem if you don't already have a working Go install. In order to compile Go 1.5+, make sure Go 1.4 is installed first.
@Qard

This comment has been minimized.

Show comment
Hide comment
@Qard

Qard Sep 16, 2016

I'm trying to install 1.7.1, but need 1.4 to build it, so I tried installing that, however El Capitan seems to also be incapable of installing any version before go1.5. Here's the log for 1.4:

# Building C bootstrap tool.
cmd/dist

# Building compilers and Go bootstrap tool for host, darwin/amd64.
lib9
libbio
liblink
cmd/cc
cmd/gc
cmd/6l
cmd/6a
cmd/6c
/Users/stephenbelanger/.gvm/gos/go1.4/src/cmd/6c/txt.c:995:28: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value]
/Users/stephenbelanger/.gvm/gos/go1.4/src/cmd/6c/txt.c:1045:28: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value]
go tool dist: FAILED: clang -Wall -Wstrict-prototypes -Wextra -Wunused -Wno-sign-compare -Wno-missing-braces -Wno-parentheses -Wno-unknown-pragmas -Wno-switch -Wno-comment -Wno-missing-field-initializers -Werror -fno-common -ggdb -pipe -Wuninitialized -O2 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -mmacosx-version-min=10.6 -c -m64 -I /Users/stephenbelanger/.gvm/gos/go1.4/include -I /Users/stephenbelanger/.gvm/gos/go1.4/src/cmd/6c -o /Users/stephenbelanger/.gvm/gos/go1.4/pkg/obj/cmd/6c/txt.o /Users/stephenbelanger/.gvm/gos/go1.4/src/cmd/6c/txt.c

I literally can not install any version available through gvm, so gvm is kind of useless to me right now. 😭

Qard commented Sep 16, 2016

I'm trying to install 1.7.1, but need 1.4 to build it, so I tried installing that, however El Capitan seems to also be incapable of installing any version before go1.5. Here's the log for 1.4:

# Building C bootstrap tool.
cmd/dist

# Building compilers and Go bootstrap tool for host, darwin/amd64.
lib9
libbio
liblink
cmd/cc
cmd/gc
cmd/6l
cmd/6a
cmd/6c
/Users/stephenbelanger/.gvm/gos/go1.4/src/cmd/6c/txt.c:995:28: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value]
/Users/stephenbelanger/.gvm/gos/go1.4/src/cmd/6c/txt.c:1045:28: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value]
go tool dist: FAILED: clang -Wall -Wstrict-prototypes -Wextra -Wunused -Wno-sign-compare -Wno-missing-braces -Wno-parentheses -Wno-unknown-pragmas -Wno-switch -Wno-comment -Wno-missing-field-initializers -Werror -fno-common -ggdb -pipe -Wuninitialized -O2 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -mmacosx-version-min=10.6 -c -m64 -I /Users/stephenbelanger/.gvm/gos/go1.4/include -I /Users/stephenbelanger/.gvm/gos/go1.4/src/cmd/6c -o /Users/stephenbelanger/.gvm/gos/go1.4/pkg/obj/cmd/6c/txt.o /Users/stephenbelanger/.gvm/gos/go1.4/src/cmd/6c/txt.c

I literally can not install any version available through gvm, so gvm is kind of useless to me right now. 😭

@technowar

This comment has been minimized.

Show comment
Hide comment
@technowar

technowar Sep 17, 2016

Did you install it using -B option?

technowar commented Sep 17, 2016

Did you install it using -B option?

@windhost

This comment has been minimized.

Show comment
Hide comment
@windhost

windhost commented Oct 29, 2016

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