Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Makefile should use -installsuffifx in addition to -netgo #742

Open
bboreham opened this issue May 26, 2015 · 1 comment
Open

Makefile should use -installsuffifx in addition to -netgo #742

bboreham opened this issue May 26, 2015 · 1 comment
Labels
Milestone

Comments

@bboreham
Copy link
Contributor

After installing a fresh copy of Go, attempting to build weave gives:

Your go standard library was built without the 'netgo' build tag.
To fix that, run
    sudo go clean -i net
    sudo go install -tags netgo std

These instructions overwrite Go's libraries, which may be inconvenient for some users.
This can be improved by adding -installsuffix netgo each time -tags netgo is used in the Makefile to make Go put the files in a different directory.
(Inspired by golang/go#9369 (comment))

@bboreham bboreham changed the title Make line should use -installsuffifx in addition to -netgo Makefile should use -installsuffifx in addition to -netgo May 26, 2015
@rade rade added the chore label May 26, 2015
@rade rade added the icebox label Aug 27, 2015
@bboreham
Copy link
Contributor Author

Since this issue was filed, the symptoms have downgraded to:
After installing a fresh copy of Go, attempting to build weave gives:

$ make
go get -tags netgo ./prog/weaver
go install net: open /usr/local/go/pkg/linux_amd64/net.a: permission denied
make: *** [prog/weaver/weaver] Error 1

@rade rade removed the icebox label Jul 4, 2016
@rade rade modified the milestone: icebox Jul 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants