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

runtime error on go get go1.11 #27269

Closed
tayadelmar opened this issue Aug 27, 2018 · 17 comments
Closed

runtime error on go get go1.11 #27269

tayadelmar opened this issue Aug 27, 2018 · 17 comments

Comments

@tayadelmar
Copy link

What did you do?

  1. dowload and install go1.11.linux-amd64.tar.gz
  2. go get ./... dependencies for a project

What did you expect to see?

success

What did you see instead?

# runtime
/usr/local/go/src/runtime/map.go:64:2: bucketCntBits redeclared in this block
        previous declaration at /usr/local/go/src/runtime/hashmap.go:64:18
/usr/local/go/src/runtime/map.go:65:2: bucketCnt redeclared in this block
        previous declaration at /usr/local/go/src/runtime/hashmap.go:65:23
/usr/local/go/src/runtime/map.go:69:2: loadFactorNum redeclared in this block
        previous declaration at /usr/local/go/src/runtime/hashmap.go:69:18
/usr/local/go/src/runtime/map.go:70:2: loadFactorDen redeclared in this block
        previous declaration at /usr/local/go/src/runtime/hashmap.go:70:18
/usr/local/go/src/runtime/map.go:76:2: maxKeySize redeclared in this block
        previous declaration at /usr/local/go/src/runtime/hashmap.go:76:17
/usr/local/go/src/runtime/map.go:77:2: maxValueSize redeclared in this block
        previous declaration at /usr/local/go/src/runtime/hashmap.go:77:17
/usr/local/go/src/runtime/map.go:82:2: dataOffset redeclared in this block
        previous declaration at /usr/local/go/src/runtime/hashmap.go:85:4
/usr/local/go/src/runtime/map.go:91:2: empty redeclared in this block
        previous declaration at /usr/local/go/src/runtime/hashmap.go:91:19
/usr/local/go/src/runtime/map.go:92:2: evacuatedEmpty redeclared in this block
        previous declaration at /usr/local/go/src/runtime/hashmap.go:92:19
/usr/local/go/src/runtime/map.go:93:2: evacuatedX redeclared in this block
        previous declaration at /usr/local/go/src/runtime/hashmap.go:93:19
/usr/local/go/src/runtime/map.go:93:2: too many errors

System details

go version go1.11 linux/amd64
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/taya/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/taya/go:/home/taya/work/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
GOROOT/bin/go version: go version go1.11 linux/amd64
GOROOT/bin/go tool compile -V: compile version go1.11
uname -sr: Linux 4.15.0-33-generic
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.1 LTS
Release:	18.04
Codename:	bionic
/lib/x86_64-linux-gnu/libc.so.6: GNU C Library (Ubuntu GLIBC 2.27-3ubuntu1) stable release version 2.27.
gdb --version: GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
@tirkarthi
Copy link

Some problem with your GOPATH ? Similar issue with the above error message : https://github.com/kataras/iris/issues/1049

Thanks

@tayadelmar
Copy link
Author

tayadelmar commented Aug 27, 2018

Sorry, It was my fault while installation process.

@lazize
Copy link

lazize commented Aug 27, 2018

I have the same issue and I don't have variable GOPATH set.

@tayadelmar
Copy link
Author

tayadelmar commented Aug 27, 2018

I just didn't delete the previous go version properly. Now everything is working good for me.

@lazize
Copy link

lazize commented Aug 27, 2018

Great, it worked for me also. Thanks @DubininaTaisiia !

@pnutmath
Copy link

pnutmath commented Sep 3, 2018

Thanks, I re-installed go and works for me. Initially I overrides on older version

@yan-ace62
Copy link

I also had this problem because I overwrote the installation directly, and then I solved it by uninstalling go1.11 and reinstalling it.

@huqiang
Copy link

huqiang commented Sep 28, 2018

Fixed by removing the installation, which was done by overwriting previous version, then reinstalling.

@tokoiwesley
Copy link

I got this error because I had the same problem as @yan-ace62

@bachoo786
Copy link

@huqiang @tokoiwesley @yan-ace62 how can I remove go all together from my raspberry pi as I am having the same issues as the OP? thanks

@mortezakhademan
Copy link

Thanks, I reinstalled go and works for me

@mortezakhademan
Copy link

@huqiang @tokoiwesley @yan-ace62 how can I remove go all together from my raspberry pi as I am having the same issues as the OP? thanks

I installed go with archive file then for uninstall only remove go directory

@RusAlex
Copy link

RusAlex commented Nov 29, 2018

This message appears when in your /usr/local/go several versions of go mixed. Just remove this folder and re-install go

@smahe
Copy link

smahe commented Dec 20, 2018

@RusAlex suggestion works exactly. Thanks

@morrisonbrett
Copy link

Thanks @RusAlex. That fixed it for me too.

@vdieulesaint
Copy link

Same issue on win10 with releases 1.12.1 and 1.11.5
Downgrading to 1.10.8 solved the issue for me

@zak905
Copy link

zak905 commented Jul 23, 2019

same here. Deleting old version and re-untarring the new one fixed the issue for me.

@golang golang locked as resolved and limited conversation to collaborators Jul 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests