You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't have gcc/Xcode installed. The test failed with:
ok cmd/nm 3.414s
--- FAIL: TestDisasmExtld (4.82s)
objdump_test.go:70: go build fmthello.go: exit status 2
# command-line-arguments
warning: unable to find runtime/cgo.a
/Users/xigh/Sources/gget/go/pkg/tool/darwin_amd64/link: running gcc failed: exec: "gcc": executable file not found in $PATH
The text was updated successfully, but these errors were encountered:
ianlancetaylor
changed the title
src/cmd/objdump/objdump_test.go:^TestDisasmExtld requires c compiler toolchain
cmd/objdump: objdump_test.go:^TestDisasmExtld requires c compiler toolchain
Jul 31, 2015
Hello,
I tried to compile go1.5beta3 on MacOS X 10.6 with preinstalled 1.4.2 version with the following command line:
CGO_ENABLED=0 GOROOT_BOOTSTRAP=/usr/local/go ./all.bash
I don't have gcc/Xcode installed. The test failed with:
ok cmd/nm 3.414s
--- FAIL: TestDisasmExtld (4.82s)
objdump_test.go:70: go build fmthello.go: exit status 2
# command-line-arguments
warning: unable to find runtime/cgo.a
/Users/xigh/Sources/gget/go/pkg/tool/darwin_amd64/link: running gcc failed: exec: "gcc": executable file not found in $PATH
FAIL
FAIL cmd/objdump 8.900s
I fixed this with by changing to:
func cgoDisabled() bool {
return os.Getenv("CGO_ENABLED") == "0"
}
func TestDisasmExtld(t *testing.T) {
if cgoDisabled() {
t.Skipf("skipping: cgo disabled")
}
The text was updated successfully, but these errors were encountered: