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

MacOS build failed. #56

Closed
cheatfate opened this issue Jan 9, 2019 · 8 comments
Closed

MacOS build failed. #56

cheatfate opened this issue Jan 9, 2019 · 8 comments

Comments

@cheatfate
Copy link

Could not build go-libp2p-daemon using instructions on MacOS Travis CI.
https://travis-ci.org/status-im/nim-libp2p/jobs/477444788#L87-L378
It looks like problem is in go-reuseport package.
https://travis-ci.org/status-im/nim-libp2p/jobs/477444788#L332-L339

@vyzo
Copy link
Collaborator

vyzo commented Jan 9, 2019

Can you try using the gx'ed packages? That should work.
gx-go rw and then go install ./....

@vyzo
Copy link
Collaborator

vyzo commented Jan 9, 2019

you also need to do gx install --global to install the package dependencies.

@vyzo
Copy link
Collaborator

vyzo commented Jan 9, 2019

also, can you open an issue in go-reuseport as well so that it gets fixed upstream?

@cheatfate
Copy link
Author

@vyzo sorry, but everything got failed after this command:

go get -v github.com/libp2p/go-libp2p-daemon

So there no gx-go or gx yet. This will be installed only after this step. Also i can confirm that this step is working on Linux.

@cheatfate
Copy link
Author

Also i'm not sure it is exactly go-reuseport problem, maybe there some configuration problems.

@anacrolix
Copy link
Contributor

You need Go 1.11 to build using just go get. Or if you use gx and it's pinned packages that don't require Go 1.11, that will also work.

@cheatfate
Copy link
Author

@anacrolix i'm using what is described in README.md.
As you can see here https://travis-ci.org/status-im/nim-libp2p/jobs/469333940 everything was fine in MacOS. But now hidden requirement appeared.

@cheatfate
Copy link
Author

I can confirm that problem is in Go version, and upgrading Go to 1.11.4 fixed the problem.

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

3 participants