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: combining dwarf failed: unknown load command 0x80000034 (2147483700) #47269

Closed
unbeatable-101 opened this issue Jul 18, 2021 · 6 comments

Comments

@unbeatable-101
Copy link

What version of Go are you using (go version)?

$ go version
go version go1.16.5 darwin/arm64

Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=""
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/williamdavis/Library/Caches/go-build"
GOENV="/Users/williamdavis/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/williamdavis/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/williamdavis/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/opt/homebrew/Cellar/go/1.16.5/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/opt/homebrew/Cellar/go/1.16.5/libexec/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.16.5"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/williamdavis/go-ipfs/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/96/7_zsj2c13r751mhmyphh_4tm0000gn/T/go-build1384215899=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

I ran

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

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

What did you expect to see?

The binary being properly compiled

What did you see instead?

It errored out
Terminal Saved Output.txt

@AlexRouSg
Copy link
Contributor

Please test with 1.17rc1, I have seen this error before on slack and 1.17 compiled fine for the other person.

@unbeatable-101
Copy link
Author

Do you have a binary I can test? I cannot seem to build 1.17rc1.

@AlexRouSg
Copy link
Contributor

@unbeatable-101
Copy link
Author

1.17rc1 works, thanks.

@AlexRouSg
Copy link
Contributor

I would keep this open until we understand why 1.16 wasn't working, likely there would be something to fix.

@thanm
Copy link
Contributor

thanm commented Jul 19, 2021

load command 0x80000034 corresponds to LC_DYLD_CHAINED_FIXUPS. Support for this load command was added in https://go-review.googlesource.com/c/go/+/312729, which is part of Go 1.17.

Closing this out as WAI, please re-open if needed.

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

No branches or pull requests

4 participants