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

Open
xiazemin opened this issue Feb 9, 2021 · 2 comments
Open

Comments

@xiazemin
Copy link

@xiazemin 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
Contributor

@seankhliao seankhliao commented Feb 9, 2021

please fill out the full issue template

@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 added the OS-Darwin label 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
@dmitshur dmitshur added the arch-arm64 label Feb 9, 2021
@cherrymui
Copy link
Contributor

@cherrymui cherrymui commented Feb 9, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants