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

Build error with golang:1.23 platform=macOS/arm64 using confluent-kafka-go v2.8.0 to linux/amd64 #1380

Open
omerpo opened this issue Jan 13, 2025 · 0 comments

Comments

@omerpo
Copy link

omerpo commented Jan 13, 2025

loooks very similar to this issue: #981
when I try using 2.4.0 I am able to build but when using 2.8.0 I get:

CGO_ENABLED=1 GOOS=linux GOARCH=amd64 CC=x86_64-unknown-linux-gnu-gcc go build -o ./bin/main ./cmd
# cmd
/opt/homebrew/Cellar/go/1.23.3/libexec/pkg/tool/darwin_arm64/link: running x86_64-unknown-linux-gnu-gcc failed: exit status 1
/opt/homebrew/bin/x86_64-unknown-linux-gnu-gcc -m64 -o $WORK/b001/exe/a.out -rdynamic -Wl,--compress-debug-sections=zlib /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/go.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000000.o /
var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000001.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000002.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000003.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w00
00gn/T/go-link-2991121091/000004.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000005.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000006.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000007.o /var/f
olders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000008.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000009.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000010.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/
T/go-link-2991121091/000011.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000012.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000013.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000014.o /var/folder
s/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000015.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000016.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000017.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-
link-2991121091/000018.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000019.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000020.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000021.o /var/folders/f7/
g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000022.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000023.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000024.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-
2991121091/000025.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000026.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000027.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000028.o /var/folders/f7/g3vt0
n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000029.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000030.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000031.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-29911
21091/000032.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000033.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000034.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000035.o /var/folders/f7/g3vt0n4931
nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000036.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000037.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000038.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091
/000039.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000040.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000041.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000042.o /var/folders/f7/g3vt0n4931nf5l1
ds2b5xy9w0000gn/T/go-link-2991121091/000043.o /var/folders/f7/g3vt0n4931nf5l1ds2b5xy9w0000gn/T/go-link-2991121091/000044.o -O2 -g -lresolv -O2 -g /Users/user/go/pkg/mod/github.com/confluentinc/confluent-kafka-go/[email protected]/kafka/librdkafka_vendor/librdkafka_glibc_linux_amd
64.a -lm -ldl -lpthread -lrt -lpthread -lrt -O2 -g -lpthread -O2 -g -no-pie
/opt/homebrew/Cellar/x86_64-unknown-linux-gnu/7.2.0/toolchain/bin/../lib/gcc/x86_64-unknown-linux-gnu/7.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: warning: /Users/user/go/pkg/mod/github.com/confluentinc/confluent-kafka-go/[email protected]/kafka/librdkafka_vendor/librdkafka
_glibc_linux_amd64.a(rdkafka_error.o): unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002
.
.
.
/Users/user/go/pkg/mod/github.com/confluentinc/confluent-kafka-go/[email protected]/kafka/librdkafka_vendor/librdkafka_glibc_linux_amd64.a(rdkafka_txnmgr.o): In function `rd_kafka_txns_term':
(.text+0xa9ca): undefined reference to `mtx_destroy'
(.text+0xa9d6): undefined reference to `cnd_destroy'
(.text+0xaa7e): undefined reference to `mtx_lock'
(.text+0xaaa8): undefined reference to `mtx_unlock'
(.text+0xaab0): undefined reference to `mtx_destroy'
.
.
.

EDIT: adding- appears like it is hapening since 2.5.0, I tried lowering the version and I got the same errors

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

No branches or pull requests

1 participant