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

Can't build merlin server on Linux Ubuntu 16.04: "redeclared in this block" #90

Closed
3 tasks done
g3rzi opened this issue Jun 11, 2020 · 2 comments
Closed
3 tasks done

Comments

@g3rzi
Copy link
Contributor

g3rzi commented Jun 11, 2020

Prerequisite

  • I have read the README
  • I have search the opened & closed issues
  • I have search the WIKI and its FAQ page

Environment Data

  • Merlin Version: 0.8.0.BETA (dev branch)
  • Merlin Build: nonRelease
  • Go Version: go1.14.4 linux/amd64
  • GOPATH Environment Variable: /home/jiren/go
  • GOROOT Environment Variable: /usr/local/go
  • Operating System: Linux Ubuntu 16.04.3 LTS

Expected Behavior

Build without errors

Actual Behavior

root@ubuntu:~/go/src/merlin# go build cmd/merlinserver/main.go 
# runtime/internal/atomic
/usr/local/go/src/runtime/internal/atomic/atomic_amd64x.go:13:6: Load redeclared in this block
	previous declaration at /usr/local/go/src/runtime/internal/atomic/atomic_amd64.go:16:24
/usr/local/go/src/runtime/internal/atomic/atomic_amd64x.go:19:6: Loadp redeclared in this block
	previous declaration at /usr/local/go/src/runtime/internal/atomic/atomic_amd64.go:22:32
/usr/local/go/src/runtime/internal/atomic/atomic_amd64x.go:25:6: Load64 redeclared in this block
	previous declaration at /usr/local/go/src/runtime/internal/atomic/atomic_amd64.go:28:26
/usr/local/go/src/runtime/internal/atomic/atomic_amd64x.go:31:6: LoadAcq redeclared in this block
	previous declaration at /usr/local/go/src/runtime/internal/atomic/atomic_amd64.go:34:27
/usr/local/go/src/runtime/internal/atomic/atomic_amd64x.go:36:6: Xadd redeclared in this block
	previous declaration at /usr/local/go/src/runtime/internal/atomic/atomic_amd64.go:39:37
/usr/local/go/src/runtime/internal/atomic/atomic_amd64x.go:39:6: Xadd64 redeclared in this block
	previous declaration at /usr/local/go/src/runtime/internal/atomic/atomic_amd64.go:42:39
/usr/local/go/src/runtime/internal/atomic/atomic_amd64x.go:42:6: Xadduintptr redeclared in this block
	previous declaration at /usr/local/go/src/runtime/internal/atomic/atomic_amd64.go:45:47
/usr/local/go/src/runtime/internal/atomic/atomic_amd64x.go:45:6: Xchg redeclared in this block
	previous declaration at /usr/local/go/src/runtime/internal/atomic/atomic_amd64.go:48:36
/usr/local/go/src/runtime/internal/atomic/atomic_amd64x.go:48:6: Xchg64 redeclared in this block
	previous declaration at /usr/local/go/src/runtime/internal/atomic/atomic_amd64.go:51:38
/usr/local/go/src/runtime/internal/atomic/atomic_amd64x.go:51:6: Xchguintptr redeclared in this block
	previous declaration at /usr/local/go/src/runtime/internal/atomic/atomic_amd64.go:54:45
/usr/local/go/src/runtime/internal/atomic/atomic_amd64x.go:51:6: too many errors

Steps to Reproduce Behavior

  1. Open terminal and change to root sudo -s
  2. Run git clone -b dev https://github.com/Ne0nd0g/merlin.git
  3. Copy the directory merlin to ~/go/src/
  4. Run go build cmd/merlinserver/main.go

Misc Information

@g3rzi
Copy link
Contributor Author

g3rzi commented Jun 11, 2020

I think this is something on my side, I have it on other project.

@g3rzi g3rzi closed this as completed Jun 11, 2020
@g3rzi
Copy link
Contributor Author

g3rzi commented Jun 11, 2020

I installed new version on top of old one, I needed to delete golang and reinstall it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant