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: go version go1.16beta1 darwin/arm64 on mac M1 do not support rd_kafka #44186

Closed
xiazemin opened this issue Feb 9, 2021 · 3 comments
Labels
arch-arm64 FrozenDueToAge OS-Darwin WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@xiazemin
Copy link

xiazemin commented Feb 9, 2021

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

$ go version

Does this issue reproduce with the latest release?

/usr/local/go/pkg/tool/darwin_arm64/link: running clang failed: exit status 1
ld: warning: ld: warning: ignoring file /var/folders/hb/1q06vpss7_d1fw3ymxb1ztbr0000gn/T/go-link-108461093/go.o, building for macOS-x86_64 but attempting to link with file built for unknown-arm64ignoring file /var/folders/hb/1q06vpss7_d1fw3ymxb1ztbr0000gn/T/go-link-108461093/000000.o, building for macOS-x86_64 but attempting to link with file built for unknown-arm64

ld: warning: ignoring file /var/folders/hb/1q06vpss7_d1fw3ymxb1ztbr0000gn/T/go-link-108461093/000001.o, building for macOS-x86_64 but attempting to link with file built for unknown-arm64

Undefined symbols for architecture x86_64:
"__cgo_topofstack", referenced from:
__cgo_fe4f1822ce7d_Cfunc_ConfigEntry_by_idx in 000007.o
__cgo_fe4f1822ce7d_Cfunc_ConfigResource_by_idx in 000007.o
__cgo_fe4f1822ce7d_Cfunc_rd_kafka_AlterConfigs_result_resources in 000007.o
__cgo_fe4f1822ce7d_Cfunc_rd_kafka_ConfigEntry_is_read_only in 000007.o
__cgo_fe4f1822ce7d_Cfunc_rd_kafka_ConfigEntry_is_sensitive in 000007.o
__cgo_fe4f1822ce7d_Cfunc_rd_kafka_ConfigEntry_is_synonym in 000007.o
__cgo_fe4f1822ce7d_Cfunc_rd_kafka_ConfigEntry_name in 000007.o
...
"_main", referenced from:
implicit entry/start for main executable

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

go env Output
$ go env

What did you do?

What did you expect to see?

What did you see instead?

@seankhliao
Copy link
Member

please fill out the full issue template

@seankhliao seankhliao added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Feb 9, 2021
@seankhliao seankhliao changed the title go version go1.16beta1 darwin/arm64 on mac M1 do not support rd_kafka cmd/compile: go version go1.16beta1 darwin/arm64 on mac M1 do not support rd_kafka Feb 9, 2021
@seankhliao seankhliao changed the title cmd/compile: go version go1.16beta1 darwin/arm64 on mac M1 do not support rd_kafka cmd/link: go version go1.16beta1 darwin/arm64 on mac M1 do not support rd_kafka Feb 9, 2021
@cherrymui
Copy link
Member

ld: warning: ld: warning: ignoring file /var/folders/hb/1q06vpss7_d1fw3ymxb1ztbr0000gn/T/go-link-108461093/go.o, building for macOS-x86_64 but attempting to link with file built for unknown-arm64

It sounds like you compiled the program for x86 but trying to link it for arm64? Could you post the exact command(s) you run to build the program, as well as your environment?

@gopherbot
Copy link

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@golang golang locked and limited conversation to collaborators Mar 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-arm64 FrozenDueToAge OS-Darwin WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

5 participants