-
Notifications
You must be signed in to change notification settings - Fork 659
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
Link edit errors after upgrade from v1.9.2 to v2.0.2 #965
Comments
Anyone have any ideas? I don't remember doing anything special on 1.9.2 to get everything to work. |
I took a look at this as a C program problem instead of a Go problem and this seems to solve it: CGO_LDFLAGS=-fstack-protector Is it that easy? |
I have the same issue, your flag doesn't help. Anyone?
|
I also meet it, anyone has idea about it? |
works for me with the flag and TDM-GCC-64 (C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0) |
Description
We're trying to upgrade to v2.0.2. Developing microservices so to debug with telepresence, we need to compile and debug on Windows 10.
Our client compiles and runs fine if it's built inside a linux container, but to debug with telepresence we have to compile our client in either windows or on a mac. I'm on Windows and it all worked fine on v1.9.2 but with v2.0.2 in the IDE I get these link edit errors:
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Users/xxx/go/pkg/mod/github.com/confluentinc/confluent-kafka-go/[email protected]/kafka/librdkafka_vendor/librdkafka_windows.a(trees.o):(.text+0x64e): undefined reference to
__stack_chk_fail' C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Users/xxx/go/pkg/mod/github.com/confluentinc/confluent-kafka-go/[email protected]/kafka/librdkafka_vendor/librdkafka_windows.a(trees.o):(.rdata$.refptr.__stack_chk_guard[.refptr.__stack_chk_guard]+0x0): undefined reference to
__stack_chk_guard'C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Users/xxx/go/pkg/mod/github.com/confluentinc/confluent-kafka-go/[email protected]/kafka/librdkafka_vendor/librdkafka_windows.a(inflate.o):(.text+0x21a8): undefined reference to
__stack_chk_fail' C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Users/xxx/go/pkg/mod/github.com/confluentinc/confluent-kafka-go/[email protected]/kafka/librdkafka_vendor/librdkafka_windows.a(inflate.o):(.text+0x2754): undefined reference to
__stack_chk_fail'C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Users/xxx/go/pkg/mod/github.com/confluentinc/confluent-kafka-go/[email protected]/kafka/librdkafka_vendor/librdkafka_windows.a(inftrees.o):(.text+0x56b): undefined reference to `__stack_chk_fail'
collect2.exe: error: ld returned 1 exit status
Is this a known problem? Is compiling on windows no longer supported as it was on v1.9.2?
How to reproduce
try to build kafka client project in intellij on windows 10.
Checklist
Please provide the following information:
LibraryVersion()
): 2.0.2ConfigMap{...}
does not matter since build is failing."debug": ".."
as necessary) does not matter since build is failing.The text was updated successfully, but these errors were encountered: