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

Cannot build IPFS from source #8269

Closed
unbeatable-101 opened this issue Jul 17, 2021 · 3 comments
Closed

Cannot build IPFS from source #8269

unbeatable-101 opened this issue Jul 17, 2021 · 3 comments
Labels
kind/bug A bug in existing code (including security flaws) need/triage Needs initial labeling and prioritization

Comments

@unbeatable-101
Copy link

Version information:

go-ipfs version: 0.9.0-179d1d150
Repo version: 11
System version: arm64/darwin
Golang version: go1.16.5

Description:

I ran

git clone https:/ipfs/go-ipfs.git
cd go-ipfs
make build

and the build failed, here is the output
Terminal Saved Output.txt

@unbeatable-101 unbeatable-101 added kind/bug A bug in existing code (including security flaws) need/triage Needs initial labeling and prioritization labels Jul 17, 2021
@aschmahmann
Copy link
Contributor

From your terminal output:

go build  "-asmflags=all='-trimpath='" "-gcflags=all='-trimpath='" -ldflags="-X "github.com/ipfs/go-ipfs".CurrentCommit=ae306994a" -o "cmd/ipfs/ipfs" "github.com/ipfs/go-ipfs/cmd/ipfs"
# github.com/ipfs/go-ipfs/cmd/ipfs
/opt/homebrew/Cellar/go/1.16.5/libexec/pkg/tool/darwin_arm64/link: /opt/homebrew/Cellar/go/1.16.5/libexec/pkg/tool/darwin_arm64/link: combining dwarf failed: unknown load command 0x80000034 (2147483700)

This looks like you have some weird issue with your Go installation (some Googling shows that this looks a bit like golang/go#29539).

I tried doing a fresh brew install go followed by git clone and make install on a Macbook Pro with an M1 (it looks like you have an M1 device also) and it built just fine. You may want to try uninstalling + reinstalling Go and trying again, or else filing an issue in the Go repo since they may have some questions for you on reproducibility.

@unbeatable-101
Copy link
Author

That didn't work for me, I opened an issue at golang/go#47269

@unbeatable-101
Copy link
Author

I can now build after installing go 1.17rc1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws) need/triage Needs initial labeling and prioritization
Projects
None yet
Development

No branches or pull requests

2 participants