Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

make release-std fails #2610

Closed
dhensen opened this issue Jan 4, 2018 · 2 comments
Closed

make release-std fails #2610

dhensen opened this issue Jan 4, 2018 · 2 comments

Comments

@dhensen
Copy link

dhensen commented Jan 4, 2018

BUG REPORT

Stack Trace or error message

$ make release-std
go install -tags 'netgo' -a -ldflags='-s -w' ./api ./build ./compatibility ./crypto ./encoding ./modules ./modules/consensus ./modules/explorer ./modules/gateway ./modules/host ./modules/host/contractmanager ./modules/renter ./modules/renter/contractor ./modules/renter/hostdb ./modules/renter/hostdb/hosttree ./modules/renter/proto ./modules/miner ./modules/wallet ./modules/transactionpool ./persist ./cmd/siad ./cmd/siac ./sync ./types
go install runtime/internal/sys: open /usr/lib/go/pkg/linux_amd64/runtime/internal/sys.a: permission denied
make: *** [Makefile:75: release-std] Error 1

Expected Behavior

How to reproduce it (as minimally and precisely as possible)

go get -u github.com/NebulousLabs/Sia/...
cd $GOPATH/src/github.com/NebulousLabs/Sia
make release-std

Environment

  • Sia version: 1.3.0 currently, trying to build latest master (62ef2aa)
  • OS: Arch Linux.
$ echo $GOPATH
/home/dino/go
$ uname -r
4.14.4-1-ARCH
$ go version
go version go1.9.2 linux/amd64
@dhensen
Copy link
Author

dhensen commented Jan 4, 2018

Oh....

$ ls -sla /usr/lib/go/pkg/linux_amd64/runtime/internal/sys.a
8 -rw-r--r-- 1 root root 5830 Oct 30 15:58 /usr/lib/go/pkg/linux_amd64/runtime/internal/sys.a

Should this be ran as root or should those files in /usr/lib/go/pkg have more open permissions?

@tbenz9
Copy link
Collaborator

tbenz9 commented Jan 4, 2018

I've seen this issue before, I believe it's related to your Go environment and not Sia directly.

Googling around I've found it reported with a couple different projects.
golang/go#15433
golang/go#18981

I'm going to close this issue as it's not caused by Sia, but if you find a good solution please comment with it here!

@tbenz9 tbenz9 closed this as completed Jan 4, 2018
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

2 participants