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

cmd/link: vanadium installation Error: combining dwarf failed: Unknown load command 0x32 (50) #29539

Closed
Yiqing2018 opened this issue Jan 3, 2019 · 7 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Darwin
Milestone

Comments

@Yiqing2018
Copy link

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

$ go version
go1.11.4 darwin/amd64

Does this issue reproduce with the latest release?

Yes

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

go env Output
$ go env

GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/yiqingliu/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/yiqingliu/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/zj/m3r07q5x7xzg89lrpp16vxkw0000gn/T/go-build723821650=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

I followed the instruction to install Vanadium https://vanadium.github.io/installation/
os

MacOS Mojave version 10.14.2

curl

curl 7.60.0 (x86_64-apple-darwin13.4.0) libcurl/7.60.0 OpenSSL/1.0.2o zlib/1.2.11
Release-Date: 2018-05-16

git

git version 2.17.2 (Apple Git-113)

Error info:

Block 'installVanadiumBinaries' (9/9 in test) of content/installation/step-by-step.md
# v.io/x/ref/services/agent/v23agentd
/Users/username/vanadium/.jiri_root/profiles/v23/go/shared/1.8.3/pkg/tool/darwin_amd64/link: /Users/username/vanadium/.jiri_root/profiles/v23/go/shared/1.8.3/pkg/tool/darwin_amd64/link: combining dwarf failed: Unknown load command 0x32 (50)

# v.io/x/ref/lib/discovery/plugins/ble/corebluetooth
vanadium/release/go/src/v.io/x/ref/lib/discovery/plugins/ble/corebluetooth/CBAdvertisingDriver.m:213:10: warning: 'CBPeripheralManagerStatePoweredOn' is deprecated: first deprecated in macOS 10.13 - Use CBManagerState instead [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeripheralManager.h:55:28: note: 'CBPeripheralManagerState' has been explicitly marked deprecated here
......

# v.io/x/ref/services/syncbase/syncbased
/Users/username/vanadium/.jiri_root/profiles/v23/go/shared/1.8.3/pkg/tool/darwin_amd64/link: /Users/username/vanadium/.jiri_root/profiles/v23/go/shared/1.8.3/pkg/tool/darwin_amd64/link: combining dwarf failed: Unknown load command 0x32 (50)

# v.io/x/ref/services/syncbase/bridge/cgo
/Users/username/vanadium/.jiri_root/profiles/v23/go/shared/1.8.3/pkg/tool/darwin_amd64/link: /Users/username/vanadium/.jiri_root/profiles/v23/go/shared/1.8.3/pkg/tool/darwin_amd64/link: combining dwarf failed: Unknown load command 0x32 (50)

I tried to install earlier version of Go, still got the same error.

What did you expect to see?

# Install specific tools needed for the tutorials.
jiri go install v.io/x/ref/cmd/... v.io/x/ref/services/agent/... v.io/x/ref/services/mounttable/... v.io/x/ref/services/syncbase/...

runs with no error

What did you see instead?

above error msg

@ianlancetaylor
Copy link
Contributor

Are you sure you are using 1.11.4? This looks exactly like #25908 which should be fixed in 1.11.4 and in 1.12beta1.

@ianlancetaylor ianlancetaylor added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Jan 3, 2019
@ianlancetaylor ianlancetaylor changed the title vanadium installation Error: combining dwarf failed: Unknown load command 0x32 (50) cmd/link: vanadium installation Error: combining dwarf failed: Unknown load command 0x32 (50) Jan 3, 2019
@Yiqing2018
Copy link
Author

Are you sure you are using 1.11.4? This looks exactly like #25908 which should be fixed in 1.11.4 and in 1.12beta1.

Yes, I just installed Go on my computer, it is the latest version 1.11.4
$ go version
go version go1.11.4 darwin/amd64

@ianlancetaylor
Copy link
Contributor

Huh. I have no explanation. That specific error message should be impossible in 1.11.4.

@ianlancetaylor ianlancetaylor added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. and removed WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Jan 4, 2019
@ianlancetaylor ianlancetaylor added this to the Go1.13 milestone Jan 4, 2019
@wwwennn
Copy link

wwwennn commented Jan 4, 2019

I followed the same Vanadium page and met the same problem here. I installed several different versions of Go by pkg and homebrew.

@cherrymui
Copy link
Member

Error info:

 Block 'installVanadiumBinaries' (9/9 in test) of content/installation/step-by-step.md
# v.io/x/ref/services/agent/v23agentd
/Users/username/vanadium/.jiri_root/profiles/v23/go/shared/1.8.3/pkg/tool/darwin_amd64/link: /Users/username/vanadium/.jiri_root/profiles/v23/go/shared/1.8.3/pkg/tool/darwin_amd64/link: combining dwarf failed: Unknown load command 0x32 (50)

# v.io/x/ref/lib/discovery/plugins/ble/corebluetooth
vanadium/release/go/src/v.io/x/ref/lib/discovery/plugins/ble/corebluetooth/CBAdvertisingDriver.m:213:10: warning: 'CBPeripheralManagerStatePoweredOn' is deprecated: first deprecated in macOS 10.13 - Use CBManagerState instead [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeripheralManager.h:55:28: note: 'CBPeripheralManagerState' has been explicitly marked deprecated here
......

# v.io/x/ref/services/syncbase/syncbased
/Users/username/vanadium/.jiri_root/profiles/v23/go/shared/1.8.3/pkg/tool/darwin_amd64/link: /Users/username/vanadium/.jiri_root/profiles/v23/go/shared/1.8.3/pkg/tool/darwin_amd64/link: combining dwarf failed: Unknown load command 0x32 (50)

# v.io/x/ref/services/syncbase/bridge/cgo
/Users/username/vanadium/.jiri_root/profiles/v23/go/shared/1.8.3/pkg/tool/darwin_amd64/link: /Users/username/vanadium/.jiri_root/profiles/v23/go/shared/1.8.3/pkg/tool/darwin_amd64/link: combining dwarf failed: Unknown load command 0x32 (50)

Apparently this seems like it is running Go 1.8.3?

I don't know about jiri, but could you try jiri go version to see what version of Go is used by jiri?

@Yiqing2018
Copy link
Author

Yiqing2018 commented Jan 4, 2019

Error info:

 Block 'installVanadiumBinaries' (9/9 in test) of content/installation/step-by-step.md
# v.io/x/ref/services/agent/v23agentd
/Users/username/vanadium/.jiri_root/profiles/v23/go/shared/1.8.3/pkg/tool/darwin_amd64/link: /Users/username/vanadium/.jiri_root/profiles/v23/go/shared/1.8.3/pkg/tool/darwin_amd64/link: combining dwarf failed: Unknown load command 0x32 (50)

# v.io/x/ref/lib/discovery/plugins/ble/corebluetooth
vanadium/release/go/src/v.io/x/ref/lib/discovery/plugins/ble/corebluetooth/CBAdvertisingDriver.m:213:10: warning: 'CBPeripheralManagerStatePoweredOn' is deprecated: first deprecated in macOS 10.13 - Use CBManagerState instead [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeripheralManager.h:55:28: note: 'CBPeripheralManagerState' has been explicitly marked deprecated here
......

# v.io/x/ref/services/syncbase/syncbased
/Users/username/vanadium/.jiri_root/profiles/v23/go/shared/1.8.3/pkg/tool/darwin_amd64/link: /Users/username/vanadium/.jiri_root/profiles/v23/go/shared/1.8.3/pkg/tool/darwin_amd64/link: combining dwarf failed: Unknown load command 0x32 (50)

# v.io/x/ref/services/syncbase/bridge/cgo
/Users/username/vanadium/.jiri_root/profiles/v23/go/shared/1.8.3/pkg/tool/darwin_amd64/link: /Users/username/vanadium/.jiri_root/profiles/v23/go/shared/1.8.3/pkg/tool/darwin_amd64/link: combining dwarf failed: Unknown load command 0x32 (50)

Apparently this seems like it is running Go 1.8.3?

I don't know about jiri, but could you try jiri go version to see what version of Go is used by jiri?

Thx!
tried 1.8.3 version, still got the same error. I will check jiri, maybe that's why i got the error

@ALTree
Copy link
Member

ALTree commented Jul 3, 2019

Likely a dup of #25908 caused by the tool using an old Go installation, no one ever reported this again; I suspect we can close here.

@ALTree ALTree closed this as completed Jul 3, 2019
@golang golang locked and limited conversation to collaborators Jul 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Darwin
Projects
None yet
Development

No branches or pull requests

6 participants